[FFmpeg-devel] [PATCH 13/25] avcodec/mjpegenc: add support for non-YUVJ formats

Michael Niedermayer michael at niedermayer.cc
Sat Dec 16 23:38:20 EET 2017


On Sat, Dec 16, 2017 at 11:12:33AM +0100, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavcodec/mjpegenc.c    | 5 ++++-
>  tests/lavf-regression.sh | 2 +-
>  2 files changed, 5 insertions(+), 2 deletions(-)

this breaks jpg encoding, (looks like colorspace convert/negotiate failing somehow)
for example:
./ffmpeg -ss 1 -i ~/tickets/4395/small_test2.dv -vframes 1 file.jpg

fails with:
[mjpeg @ 0x334dea0] colorspace not supported in jpeg
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

input should be here:
http://samples.mplayerhq.hu/DV-raw/small_test2.dv

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171216/9eebefa1/attachment.sig>


More information about the ffmpeg-devel mailing list