[MPlayer-users] Audio sync problem with mencoder and ogmmerge

Eric Potter ericp at earthlink.net
Fri Dec 6 01:12:02 CET 2002


On Thu, 2002-12-05 at 10:43, Sycotic Smith wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> > cat *.vob | mencoder - -ovc frameno -oac pcm -o frameno.avi
> > cat *.vob | mplayer - -vc dummy -vo null -hardframedrop -ao pcm -aofile
> > audio.wav
> > normalize audio.wav
> > oggenc -q 1 audio.wav -o audio.ogg
> > cat *.vob | nice mencoder - -oac copy -vop
> > scale=640:-2,crop=708:362:6:56,pp=lb -ovc lavc -o Film.avi -lavcopts
> > vcodec=mpeg4:vhq:v4mv:vqmin=2:vqmax=30:vbitrate=1400:vpass=1
> > cat *.vob | nice mencoder - -oac copy -vop
> > scale=640:-2,crop=708:362:6:56,pp=lb -ovc lavc -o Film.avi -lavcopts
> > vcodec=mpeg4:vhq:v4mv:vqmin=2:vqmax=30:vbitrate=1400:vpass=2
> > ogmmerge -o Film.ogm -A Film.avi audio.ogg
> > 
> > When I play back the resulting ogm with mplayer, the audio 
> > quickly begins to lag the video.  It appears that the video
> > is playing at 30 fps and the audio is playing at 24 fps.
> 
> Have you tried using -ofps with mencoder to make sure the proper framerate is used for the resulting file?  Just MHO, it _should_ fix, it did for me several times with bad encodes...
> 
> /S. Smith

I tried it but it doesn't work.  That caused the opposite problem:  the
audio precedes the video.  Anyways, my intermediate avi file plays fine,
only after I use ogmmerge does the problem occur.  It looks like a bug
in ogmmerge.




More information about the MPlayer-users mailing list