On Wed, Mar 26, 2008 at 11:23 AM, Erik Slagter <erik@slagter.name> wrote:
zechao wang wrote:
Hello Erik Slagter:
I want to convert rmvb files to mp4 for my cellphone.
mencoder my.rmvb -ovc lavc -oac mp3lame -o my.avi
ffmpeg -y -i my.avi -vcodec xvid -s 400x240 -r 29.97 -b 600 -acodec aac -ac 2 -ar 48000 -ab 128 -vol 200 -f mp4 my.mp4
With above commands, it can works well. But the quality is not good, especially when playing the dark frames, there are too much mosaic.
If you are familiar with ffmepg, how should i do if i want to get the high-quailty mp4 file ? Please give me some advice, thanks you very much.
Something like:
ffmpeg -i my.rmvb -vcodec libx264 -acodec aac -s 400x240 -r 29.97 -b 600
-ac 2 -ar 48000 -ab 128 -vol 200 -f mp4 my.mp4
Why do you need the extra pass with mencoder anyway?
This command is a for a "proper" (imho) mp4-implementation, using h264 (aka mpeg4-avc). If your phone cannot handle that, replace -vcodec libx264 by -vcodec mpeg4, this will output mpeg-vc ("traditional mpeg4"). [...] I think it is much more common that a device supports "Divx" (meaning MPEG-4 part 2 with certain restraints) than H.264.
-- Software is like sex: it is better when it is free - Linus Torvalds