[Libav-user] how to mux MJPEG encoded data into AVI container

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Apr 11 11:32:19 CEST 2013


andro <sendtofaraway at ...> writes:

> I'm looking for a way to mux mjpeg (compressed) video 
> data into a video container like mp4 or avi.

$ ffmpeg -i input -vcodec mjpeg out.avi

> (I'll also need to add audio in the future) .

$ ffmpeg -i input -vcodec mjpeg -acodec ac3 out.avi

> I do not want decode the MJpeg data first ,and then 
> encode and mux it into AVI container .

$ ffmpeg -i mjpeg -vcodec copy out.avi

Generally, it is a good idea to test something before 
posting on this mailing list and report here if it 
does not work (includig failing command line and 
complete, uncut console output).

Carl Eugen



More information about the Libav-user mailing list