[MPlayer-users] playing double layer dvd with external subtitles

Rich Felker dalias at aerifal.cx
Thu Sep 21 06:19:34 CEST 2006


On Wed, Sep 20, 2006 at 05:51:21PM +0200, Alexander Roalter wrote:
> Petr Vopalensky wrote:
> >hi *,
> >
> >i would like to play dvd with my own subtitles
> >
> >mplayer dvd://1 -alang en -sub my_sub.srt
> >
> >but there is some problem with double layer dvds because when mplayer
> >starts to read from second layer counters are reset and subtitles are
> >starting from beginning :-(
> >
> >is there some way to fix/work around it?
> >
> >i use current svn version of mplayer
> >
> >	thank you,, petr
> >
> >
> This does not have to do with double layer, but simply the timestamps in 
> the mpeg stream. even a 5 minute movie you can reset the timestamp ever 
> ten seconds if you want.
> 
> Finding out the correct length of the MPEG video and the current 
> timestamp/filepos correlation is not doable without first scanning the 
> entire file (or using some obscure helping mechanisms -> summing up the 
> chapter run length, or what ever else...)
> 
> Half (or more) a year ago there was already a discussion here about this 
> issue.
> 
> Subtitlewise one could help by implementing a display on frame count 
> which would not reset, but would be out of order if one starts to seek :(

No, it's possible to get the timestamp corrections from the DVD
navigation information, I believe. This could be used to fix the
problem and implement correct seeking on DVD. Dunno if the current
dvdnav work will help on that or not tho..

Rich




More information about the MPlayer-users mailing list