[FFmpeg-user] ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

Michael Koch astroelectronic at t-online.de
Thu Sep 15 13:10:32 EEST 2022

Am 15.09.2022 um 11:53 schrieb Dan:
>> This seems to work with VLC player:
>> ffmpeg -f lavfi -i color=0x19be0f:s=400x576 -colorspace bt709 -crf 0
>> -vcodec libx264 -t 5 -y out1.mp4
>> ffmpeg -f lavfi -i color=0x19be0f:s=400x578 -colorspace bt709 -crf 0
>> -vcodec libx264 -t 5 -y out2.mp4
> Unfortunately, doesn't work for me in MPC or Chrome. Can you try a
> height of 720 instead of 578 to see if that fails for you?

Not the same color, but the difference is small. Not visible without 
It becomes even smaller when you add -color_primaries bt709

More information about the ffmpeg-user mailing list