[MEncoder-users] Writing multipart jpegs (mpjpeg) with mencoder?

Stefan Neufeind mencoder at stefan-neufeind.de
Thu Aug 31 01:54:48 CEST 2006


Evgeniy Stepanov wrote:
> On Thursday 31 August 2006 03:23, Stefan Neufeind wrote:
>> Hi,
>>
>> not too many people seem to have done this so far :-) But I've read that
>>   ffmpeg supports output of a "multipart-stream" of jpeg-images - a.k.a.
>> mpjpeg. Unfortunately I didn't manage to give correct commandline
>> options to make it usable from ffmpeg or even better mencoder.
>>
>> Could somebody give a clue for a correct commandline?
>> The string "mpjpeg" is present in the mencoder-binary - so I guess it's
>> somehow possible.
>>
>>
>> I tried (without success) with:
>> mencoder input.mp4 -ovc lavc -lavcopts vcodec=mpjpeg -o abc
>> or
>> mencoder input.mp4 -ovc lavc -lavcopts format=mpjpeg -o abc
>> or similar.
> 
> This seems to work:
> 
> mencoder input.avi -of lavf -lavfopts 
> format=mpjpeg:i_certify_that_my_video_stream_does_not_use_b_frames -nosound -ovc 
> lavc -o qq

Hi Evgeniy,

thanks a lot!

Hmm, it does work somehow. Okay, so I missed to figure out mpjpeg is a
container, not the image itself. But could it be that the container does
not yet contain valid jpeg-data? Or am I wrong? Do I need to specify
some vcodec=jpeg? (which does not work as I tried it)

Regards,
 Stefan



More information about the MEncoder-users mailing list