[MPlayer-dev-eng] [PATCH] better seeking in dvd

Corey Hickey bugfood-ml at fatooh.org
Sun May 7 21:43:34 CEST 2006


Nico Sabbi wrote:
> This patch permits to use the timing map present in the IFO files
> and next refine the search in the demuxer, consequently
> -ss (and seeking in general) works better.
> 
> With the old code (still usable with -noifoseek) I've seen up to 30 seconds
> of difference between the required time and the one obtained, so IMO
> this new seeking method is a serious improvement over the previous one.
> 
> If no one objects I'll commit this patch tomorrow.

For those to whom my response seems a bit out of context, I tested a
couple earlier revisions of this patch before Nico posted it to the
list. Anyway:


This works very well now on The Fellowship of the Ring, but still has
problems with Star Wars. I assume the problem is due to the PTS resets
-- it happens in their vicinity, both in the beginning of the movie and
at the reset near the middle. Here's a bit more detail.

- When the current position is a little past one of the early resets,
seeking forward by 10s or 60s jumps back to an earlier position.
- When the current position is far past the early resets, all seeking is
fine, until:
- When the current position is past the mid-movie reset, seeking by 10s,
60s, or 600s jumps back to near the beginning of the movie.
- 'mplayer -ss xxxx' hits EOF when xxxx is past the mid-movie PTS reset,
even if xxxx is less than the actual movie length. Actually, the old
code can't handle that either, but it would be really nice to have,
since -ss is nearly useless for seeking in such DVDs.

Nico, is there any more information I can provide short of mailing you
the DVD? :)

-Corey




More information about the MPlayer-dev-eng mailing list