[MEncoder-users] Can't encode amr audio correctly when convert avi to 3gp with mencoder (remove big attachment)

littlebat dashing.meng at gmail.com
Fri Mar 18 10:43:41 CET 2011


Hi,

I am a newbie to mencoder and this email list.

I try to convert an AVI file to 3GP with AMR Narrow Band encoder, but every time it end with the audio duration is too shorter than video duration. The video duration is 10 seconds and the audio duration is about 2 second in my tests. I have played them on mplayer in Linux or other player in Windows, the result is same.

Two environment, the same results:

1, ASUS EEEPC 900HA(ATOM CPU N270), Ubuntu 10.10, MPlayer SVN-r33081-4.4.5, opencore-amr-0.1.2, the command is below:

/usr/local/bin/mencoder -noconfig all -oac lavc -ovc lavc -lavcopts vcodec=h263:vbitrate=200:acodec=libopencore_amrnb:abitrate=10200 -of lavf -ofps 15 -srate 8000 -vf scale=176:144 -af lavcresample=8000,channels=1,volnorm -o test10s.r33081.h263.openamrnb.3gp test10s.avi

2, Vmware virtual machine(Core(TM)2 Duo CPU E7400), Ubuntu 10.04, MPlayer-1.0rc3, amrnb-7.0.0.2 come from http://www.penguin.cz/~utx/amr, the command is below:

/usr/local/bin/mencoder -noconfig all -oac lavc -ovc lavc -lavcopts vcodec=h263:vbitrate=200:acodec=libamr_nb:abitrate=10200 -of lavf -ofps 15 -srate 8000 -vf scale=176:144 -af lavcresample=8000,channels=1,volnorm -o test10s.rc3.h263.amrnb.3gp test10s.avi

I compiled Mplayer and AMR encoder from source.

I have attached the source file "test10s.avi" and two convert result files "test10s.r33081.h263.openamrnb.3gp" and "test10s.rc3.h263.amrnb.3gp" in a compressed file "testmencoder.zip". You can get this attachment from: http://www.learndiary.com/upload/2011/03/testmencoder.zip .

If anyone can help me convert this avi to 3gp with amr audio encoder? Or, it is just a mencoder bug as someone report at: http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1603 (MENCODER: Sound problems trying to convert from anything to 3gp w/amrnb)?

Thanks.

littlebat


More information about the MEncoder-users mailing list