[MEncoder-users] converting and subtitle questions !

Jorge Peixoto de Morais Neto please.no.spam.here at gmail.com
Thu Mar 20 04:05:22 CET 2008


On Wed, Mar 19, 2008 at 3:40 AM, zechao wang <wzc0066 at yahoo.com.cn> wrote:
> Hello Everyone!
>
>  There have two questions need your help:
>
>  (1) To convert rmvb to mp4 for my cellphone, i had to convert two times.
>  First, rmvb should be converted to avi with mencoder; Second, avi could be converted to mp4 wth ffmpeg .
>
>  My commands are:
>
>  mencoder mov.rmvb -ovc lavc -oac mp3lame -o mov.avi
This command reencodes the movie. Video codec is from lavc. Since you
did not specify which video codec you wanted from the ones supported
by lavc, mencoder uses the default MPEG-4 part 2.
Audio codec is mp3 from mp3lame

>  ffmpeg -y -i mov.avi -vcodec xvid -s 400x240 -r 29.97 -b 600 -acodec aac -ac 2 -ar 48000 -ab 128 -vol 200 -f mp4 mov.mp4

This reencodes the movie again! This loses quality!
Also, you are encoding with fixed bitrate in only one pass. This
results in bad quality.

I recommend you do the following:

1) Encode with mencoder, two pass. It would be something like this

First pass:
mencoder -o mov.avi -ovc lavc
-lavcopts:vmax_b_frames=2:vb_strategy=2:brd_scale=2:mbd=2:trell:v4mv:last_pred=3:predia=3:dia=3:cbp=yes:preme=2:vqcomp=0.6:vbitrate=600:vpass=1:turbo
-oac faac -faccopts br=
>
>  Is there a way to do that just with mencoder in one time ?
>  If it can, please tell me the command ( i have tried much times, but failed all the time) !
>
>
>  (2) After adding subtitles to movie with mencoder, only striping (--) could be seen when playing! I'm sure the subtitle can works well when it working with the movie together. The language of the subtitle file is simple chinese and the encoder mode is utf8.
>
>  My command is:
>  mencoder test.avi -ovc lavc -oac copy -sub test.srt -font "/usr/share/fonts/truetype/arphic/uming.ttf" -subcp utf8 -subfont-encoding unicode -subfont-text-scale 3  new.avi
>
>  I don't know why, please tell me if somebody know.
>
>
>
>
>  ---------------------------------
>  雅虎邮箱传递新年祝福,个性贺卡送亲朋!
>  _______________________________________________
>  MEncoder-users mailing list
>  MEncoder-users at mplayerhq.hu
>  https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users



-- 
Software is like sex: it is better when it is free - Linus Torvalds


More information about the MEncoder-users mailing list