[MPlayer-users] trying to convert MJPEG
Steve Kleene
skmpl at syrano.acb.uc.edu
Mon Apr 16 22:59:28 CEST 2007
On Sun, 15 Apr 2007 21:21:10 -0400, I wrote:
> mencoder lizard.avi \
> -oac twolame -twolameopts br=192 -srate 48000 -af lavcresample=48000 \
> -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1000:mbd=2:trell:vpass=1 \
> -of rawvideo \
> -o /dev/null
>
> mencoder lizard.avi \
> -oac twolame -twolameopts br=192 -srate 48000 -af lavcresample=48000 \
> -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1000:mbd=2:trell:vpass=2 \
> -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \
> -o lizard.mpg
>
[Summary: lizard.avi is from an older video camera. I'm trying to convert it
to a smaller file that will still play on XP. The above two-pass commands
make a file that has good audio but defective video in XP.]
On Sun, 15 Apr 2007 22:09:36 +0200, info at danielerossi.net wrote:
> personally I use for same purpose transcoding to xvid (mind the option
> -srate 11025)
>
> mencoder input.avi -o output.xvd.avi -oac mp3lame -lameopts cbr -srate
> 11025 -noskip -ovc xvid -xvidencopts fixed_quant=5:max_bframes=1:autoaspect
Thanks. This did in fact give a much smaller file that played well in
Windows Media Player (WMP). In Windows Movie Maker (WMM), though, it was
mysteriously split into four clips on import. The original lizard.avi was
not split. Unfortunately, my relatives need me to give them this in WMM.
On Mon, 16 Apr 2007 02:11:54 +0000 (UTC), John Brown asked:
> You certify_that_your_video_stream_does_not_use_b_frames. Do you know if that is
> really true?
No, I'm not sure.
> Instead of -of lavf -lavfopts try:
>
> -of mpeg -mpegopts format=mpeg1
Thanks. I just tried this, and the output plays fine on mplayer. But WMP
says it "encountered an unknown error". (Not knowing what the error is
another error, if you ask me.) I have never gotten anything I can play on XP
using "-of mpeg".
On Sun, 15 Apr 2007 23:59:20 +0200, info at danielerossi.net wrote:
> this command line (or batch file) works for me and profuce a easily
> playable mpg1/ac3 stream
>
> mencoder input.avi -of lavf -lavfopts
> format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames -oac
> lavc -lavcopts acodec=ac3:abitrate=224 -af lavcresample=44100 -ovc lavc
> -lavcopts
> vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=4000:vbitrate=2500:vmax_b_frames=0
> -o output.mpg
This gave me a file that had no sound even in mplayer. In WMP, there was no
sound and blotches of color.
Thanks to everyone for the help.
More information about the MPlayer-users
mailing list