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

Lobster lobo at lobs.sytes.net
Thu Sep 23 22:50:10 CEST 2010


  On 23/09/2010 11:26 a.m., Alexander Roalter wrote:
> Hi,
>
> 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.




More information about the MPlayer-users mailing list