mjpeg and swscale: yuvj420p/yuv420p - pixel format problem
|Reported by:||Marcin||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
My application extracts frames from h264 UDP stream and saves them as jpg files.
Input pixel format is juv420p so mjpeg complains:
Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
Adding filter to convert pixel format from yuv420p to yuvj420p solved the problem, but since ffmpeg version n2.1 there is a new problem reported:
[swscaler @ 0xb12fea0] deprecated pixel format used, make sure you did set range correctly
Deprecated pixel format message is observed in custom applications which use ffmpeg libraries as well as in ffmpeg application.
How to reproduce:
% ffmpeg -i SOME_H264_STREAM output_%d.jpg ffmpeg version: git-master, n2.1 built on: ubuntu 12.04