[MPlayer-users] -oac copy + -audiofile broken?

D Richard Felker III dalias at aerifal.cx
Sat Nov 2 00:17:02 CET 2002


On Fri, Nov 01, 2002 at 08:06:37PM -0500, j.a.l wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> D Richard Felker III wrote:
> >[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> >I've noticed that when muxing mp3 audio into avi files with something
> >like:
> >
> >  mencoder -oac copy -ovc copy foo.avi -audiofile bar.mp3
> >
> >there are tons of skipped frames, and if I add -mc 0 to prevent them,
> >audio pts runs over 1000 times too fast in the output avi file.
> >mplayer will play the output file ok, but a/v sync then breaks if you
> >seek at all.
> >
> >Using the same files, the following command:
> >
> >  mplayer foo.avi -audiofile bar.mp3
> >
> >plays just fine. Is this a known issue? I can provide sample files if
> >necessary, but it seems that this exact same thing always happens...
> >
> >BTW, reencoding audio rather than using -oac copy works fine, but that
> >will unfortunately reduce quality...
> >
> >Rich
> >
> 
> frame rate problem, in manual, in forum archive... guess the answer is RTFM

Huh? How can there be a framerate problem? The frame rate is 29.97,
which is correct since the source is NTSC (made for TV, not telecine
stuff). Also the mp3 audio stream was ripped from the avi file in
question for repairs, then reinserted as I described.

In any case, the behavior I was describing does not make sense. My
guess is that mencoder somehow reads the audio PTS wrong when taking
audio from -audiofile with -oac copy.

Rich




More information about the MPlayer-users mailing list