[MPlayer-users] Subtitle clock resets during movie

D Richard Felker III dalias at aerifal.cx
Tue Oct 7 15:22:59 CEST 2003


On Tue, Oct 07, 2003 at 04:08:16AM -0400, dcoffin at cybercom.net wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> MPlayer users,
> 
>      I'm trying to play a DVD with a custom subtitle file:
> 
> 	mplayer -sub mysubs.srt dvd://1
> 
>      It works, except for one problem.  mysubs.srt is one
> file containing subtitles for the entire movie.  But MPlayer
> resets the subtitle clock at the start of each chapter, so
> that I see the same subtitles again and again.
> 
>      This problem goes away if I dump the DVD to an AVI file,
> and show the subtitles with that.  But then I have other
> problems related to indexing and seeking.
> 
>      Does anyone know how to calculate time from the start
> of a DVD title?  If I call find_sub() with that time instead
> of "pts", my subtitles will be displayed correctly.

It's not easy because DVD sucks. We're going to try to do it in
mplayer g2 based on the stuff from the ifo file or whatever, but I'm
not sure if it's always possible to get it correct... :( You're
welcome to try doing the same, if you can figure out g1's horrible
demuxer code...

Rich



More information about the MPlayer-users mailing list