[MEncoder-users] converting and subtitle questions

zechao wang wzc0066 at yahoo.com.cn
Thu Mar 27 12:50:25 CET 2008


Thank you very much, "Erik Slagter" !

Some medias are not supported by ffmpeg in my system, such as rm, rmvb, wmv.  So mencoder was used to convert rmvb to avi firstly. 

I don't know why it can work in you system !

Information of my ffmpeg is: 

zwang at wzc:~/Downloads/tmp$ ffmpeg -version
ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-gpl --enable-pp --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-shared --prefix=/usr
  built on Feb 24 2008 14:35:12, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
ffmpeg      CVS
libavcodec  3211266
libavformat 3211520

Any ideas ? Thanks.

Erik Slagter <erik at slagter.name> 写道: 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"). You do not need xvid for this.
_______________________________________________
MEncoder-users mailing list
MEncoder-users at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users



       
---------------------------------
 雅虎邮箱,您的终生邮箱!


More information about the MEncoder-users mailing list