Questions tagged [colorspace]

An RGB color space is any additive color space based on the RGB color model. A particular RGB color space is defined by the three chromaticities of the red, green, and blue additive primaries, and can produce any chromaticity that is the triangle defined by those primary colors. The complete specification of an RGB color space also requires a white point chromaticity and a gamma correction curve.

Filter by
Sorted by
Tagged with
12 votes
1 answer
15k views

ffmpeg: explicitly tag h.264 as bt.601, rather than leaving unspecified?

I want to tag video as explicitly bt.601, rather than "unspecified". I know players typically choose bt.601 as the default for videos less than 1280 pixels wide, but I want to make it explicit that ...
user avatar
  • 2,608
11 votes
1 answer
28k views

ffmpeg pixel format definitions

ffmpeg -pix_fmts lists many pixel formats. In my ffmpeg, there are 66 different pixel formats that start with yuv. A few of them are familiar to me (e.g., yuv422p), but most of them are not (e.g., ...
user avatar
8 votes
4 answers
11k views

Do any iOS video apps record in log color space?

Is there an app for iPhone or iPad that will let me record log color space video? It seems like with such an abundance of instagram-ish "filter" apps, developers probably have access to raw sensor ...
user avatar
  • 4,151
7 votes
1 answer
9k views

Apply custom lut via ffmpeg?

I'd like to batch convert some log footage as well as transform each clip into rec709 colorspace. Is there any way to apply a custom lut to the footage? If so, what's the correct way to do that?
user avatar
  • 2,259
6 votes
1 answer
421 views

Why are there so many color spaces available?

Whatever you are exporting, photo or video, you can choose between an enormous amount of color spaces. sRGB, Adobe RGB 98, Apple RGB, and many more. But why there so many different color spaces? Do ...
user avatar
6 votes
1 answer
2k views

Downsampling 4K footage for an increase in chroma sub-sampling

We have a Lumix GH-4 camera, which can shoot in 4K with 4:2:2 color space. I'd like to be able to convert the footage to 1080p 4:4:4 color space. I've read that there some ways of doing this: http://...
user avatar
  • 6,287
5 votes
1 answer
933 views

What is the colour range of most videos?

Colour range (Limited, Expanded) is something I've only thought of recently, and I'm worried I may have introduced colour banding into some of my videos. When doing a standard MP4 export from ffmpeg, ...
user avatar
5 votes
3 answers
8k views

Colors look different after export

Colors look great in FCPX. After I export (Share > Master file > H.264 Quicktime) they look a bit dull: desaturated, less vibrant. Also sort of like the wrong gamma curve - shadows are darker. I ...
user avatar
4 votes
1 answer
6k views

Is it safe to use the yuva420 pix_format option with ffmpeg to encode webm videos?

I am encoding png image sequences to both webm and mp4 formats using ffmpeg. My goal is to achieve perceptually lossless videos, with the smallest file size I can reasonably achieve. The webm videos ...
user avatar
3 votes
2 answers
3k views

ffmpeg bgr vs rgb and other similiar pixel formats

I was wondering about the difference between rgb and bgr pixel formats available in many codecs. It reminds me in some way the Big Endian and Little Endian flavours of computer processors. While I ...
user avatar
  • 1,384
3 votes
1 answer
652 views

Correct gamma for SMPTE ST-2084 EOTF

I recently purchased an Apple Pro XDR display that has an HDR reference mode specified as follows: HDR Video (P3-ST 2084) Use this mode for 4K or ultra high-definition video production workflows up ...
user avatar
  • 143
3 votes
1 answer
7k views

FFmpeg BMP to YUV x264 color shift

When I encode a particular sequence of BMP image files to AVC/H.264, the colors get shifted. Why does this happen? But if I convert the BMPs to PNGs before running ffmpeg, the video conversion ...
user avatar
  • 143
3 votes
1 answer
3k views

Record raw video with ffmpeg keeping the full color range

I want to do video captures with a video4linux2 device. The video data contains a lot of darker shades of grey. When I capture a single PNG file, everything is fine. Capturing with ffmpeg/avconf ...
user avatar
  • 151
3 votes
1 answer
413 views

How can I know my if footage is rec.709 or not right out of the camera?

I just recorded a video (a talking head) using my Canon EOS 4000D (known as Canon EOS Rebel T100 in the U.S.) at 1920x1080p24. (Maybe informative/Important, that I want to color edit/grade it in Adobe ...
user avatar
3 votes
1 answer
844 views

How to manage colour in After Effects to get precisely a desired colour in h264 output

I am working on a video for the web only. It is going to be on a webpage (never on broadcast), delivered as an h264 file. The web page background is hex code FFF1E5 (RGB 255, 241, 229). My background ...
user avatar
  • 6,287
2 votes
2 answers
218 views

How can I find out which chroma subsampling (if any) is used in a video file?

If I have a video file, how can I find out which kind of chroma subsampling (4:2:2, 4:2:0), if any, that is used? What I've tried so far: If I open the codec info in VLC I can see that it's in the ...
user avatar
2 votes
2 answers
730 views

Lossless color compression

I need to reduce the file size of an mp4 video. I don't need color information at all but pixel brightness resolution must be preserved. Videos consist of white background with a few (important) black ...
user avatar
2 votes
1 answer
2k views

How to preserve colorspace in ffmpeg

I have a x264 video with yuvj420p(pc, smpte170m) color space and i want to convert this video to x265 and reduce its file size. I have used this command ffmpeg -i input.mp4 -vcodec libx265 -crf 20 ...
user avatar
2 votes
2 answers
8k views

What exactly is D-Cinelike?

My DJI Mavic Air drone has the ability to shoot video footage in either standard mode or “D-Cinelike”. Is D-Cinelike just a flatter colour profile with less contrast (to capture more detail in ...
user avatar
2 votes
3 answers
1k views

Working in a linearized Color Space in After Effects causes hard gradients

I am just playing arround with the new trapcode suite in after effects working ina linearized color space for a better control over color and effects. Somehow I get really bad rendering on parts of ...
user avatar
1 vote
1 answer
321 views

Is video output in YUY2 color space lossless if the input is sRGB?

I am considering purchasing one of these: https://static.cloner-alliance.com/manual/ca-1080fl_user_manual_v1.1.pdf It claims to be able to capture "uncompressed video", but in the list of ...
user avatar
  • 113
1 vote
1 answer
126 views

Resolution loss by chromatic subsampling: is there a workaround?

I was trying to make some recordings of a game (with OBS), but it wasn't really good even with "lossless" options. Some part of the interface was just pixelated... After a while I realized ...
user avatar
  • 113
1 vote
1 answer
207 views

ffmpeg colormatrix operations only for 8bpc?

Unless I'm bad at reading, this page states that colormatrix is only good for 8 bpc. From Colorspace support in FFmpeg: ... colormatrix produces horrible quality for anything > 8bpc (8-bit per ...
user avatar
1 vote
1 answer
3k views

Convert sRGB color to linear Color Space

Just wondering if there is a simple and fast way to convert a specific color from my Illustrator layout file (#e3000b) to a linear Color Space. I am working in After Effects in a linear color space. ...
user avatar
1 vote
1 answer
32 views

Using ffmpeg gdigrab to capture desktop output to h264 yuv420p. Color shift problem

The ffmpeg command below is being used to capture the desktop and create a resulting mp4. ffmpeg log says the input stream is bmp and I specified the target as h264 yuv420p. I found several older ...
user avatar
  • 11
1 vote
0 answers
146 views

Do you always need to convert videos with a YUV color space for compositing in Blender?

I have a 10 bits .mov file with YUV color space encoded prores 422HQ of some green screen footage. -Do we always need to convert videos with a YUV color space for compositing work? If I want to ...
user avatar
1 vote
0 answers
891 views

Why has grayscale a higher bitrate than YUV with H.265/HEVC?

For compression purposes, I am re‐encoding a grayscale video to the H.265/HEVC codec. Although the input video is more or less perfectly grayscale in aspect, it is provided in the yuv420p pixel format....
user avatar
  • 111
1 vote
0 answers
386 views

ffmpeg ProRes to MP4 Alters Colors Slightly

I cannot for the life of me figure out what is going wrong, but I have a ProRes MOV file with the following specifications: And I want to convert it to a 4:2:0 MP4 video file. Every time I attempt ...
user avatar
1 vote
0 answers
2k views

ffmpeg: color loss when encoding to .webm

When encoding to webm (specifically VP8, i.e. libvpx), the color range gets reduced from 0-255 to 15-235. This causes a washed-out look; blacks become faded and not as sharp. I have found solutions ...
user avatar
  • 117
1 vote
0 answers
680 views

MPC-HC is altering the colors

In order to test a lossless recording system, I have to verify that the input video is exactly the same than the output video. As a test source I have generated an ffmpeg's testsrc pattern, which is ...
user avatar
  • 163
0 votes
1 answer
49 views

Confusion about Floating Point in Color Space Transforms

To explain my confusion I'm going to use an example with a hypothetical sensor which clips at a max 1000% scene linear reflectance and crushes blacks at 0% light (I know there is no such thing as 0% ...
user avatar
0 votes
1 answer
183 views

Which color space to use in camera while shooting video? RGB or YCbCr? [closed]

I want to shoot videos for my blog. Nature, landscapes, fitness. Which color space to use in camera while shooting video? RGB or YCbCr?
user avatar
  • 19
0 votes
1 answer
143 views

"Canon RGB" color space *shift* to broadcast range with FFMPEG

for a noprofit project I do shoot with (up to 5x) Canon HF100 camera(s) but, as stated in this interesting artile, it genetates a "custom RGB range" (16-255) files. Thanks to this cool repository I'...
user avatar
0 votes
1 answer
375 views

Is color banding usual problem in commercial released movies?

for very long time I have used two machines - one with good monitor for work and one with "ordinary" monitor for fun/movies/games. Recently I unified this with high end mobile workstation with very ...
user avatar
0 votes
1 answer
484 views

ffmpeg prores alpha channel not present when colormatrix and colorspace operations are performed

So I've figured out how to convert images to prores with no colorspace shifts using either: -vf colormatrix=bt601:bt709 filter for 8bit material and -vf colorspace=all=bt709:range=pc:format=...
user avatar
0 votes
1 answer
3k views

What is the file size difference between 8 bit and 10 bit raw video?

How much color information does a 8 bit pixel need compared to an 10 bit pixel? What is the difference. As an example how much file size would an single 640x480 frame take if had 10 bit color instead ...
user avatar
0 votes
2 answers
179 views

Doubts about color spaces and chroma subsampling

Hy everyone, I have some questions about color spaces and chroma subsampling that I haven't been able to solve just by searching the web. Are YUV and YCbCr the same thing? When I take a look at the ...
user avatar
  • 648
0 votes
0 answers
15 views

Does changing pixel format negatively affects quality of the result (yuv422p10 to yuv420p) – using ffmpeg

I have a ProRes video in yuv422p10 pixel format. When I transcode it for distribution into h264, I can either use baseline profile where I am stuck with yuv420p or use another profile and keep ...
user avatar
  • 113
0 votes
0 answers
23 views

Why does my ipad/macbook video camera quality not match logitech hd c270 quality?

I am trying to write a program that takes a video of someone's face, extracts the RGB values, and then uses the color change (imperceptible to the human eye) to map onto heart rate. When I use a ...
user avatar
  • 101
0 votes
0 answers
41 views

Correctly compositing linear RGB elements over log footage

I have some water splash elements I need to composite over log footage in After Effects before sending it to the colorist for grading. As I understand, the correct workflow is to convert the log ...
user avatar
0 votes
1 answer
2k views

Color changes after video to single frame images back to video using ffmpeg

Given master video in mov rle: Video: qtrle (rle / 0x20656C72), rgb24(progressive) Converted the video to a serie of single .bmp frames. ffmpeg -i source.mov $FRAMES/f%03d.bmp Frames from ...
user avatar
  • 179
0 votes
1 answer
1k views

Color shift FFmpeg raw RGBA images to YUV format

I have a list of raw bitmap in rgba format, captured with an openGL frameBuffer. I want to export them in a video, currently i am using the following command: ffmpeg -f rawvideo -r 30 -pix_fmt rgba -...
user avatar
  • 123
0 votes
1 answer
698 views

Generating video thumbnails preview / contact sheet in batch, color issue

I have a large collection of videos to sort out, and for that purpose I want to create a thumbnail preview for each one of them, as quickly and efficiently as possible. I have tested several tools ...
user avatar
  • 101
0 votes
1 answer
105 views

Matching colors for video

It appears that loading a graphics asset into Premiere’s new (2017.1) layered drawing tools does not do any kind of profile matching. Furthermore, the play preview image looks different on my (color ...
user avatar
  • 245