scaglifr
Jan 15 2007, 19:38
Hi,
I am trying to convert some avi files (downsize and rotate) using mencoder. The video conversion works fine but the audio conversion (only needed because I cannot get mencoder to use the original audio) distorts ++.
Originals soundtrack mp3s are 128 at 44100 and sound fine (produced by dvd::rip on linux).
the command
mencoder ./infile.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=1 -o outfile.avi
Produces perfect video but the soundtrack warbles. I have used several different players and the problem occurs with them all so I assume the issue is an mencoder one.
Does anyone have any suggestions ?
TIA
Francesco
caligae
Jan 15 2007, 20:05
Do yout get an error message with "-oac copy" instead of "-srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=1"?
Maybe mplayer has trouble reading the file. Does the original file sound fine when played with mplayer?
Also, you could try removing "-srate 44100" if your original file is a 44100Hz file anyway. The man page says "The default is fast resampling that may cause distortion." about srate.
Setting the lame bitrate to 320 for testing purposes might also give some insight.
LaserSokrates
Jan 15 2007, 21:25
There's no point in reencoding these mp3 files. Demux the mp3s from the original avi files, and mux them with the video created by mencoder later. Or rerip your sound or the DVD.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.