Keith_Beef
March 30th, 2009, 02:31 AM
I'm trying to encode some films to MPEG4 to play either on my Nokia 5800 or on other players, and almost all the fles have a big problem: sound is out of synch by as much as 36 seconds!
I have ripped some of my DVDs to AVI files, and these play fine in Xine, MPlayer or Totem.
But when I convert these AVI files to MPEG4, the synch goes.
Here is an example of the kind of commands I used, and they all gave out-of-synch results when tested on the computer, and also on the Nokia.
mencoder -ovc lavc -oac lavc -of lavf -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:keyint=25:vbitrat e=500:threads=4:acodec=libfaac:abitrate=64 -af lavcresample=44100 -vf harddup,scale=320:-3 -noskip -lavfopts format=mp4 mongol_1.avi -o mongol_320.mp4
I tried different bitrates and scale at 640; tried specifying output fames per second as 25 or 30; tried leaving out keyint... nothing brings the sound back into synch.
After searching some more, I tried slightly different arguments.
mencoder -oac mp3lame -lameopts cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=500:vhq:autoaspect -vf scale=320:-3 -ffourcc DX50 mongol_1.avi -o mongol_DX50.mp4
This has the sound in synch; but the Nokia won't play the file. :(
Any clues, please?
K.
I have ripped some of my DVDs to AVI files, and these play fine in Xine, MPlayer or Totem.
But when I convert these AVI files to MPEG4, the synch goes.
Here is an example of the kind of commands I used, and they all gave out-of-synch results when tested on the computer, and also on the Nokia.
mencoder -ovc lavc -oac lavc -of lavf -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:keyint=25:vbitrat e=500:threads=4:acodec=libfaac:abitrate=64 -af lavcresample=44100 -vf harddup,scale=320:-3 -noskip -lavfopts format=mp4 mongol_1.avi -o mongol_320.mp4
I tried different bitrates and scale at 640; tried specifying output fames per second as 25 or 30; tried leaving out keyint... nothing brings the sound back into synch.
After searching some more, I tried slightly different arguments.
mencoder -oac mp3lame -lameopts cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=500:vhq:autoaspect -vf scale=320:-3 -ffourcc DX50 mongol_1.avi -o mongol_DX50.mp4
This has the sound in synch; but the Nokia won't play the file. :(
Any clues, please?
K.