[FFmpeg-user] deprecated pixel format used, make sure you did set range correctly

Michael Koch astroelectronic at t-online.de
Sun Jun 11 12:47:00 EEST 2023

Am 11.06.2023 um 11:33 schrieb Cecil Westerhof via ffmpeg-user:
> Ferdi Scholten <ferdi at sttc-nlp.nl> writes:
>> I make a slideshow of my pictures with:
>>>       ffmpeg -y -i %04d.jpg -i
>>> /home/cecil/Audio/YouTube/Symphony_No_5_by_Beethoven.mp3 -pix_fmt
>>> yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9 -preset
>>> veryfast -vf
>>> zoompan=d=3:fps=.333:s=1280x960,framerate=25:interp_start=0:interp_end=255:scene=100
>>> huizeDoorn.mp4
>>> It looks OK, but I get a lot of the following messages:
>>>       deprecated pixel format used, make sure you did set range correctly
>>> Am I doing something wrong? Should I be worried?
>> No you are not doing anything wrong, the warning is displayed because
>> the pixelformat of your input source (the jpeg file) uses a deprecated
>> pixelformat with a different range for luma and chroma as your output
>> pixelformat, this can lead to differences in color and/or brightness
>> yuvj422p is the deprecated pixelformat used by your jpg files (range
>> 0-255 for luma and chroma) 16 bpp
>> yuv420p is the pixelformat of your output. (range 16-235 for luma and
>> 16-240 for chroma) 12 bpp
>> So three conversions need to be made here:
>> yuv conversion from 4:2:2 to 4:2:0
>> range conversion for y
>> range conversion for uv
>> The warning might disappear (not tested this so not sure about it) if
>> you specify the pixelformat of your jpg file in your command as it is
>> now being autodetected by ffmpeg and the autodetection might be
>> wrong
> How can I determine the pixel format of my jpeg files?

ffprobe yourfile.jpg
ffmpeg -i yourfile.jpg


More information about the ffmpeg-user mailing list