[Libav-user] Colour space conversion

wm4 nfxjfg at googlemail.com
Wed May 27 15:00:44 CEST 2015

On Wed, 27 May 2015 09:42:11 -0300
Rafael Lúcio <rafael at inova.in> wrote:

> If you convert any RGB format to YUV420 you will lose data. If you want to
> just change the format to YCbCr without losing data.. you can try YUV444
> format... its 3 bytes per pixel, just like RGB, so you will not lose any
> data.

That's quite misleading. yuv420 will of course lose data, but it's also
the standard for video compression (which typically _also_ loses data
additional to the yuv conversion). And converting between yuv444 and
RGB is also a lossy operation (at least if both use the same bit depth).

More information about the Libav-user mailing list