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
andYCbCr
the same thing? When I take a look at the information of a random MP4 video file withffmpeg
orMediaInfo
, I see that the color space is indicated asYUV
. Is that actuallyYCbCr
since we're talking about a digital file?It doesn't make any sense to say
RGB 4:2:0
, right? Because chroma subsampling only applies to theYCbCr
color space, taking the (Cb, Cr) components, and deciding how many of them should be but in a 4x2 pixels region. Is that correct?When
ffprobe
outputs that a video has abits_per_raw_sample
(or bit depth) of 8 bits with ayuv420p
pixel format, what does it mean? What is the "raw sample" here? Is the 8 bits value referred to the number of bits used for each component (Y, Cb, Cr) before doing chroma subsampling? In that case, how should I calculate how many bits per pixel (or per 4x2 pixels region [?]) are used after chroma subsampling?
I hope it's ok to have multiple questions in the same post. Thank you.