[MPlayer-users] implicit (?) delay when writing a mpeg

Krzysztof Duchnowski amidk75 at gmail.com
Fri Sep 24 17:25:40 CEST 2010

On 24.09.2010 09:13, Alexander Roalter wrote:

>>> when I create a video with mencoder using the following settings:
>>> -of mpeg
>>> -ovc lavc
>>> -lavcopts vcodec=mpeg2video:vqmin=2:vqscale=2:keyint=12
>>> -ofps 24
>>> -oac mp3lame
>>> -lameopts abr:padding=2
>>> -srate 44100
>>> I get a video, where the audio is out of sync (by around 0.4 to 0.5
>>> seconds).
>>> Playing the video with -delay 0.4 has the correct sync, but why is this
>>> asynchronizity there in the first place?
>> A Lot of it all depends on your source file.
>> I would highly recommend you add -vf harddup  to your command line, if
>> you notice any
>> duplicate frame messages at the beginning of the encode they may be what
>> cause your
>> current av offset.
>> The harddup filter will make MEncoder encode those duplicate frames to
>> keep av sync.
> Unfortunately, it didn't solve the problem, now the delay is ~0.2.
> I'll try the same without changing the frame rate, but are the other 
> suggestions?

If you use LAVC for Video then use LAVC for Audio also.
It's my own experience which was denied here.

Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/

More information about the MPlayer-users mailing list