2008-03-22, 10:33
Hi,
I checked current DVDPlayer and MPLayer code responsible for separate file subtitles support and decided to add support for:
MicroDVD {240}{288} and {240}{}
MPL2 [100][120]
TMPlayer/VPlayer 00:00:10:
Most of others could be also easy ported from MPlayer's code but nowdays 90% is MicroDVD and other 10% is SRT + TMplayer for older stuff
Currently I got c/cpp app that knows how to count iPTSStartTime, iPTSStopTime and got subtitle body in char line[1024]. All of this per one line so I believe that with it should work.
It also does detect MicroDVD, MPL2, TMPlayer and SRT formats. Again others detection can be easily implemented as most of my code is more or less DVDPlayer's and MPlayer's + my way how to compute iPTSStartTime, iPTSStop for DVDPlayer.
It does not support any text formatting (<i>, /, {y:i}, etc.) and will act just like XBMC for Xbox - just show them as a text
Now what help I need.
1. If I edit DVDPlayerSubtitle.cpp, DVDPlayerSubtitle.h and add some files to DVDSubtitles folder, I only need to modify and recompile Makefiles in dvdplayer and dvdplayer/DVDSubtitles ?
2. How will DVDplayer act if it gets one subtitle endtime in for ex 00:00:05 and next subtitle starttime in 00:00:04 ? I add about 3-4s to starttime and use it as endtime for subs without endtime ( {240}{} and 00:00:10:)
3. What is the fastest way of getting movie's FPS at DVDSubtitleParser<put_sub_format_here>.cpp level? If possible, without passing it as a variable between 10000 functions
I checked current DVDPlayer and MPLayer code responsible for separate file subtitles support and decided to add support for:
MicroDVD {240}{288} and {240}{}
MPL2 [100][120]
TMPlayer/VPlayer 00:00:10:
Most of others could be also easy ported from MPlayer's code but nowdays 90% is MicroDVD and other 10% is SRT + TMplayer for older stuff
Currently I got c/cpp app that knows how to count iPTSStartTime, iPTSStopTime and got subtitle body in char line[1024]. All of this per one line so I believe that with
Code:
while (m_pStream->ReadLine(line, sizeof(line)))
It also does detect MicroDVD, MPL2, TMPlayer and SRT formats. Again others detection can be easily implemented as most of my code is more or less DVDPlayer's and MPlayer's + my way how to compute iPTSStartTime, iPTSStop for DVDPlayer.
It does not support any text formatting (<i>, /, {y:i}, etc.) and will act just like XBMC for Xbox - just show them as a text
Now what help I need.
1. If I edit DVDPlayerSubtitle.cpp, DVDPlayerSubtitle.h and add some files to DVDSubtitles folder, I only need to modify and recompile Makefiles in dvdplayer and dvdplayer/DVDSubtitles ?
2. How will DVDplayer act if it gets one subtitle endtime in for ex 00:00:05 and next subtitle starttime in 00:00:04 ? I add about 3-4s to starttime and use it as endtime for subs without endtime ( {240}{} and 00:00:10:)
3. What is the fastest way of getting movie's FPS at DVDSubtitleParser<put_sub_format_here>.cpp level? If possible, without passing it as a variable between 10000 functions