[MEncoder-users] Decoding mjpeg with mencoder

Dirk Plate dirk.plate at holidaycheck.de
Tue Nov 10 11:29:10 CET 2009


Hi all,

I have problems to convert mjpeg movies (container: avi, video-codec: 
mjpg, audio-codec: mlaw) to h264.
Here my command:

mencoder
sample.AVI
-of rawvideo
-nosound
-vf hqdn3d=2:1:2,pp=ac/al,scale=440:-2
-sws 9
-ovc x264
-x264encopts bitrate=512:subq=5:8x8dct:frameref=2:bframes=3:weight_b 
-ofps 30
-o sample.h264

This command returns with no error code, but in output there are these 
lines:

Seek failed      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Pos:   0.0s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Flushing video frames

The result is a stream without any frames.
If I play the original files with mplayer, it stops with a 'Seek failed' 
error too. I found a hint that '-demuxer lavf' can solve this problem in 
mplayer and this works for me too.
But in mencoder this parameter has no effect. No 'unknown parameter' 
error, but the result hasn't changed.

You can download a sample file here:

http://www.file-upload.net/download-2001649/sample.AVI.html

Any tips?

Much thanks,
Dirk



More information about the MEncoder-users mailing list