[Libav-user] FFMpeg and CODEC_ID_MJPEG

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Oct 8 23:24:52 CEST 2012


Denis <info at ...> writes:

> I have a problem with "decoding_encoding.c" example 
> making a video with mjpeg codec. I obtain the error
> 
> "Encode video file mjpeg.mpg
> [mjpeg @ 0x956b020] Specified pix_fmt is not supported
> could not open codec"

(The following is of course pure guessing, since all 
necessary information is missing.)

MJPEG does not support yuv420p, it needs PIX_FMT_YUVJ420P
(or PIX_FMT_YUVJ422P).

Carl Eugen



More information about the Libav-user mailing list