r/AskComputerScience • u/tsojtsojtsoj • Jan 21 '19
Why are red objects so pixelated in low quality videos?
105
u/dandroid-exe Jan 21 '19
This is a result of chroma sub-sampling in video codecs. Video typically has red, green, and blue channels to make a full color image. Turns out you can get away with having full res green, and half res blue + half res red and it’s pretty hard to tell because the green channel creates the illusion of sharpness for our eyes. (This is just a particular example, there are several chroma resolution schemes - every codec is different)
The weaknesses of this way of compressing video tend to show up in high saturation reds for one reason or another. See also: bright red text against black, like in a movie logo.
7
Jan 22 '19
Wow, what an excellent answer! Thanks for this, makes perfect sense.
7
u/dandroid-exe Jan 22 '19
Thanks! It’s a great question, this red pixelation is everywhere now that we consume so much media through streaming h264
6
u/nm_ghost Jan 22 '19
It's even a little bit more complex: videos are most often encoded in YCbCr color space (very similar, and sometimes used interchangeably with YUV), but the general principle is as you described: we notice smaller changes in luminosity than in color, so we encode color information with lower resolution, to save bandwidth.
2
0
u/Yaahallo Jan 22 '19
My guess was https://en.wikipedia.org/wiki/Bayer_filter
Not sure how it ties in with other answers
1
u/WikiTextBot Jan 22 '19
Bayer filter
A Bayer filter mosaic is a color filter array (CFA) for arranging RGB color filters on a square grid of photosensors. Its particular arrangement of color filters is used in most single-chip digital image sensors used in digital cameras, camcorders, and scanners to create a color image. The filter pattern is 50% green, 25% red and 25% blue, hence is also called BGGR, RGBG, GRGB, or RGGB.It is named after its inventor, Bryce Bayer of Eastman Kodak. Bayer is also known for his recursively defined matrix used in ordered dithering.
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28
1
u/vagaliki Nov 11 '23
Star wars 1977 was not shot on a camera with a Bayer filter. Shot on color film (which may have some other effects).
The correct answer is about video compression and chroma sub sampling
28
u/code_donkey Jan 22 '19
as /u/dandroid-exe said, its the video compression taking advantage of the fact that our eyes are great at detecting green and shitty at detecting red and blue. So the green channel for that video might be 1080p, but the red and blue channel are probably 720p or 480p, without a huge effect. Heres some example images to give you an idea:
Heres a fruit bowl with no reduction:
Here it is again but with 1/10 of the red information, and 1/10 of the blue information (green untouched)
Here is the previous image but with some interpolation (ie. a smoothing effect)
Here is the fruit bowl again, but this time 1/10 green, 1/10 blue (red untouched. smoothing applied)
Again, but this time 1/10 green, 1/10 red (blue untouched, smoothing applied)
This technique is great with green dominant images, but mediocre for red or blue dominant