trying to convert MJPEG
I'm working with a video file (lizard.avi) from an older digital camera. It has uncompressed PCM audio and motion JPEG video. It plays fine with mplayer. I am trying to re-encode it with mencoder, thinking that better video encoding might reduce the file size. What I'd like to do is the following: mencoder lizard.avi -oac twolame \ -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=2000:mbd=2:trell \ -of rawvideo -o output.mpg I chose this encoding because it is one of the few that seems to play on most of the XP machines my relatives will be using. The encoding fails with: ae_twolame, 1 audio channel, forcing mono mode twolame_get_samplerate_index: 11024 is not a legal sample rate Not a valid samplerate: 11024 Any ideas on how to make this work (or whether I can even expect to reduce the file size with better encoding)? Thanks.
Steve Kleene wrote:
I'm working with a video file (lizard.avi) from an older digital camera. It has uncompressed PCM audio and motion JPEG video. It plays fine with mplayer. I am trying to re-encode it with mencoder... What I'd like to do is the following: mencoder lizard.avi -oac twolame \ -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=2000:mbd=2:trell \ -of rawvideo -o output.mpg [cut] The encoding fails with: ae_twolame, 1 audio channel, forcing mono mode
twolame_get_samplerate_index: 11024 is not a legal sample rate
Not a valid samplerate: 11024
Apologies to the list. I sent at least one e-mail (not to the list) without experiencing the new-line problem, so I thought that it had sorted itself out. try adding -twolameopts br=128 -srate 44100 -af lavcresample=44100. Since it is mono, you can probably use a lower bitrate and sample rate without affecting how it sounds. twolame --help will give you a lot of information about legal sample rates and legal bitrates for each supported sample rate.
John Brown wrote:
twolame_get_samplerate_index: 11024 is not a legal sample rate
Not a valid samplerate: 11024
Apologies to the list. I sent at least one e-mail (not to the list) without experiencing the new-line problem, so I thought that it had sorted itself out.
try adding -twolameopts br=128 -srate 44100 -af lavcresample=44100. Since it is mono, you can probably use a lower bitrate and sample rate without affecting how it sounds.
twolame --help will give you a lot of information about legal sample rates and legal bitrates for each supported sample rate.
mp2 accepts only 48, 44.1, 32, 24, 22.05, 16 sampling rates, but using -of rawvideo you won't get it in the output file
Steve Kleene wrote:
I'm working with a video file (lizard.avi) from an older digital camera. It has uncompressed PCM audio and motion JPEG video. It plays fine with mplayer. I am trying to re-encode it with mencoder.
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 and under xp could be usefull a .bat file to drag and drop the file to: mencoder %1 -o %1.xvd.avi -oac mp3lame -lameopts cbr -srate 11025 -noskip -ovc xvid -xvidencopts fixed_quant=5:max_bframes=1:autoaspect cheers daniele
participants (4)
-
info@danielerossi.net -
John Brown -
Nico Sabbi -
Steve Kleene