This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7252 - SubRip (srt) subtitle support in MPEG Player. (Edit: +overlay timebar)
Attached to Project:
Rockbox
Opened by Antoine Cellerier (dionoea) - Saturday, 02 June 2007, 16:18 GMT+2
Last edited by Antoine Cellerier (dionoea) - Sunday, 14 October 2007, 22:49 GMT+2
Opened by Antoine Cellerier (dionoea) - Saturday, 02 June 2007, 16:18 GMT+2
Last edited by Antoine Cellerier (dionoea) - Sunday, 14 October 2007, 22:49 GMT+2
|
DetailsThis patch adds SubRip subtitle support to MPEG Player.
http://wiki.multimedia.cx/index.php?title=SubRip Files need to have the same name as the video file with a ".srt" extension. I know that the OSD rendering is not implement in a way that linuxstb and jhMikeS would like but I still wanted to post the patch here in case anyone felt like adapting it. (Current OSD only renders on top of the video area, it can be adapted to add other OSD channels ... like display a seek bar, volume control, playback state, etc.) Enjoy, Edit: I've also added a timebar display (when changing the volume) |
This task depends upon
then I discovered the Patches section and found this!
I´ll try it as soon as I discover how to install it
It fails for me (applying the 7487 before this patch).
I patch from the /path_to_source/apps/plugins/mpegplayer directory and when compiling I get this error :
subtitles.c: In function `uint8_buffer_putsxyofs':
subtitles.c:320: error: too few arguments to function
subtitles.c:328: error: too few arguments to function
make[3]: *** [/home/user/rockbox15TEC/testBuid/apps/plugins/mpegplayer/subtitles.o] Error 1
make[2]: *** [mpegplayer] Error 2
make[1]: *** [rocks] Error 2
make: *** [build] Error 2
I'll try to combine it with other patches, excluding the multifont.
Edit: you could try runing the sim in gdb to see where it segfaults (and post a backtrace here ... or fix it yourself :) )
I just tried on my Gigabeat F40 for real and it displayed the 1st sentence of my .srt file. Then at the time of displaying the 2nd, the device froze totally.
I can give you the mini-clip and srt file, I did the srt myself just for testing, it's some crap text :
http://snk5ever.free.fr/taek1.mpg
http://snk5ever.free.fr/taek1.srt
It also restricts overlay rendering to normal video playback (== it's disabled for video thumbnails when setting the start time)
I guess that the next step(s) would be to:
* Make it possible to configure a delay (in case subs and video/audio aren't exactly synced)
* Make it possible to choose the subtitle's position on the video (ie: at the bottom of the screen instead of at the top ...)
* ...
Edit: Updated patch to make sure that the last line was always displayed. (Nice test video btw :) )
Currently when seeking in a file, you will see all subtitles up to that point in the video quickly flash by. This should be very simple to fix.