[MEncoder-users] Getting the sound right in a conversion from avi to mpg (mpeg2)

Nico Sabbi nsabbi at tiscali.it
Thu Jun 23 20:29:12 CEST 2005


John Dickinson wrote:

>I am converting an avi file into an mpg file and seem to have gotten
>the video working well enough (thanks to people here).  However the
>audio is failing for me.  The final goal is to have an mpeg2 VCD
>  
>
SVCD

>compatible video file (with audio) for portability to the grandparents
>old VCD/DVD player.
>
>Here is the command:
>mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:mbd=2:keyint=
>25:vrc_minrate=600:vbitrate=6000 -vf rotate=1 -oac lavc -af
>lavcresample=48000:srate=48000 in.avi -o test.mpg
>  
>

-af lavcresample=44100 -srate 44100 -mpegopts format=xsvcd and add vrc_buf_size=917.
Yet 6000 is way too high for svcd, you should use 2500 instead




>[mp2 @ 00A268B8]bitrate 224 is not allowed in mp2
>Couldn't open codec mp2, br=224
>
>Seems like the bitrate is the problem but the resample doesn't work.
>If I get rid of: "-oac lavc -af lavcresample=48000:srate=48000" and
>replace with "-oac copy" it works but there is no sound with the
>resultant file.
>  
>

because you didn't really resample.
Finally: use mencoder from cvs

>I am really stumped on this even after reading the html version of the
>manpage that came with the window's binaries of mplayer.
>
>John
>  
>

you didn't read carefully the man page




More information about the MEncoder-users mailing list