[MEncoder-users] Audio out of sync if -oac is not lavc

Timo Wiren spam.timo at gmail.com
Wed May 30 19:19:38 CEST 2007


I'm trying to encode an avi and mp3 file together with libavcodec. If I use
something else than lavc as audio codec, resulting video's audio is out of
sync. This works and is in sync:

mencoder trigun_clips.avi -ovc lavc -lavcopts
vqscale=2:autoaspect:mbd=2:trell -oac lavc -audiofile
09_Big_Man_With_a_Gun.mp3 -o output.avi

I don't want to use lavc for audio because it breaks seeking and doesn't
work on my friends' Windows machines (choppy video in MPlayer, no audio in
other players). I tried to use lame:

mencoder trigun_clips.avi -ovc lavc -lavcopts
vqscale=2:autoaspect:mbd=2:trell -oac mp3lame -lameopts cbr:br=192
-audiofile 09_Big_Man_With_a_Gun.mp3 -o output.avi

Audio is not in sync with video. Any ideas how to fix this? Same problem
occurs in -oac pcm and copy. MPlayer/MEncoder version is a subversion
snapshot from 2007-05-27.



More information about the MEncoder-users mailing list