[FFmpeg-user] The internal ffmpeg rgb=>yuv pipeline and conversion matrices
Andy Furniss
adf.lists at gmail.com
Mon May 9 16:34:57 CEST 2016
Peter Rabbitson wrote:
> On 05/09/2016 03:01 PM, Peter Rabbitson wrote:
>>
>> scale=in_color_matrix=bt601:out_color_matrix=bt709:in_range=full:out_range=tv
>>
On a real source I don't think in_color_matrix=bt601 would be correct.
in_range=full:out_range=tv IIRC failed testing with color src (I guess
it already scaled) but would be correct (and default anyway) for real
source.
> Correction. Testing indicates the specification of in_* confuses
> ffmpeg even more. What seems to be "the way forward" is:
Don't test with color src - use something real and you may see different.
>
> ffmpeg -y -r 30 \ -filter_complex ' color=c=00aa00:s=320x200,
> scale=out_color_matrix=bt709:out_range=tv; color=c=00aa00:s=1280x720,
> scale=out_color_matrix=bt709:out_range=tv' \ -c:v libx264 -colorspace
> bt709 -pix_fmt yuv444p -profile:v high444 \ -qp 0 -preset:v ultrafast
> -t 5 greenz.mkv
Works but color is special and of course it "breaks" the sd version.
More information about the ffmpeg-user
mailing list