[MPlayer-dev-eng] [PATCH] matroska chapter seeking

Rich Felker dalias at aerifal.cx
Sun Jul 16 18:35:52 CEST 2006


On Sun, Jul 16, 2006 at 06:44:04PM +0400, Evgeniy Stepanov wrote:
> On Sunday 16 July 2006 13:12, Reimar Döffinger wrote:
> > Hi,
> >
> > On Sat, Jul 15, 2006 at 07:42:55PM +0400, Evgeniy Stepanov wrote:
> > > If demuxer contains chapters infomation, there is no need for
> > > DEMUXER_CTRL_SEEK_TO_CHAPTER, regular seeking mechanism can be used.
> >
> > Well, the (maybe purely theoretical) disadvantage is that it only works
> > if the demuxer is able to provide a full chapter list upfront.
> > For a potential format that has only "chapter marks" embedded in the
> > file that you would have to read over to find, this solution wouldn't
> > work (at least not without adding something like -forceidx for chapter
> > info).
> 
> I've got a problem with dvd chapters, it may have something in common with 
> your idea. 
> 
> Looks like dvd chapters start/end points are given as offsets in dvd stream. 
> I'm not very familiar with dvd stuff and interaction between demuxers and the 
> stream layer. I wonder if there is a way to recalculate those values to pts ? 
> If not, we may have to use a demuxer_ctrl.

You must use the stream layer stuff. PTS is meaningless on DVDs. It
jumps around randomly.

Rich




More information about the MPlayer-dev-eng mailing list