[MPlayer-users] Audio out of sync

Giacomo Comes comes at naic.edu
Wed Jan 10 04:52:02 CET 2007


On Tue, Jan 09, 2007 at 08:04:18PM -0500, Michael Lindner wrote:
> I'm trying to backup tivo video to DVD. I have a utility that extracts a 
> .mpg file from the tivo file. The resulting .mpg file plays perfectly 
> with mplayer.
> 
> However, when converting to DVD, the result has audio that starts out in 
> sync, but as time progresses gradually gets out of sync with the video. 
> I am using the script encode2mpeg to make the dvd, but the result is the 
> same no matter what tools I've tried. At any rate, encode2mpeg demuxes 
> the audio and video using the command
> 
> mplayer XXX.mpg -noframedrop -v -osdlevel 0 -vo yuv4mpeg:file=/dev/fd/4 
> -ao pcm:waveheader:fast:file=%10%XXX.wav
> 
> so I'm asking my question in this forum. It seems that the original mpg 
> file has *mostly* frames at 29.970fps. However, a few of the frames are 
> not, as shown below. I'm told this is the reason for the sync slipping:
> 
> A: 189.7 V: 189.2 A-V:  0.476 ct:  0.284 5642/5624  2% 43%  0.3% 5073 0 
> 
> demux_mpg: 24000/1001fps progressive NTSC content detected, switching 
> framerate.
> A: 190.0 V: 189.5 A-V:  0.550 ct:  0.303 5650/5631  2% 43%  0.3% 5079 0 
> 
> demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
> Warning! FPS changed 23.976 -> 29.970  (-5.994005) [4]  3%  0.3% 5080 0
> 
> I was wondering if there's a way to fix this so the streams will be in 
> sync. There are quite a few Windows programs that do this, but they are 
> Windows programs and I am running Linux. I figure mplayer does just 
> about everything, there must be an option that can do it that I'm missing...

Your question is more about encode2mpeg usage then mplayer/mencoder usage.
You should post your message to the encode2mpeg mailing list.

And about your a/v sync problem, if you use encode2mpeg's Mpeg Mode
you should not have sync problems.

Ciao
Giacomo



More information about the MPlayer-users mailing list