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

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


On Thu, Feb 24, 2005 at 02:22:52PM +0100, Michael Niedermayer wrote:
> Hi
> 
> On Thursday 24 February 2005 01:56, D Richard Felker III wrote:
> [...]
> > > I'd glad you like it :)
> > > Next steps are:
> > > a) finally find an algorithm that can't mux streams so as to lead to pts
> > > underrun
> > > b) verify buffering
> > >
> > > I have some very vague idea for a), never thought of b).
> > > Suggestions and patches are very welcome.
> >
> > my biggest suggestion would be padding for compliance. i know it's
> > stupid, but being able to generate 100% or even 90% compiant
> > vcd/svcd/dvd with no tools other than mencoder would be a huge step
> > forward over the mess of scripts and awkward tools everyone has to use
> > now. personally i don't care about vcd enough to use it if i have to
> 
> maybe fixing lavf muxing support would be the best idea then, its supposed to 
> be a 100% compliant (s)vcd muxer
> 
> but it seems some people prefer to rewrite everything, thats fine too, just a 
> little sad, as the time could have been spent fixing/improving the existing 
> code in libavformat from which many projects and not just mencoder would have 
> benefited
> 
> anyway, small question, does the new mpeg muxer support anything lavf doesnt? 
> iam just asking so i know what to put on my todo list

all i know is that i was never able to get a working vcd out of
ffmpeg. granted it was a few months ago that i tried, so maybe it
works now.

as for lavf support, imo the biggest thing in mencoder's new mpeg
muxer is dealing with and fixing timestamps, since they don't exist to
begin with and mencoder makes it extremely hard to make up valid ones.
with an mpeg-specific muxer at least you know the few codecs you're
dealing with, so you can parse the codec's frames to help you. i
suppose the same could be done with a lavf muxer if we cared to parse
lots of different codecs, but it would be a pain. :(

actually last night i had this idea that we should add pts to mplayer
g1's decoder/filter layer soon, and just not use it to begin with.
then after playing around with it for a while and getting it working,
we could gradually replace the mencoder a/v sync code with something
non-idiotic, and of course have working lavf muxer too!

rich




More information about the MPlayer-dev-eng mailing list