[Ffmpeg-devel] Encoding n Motion JPEG (MJPEG)

CJ Ng pmaxv
Fri Sep 2 18:46:34 CEST 2005


Hi there,

            I've been trying to modify the output_example.c to produce MJPEG
by modifying the following from:

#define STREAM_PIX_FMT PIX_FMT_YUV420P

to

#define STREAM_PIX_FMT PIX_FMT_YUVJ420P

 

With this, I'm able to produce a file encoded in MJPEG form. However, when I
try to open the file with mplayer, an error message was produced:

 

Sequential header error

 

Could someone please tell me what's happening?


Thanks.

CJ





More information about the ffmpeg-devel mailing list