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

Dan twinbee42 at skytopia.com
Fri Sep 16 17:15:33 EEST 2022


> It is evident that your knowledge is exactly 0.

I know enough to say I can't wait until everyone can unify under a single
colour space/profile, scrap YUV, scrap chroma subsampling and go with RGB.
Disk space and bandwidth is getting cheaper and cheaper after all.

Haha, okay let's put egos aside. Michael recommended I try going
through the various colour spaces, so that's what I did. And hey, FCC worked for me!
What might go wrong if I stick with this technique?

> FCC colorspace is not correct way to represent encoded material.
>
> Use -color_range flags.

Why didn't you recommend this originally? Anyway, *finally* found docs for it
under the codecs section: https://ffmpeg.org/ffmpeg-codecs.html

I tried all of them: "tv", "mpeg", "pc", "jpeg". Here's the line I used:

ffmpeg.exe -i testchart.tif -color_range mpeg -crf 0 -vcodec libx264 -pix_fmt yuv420p output-mpeg.mp4

Unfortunately, colours are still muted/changed: https://i.imgur.com/H7GzYS4.png

Am I supposed to combine it with another CLI argument?

Dan




>
>> Dan
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list