[MPlayer-users] trying to convert MJPEG

Dave Puryear Dave.Puryear at dataconversions.biz
Tue Apr 17 16:44:56 CEST 2007


Steve Kleene wrote:
> 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.
> 
> 
When sending short vids to relatives running win2000 and xp, I've had
good luck with lavc msmpeg4v2 video and lavc mp3 in an avi container.

HTH,
Dave P.



More information about the MPlayer-users mailing list