[MPlayer-users] trying to convert MJPEG

Steve Kleene skmpl at syrano.acb.uc.edu
Tue Apr 17 15:47:31 CEST 2007


On Tue, 17 Apr 2007 08:45:46 +0000 (UTC), John Brown wrote:

> So you're saying that the same command line that does DVD-to-MPEG1 does not
> convert the camera file to MPEG1?

That's correct.  In single-pass form, the command that works for DVD is:

mencoder dvd://1 \
  -oac twolame \
  -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=2000:mbd=2:trell \
  -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \
  -o output.mpg

When I applied this to the file from the video camera (lizard.avi), mencoder
failed with:

  twolame_get_samplerate_index: 11024 is not a legal sample rate

This error was explained to me here, and I modified the command to be:

mencoder lizard.avi \
  -oac twolame -twolameopts br=128 -srate 44100 -af lavcresample=44100 \
  -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1000:mbd=2:trell \
  -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \
  -o output.mpg

With this, mencoder produced a file that plays fine in mplayer.  On XP, it
has good audio but the video is defective.  The image is visible, but there
are lots of blotches of color popping up here and there.




More information about the MPlayer-users mailing list