Discussion:
[FFmpeg-user] MJPEG: Deprecated pixel format warning
Tobias Rapp
2014-02-21 13:09:39 UTC
Permalink
I am converting HuffYuv AVI files into MJPEG using the following command:

$ ./ffmpeg -i ffmpeg-huffyuv.avi -codec:v mjpeg -an -y ffmpeg-mjpeg.avi

this shows the following warning message (see attachment for the full log):

[swscaler @ 00b78000] deprecated pixel format used, make sure you did set
range correctly

I tested to add "-color_range" with option value "0", "1" and "2" but this
does not make any difference. If I try to add "-pix_fmt yuv422p" an
additional warning is shown:

Incompatible pixel format 'yuv422p' for codec 'mjpeg', auto-selecting
format 'yuvj422p'

Is there anything I can do to fix the issue that causes the warning?

Regards,
Tobias
Carl Eugen Hoyos
2014-02-21 13:16:15 UTC
Permalink
[swscaler <at> 00b78000] deprecated pixel format used,
make sure you did set range correctly
Afaict, the warning is primarily meant for library users,
ffmpeg users should not be affected.
I tested to add "-color_range" with option value "0",
"1" and "2" but this does not make any difference.
Iirc, the documentation of color_range is incorrect, it
only affects decoding (sometimes, currently broken).
If I try to add "-pix_fmt yuv422p" an
The correct pix_fmt for mjpeg is yuvj422p, or you use
-strict -2 if you know what you are doing.

Carl Eugen
Tobias Rapp
2014-02-21 13:33:15 UTC
Permalink
Post by Carl Eugen Hoyos
[swscaler <at> 00b78000] deprecated pixel format used,
make sure you did set range correctly
Afaict, the warning is primarily meant for library users,
ffmpeg users should not be affected.
OK, will just ignore it then.

Thanks for the feedback,
Tobias

Loading...