[FFmpeg-user] YUV->RGB Color Shift

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jan 10 23:19:00 CET 2012

rotoman <rotoman <at> gmail.com> writes:

> Carl Eugen Hoyos wrote
> > 
> > rotoman <rotoman <at> gmail.com> writes:
> > 
> >> I'm having the same problem. The reason is simple: the Prores 4444 is RGB
> >> and not YUV. FFmpeg assumes it's YUV and converts to RGB.
> > 
> > Please provide a sample.
> Here is a sample Prores 4444 footage, with RGB encoding.

There is a misunderstanding, sorry!

You mean that the colour dynamics are wrong, is that correct?
("video level" or "MPEG vs JPEG" etc.)
Red is red for you, but you think it is too red (or not red enough)?

There is a color_range option that should affect this conversion, some users
reported it does not work correctly, a reproducible bug report would be nice.

You can try to force PIX_FMT_YUVJ444P in the decoder, if this is needed for all
samples, consider sending a patch to ffmpeg-devel.

If the encoding is "RGB" instead of "YUV" (this is possible for example with
H264 and JPEG2000), red, green and blue become completely different colours.

Carl Eugen

More information about the ffmpeg-user mailing list