[MPlayer-dev-eng] [PATCH] new mpeg muxer

D Richard Felker III dalias at aerifal.cx
Thu Feb 24 06:57:38 CET 2005


On Wed, Feb 23, 2005 at 11:00:13PM -0600, Joey Parrish wrote:
> > - i seem to occasionally get weird out-of-order glitched frames during
> >   really high motion scenes. is this due to buggy reordering of some
> >   sort in the muxer, failure to enforce closed gops, or something
> >   else? i think i can extract small samples that exhibit the problem
> >   if you want to see one.
> 
> I've noticed this in some of my home-made DVDs.  I dug through the
> source MPEGs, and the problem lies there.  The source is interlaced NTSC
> MPEG2 from a Tivo, and there are (rarely, but noticably) missing fields.
> Any correct way to deal with that other than a blurring deinterlace
> filter?  I've never really liked the way those look.

Missing fields?? What do you mean?
This is a different problem from what I was experiencing.

> I'm having compilance issues with dvd format, too.  I specified
> format=dvd under mpegopts, but my dvd authoring app doesn't like the
> streams.  Doesn't say why, mind you... :(

You also have to use the right parameters to the mpeg video encoder..

> Also, mencoder wants to screw up audio sync pretty badly from my Tivo
> recordings.  After an hour, I'm a whole scene off.  The story is:
> 
> -ovc lavc -lavcopts vcodec=mpeg2
>   complains that "2997 / 100" is not a valid framerate for mpeg.
>   which is stupid, because the source file is an mpeg.  it's upset
>   over rounding and conversion errors introduced by the mplayer core
>   itself.  (somewhere)  I'm not able to fix this off-hand.

Try -ofps 30000/1001

> -ovc lavc -lavcopts vcodec=mpeg2 -ofps 30000/1001
>   encodes, but with massive audio sync problems.
[...]
> And I still can't help but feel like I'm missing something very
> fundamental and important.  Am I just mad, or is this really hard?

OK, you did. Also use harddup as the last filter in your filter chain.
If you're not using it and seeing any "duplicate frame" messages
whatsoever, a/v sync is being horribly ruined in your output file.

Rich




More information about the MPlayer-dev-eng mailing list