Hi all,
I used contrib/subrip to extract subtitles and it works perfectly,
except bs player won't read created .srt files. Investigated a little
more, I found problem is in format of hours. I'm not expert of srt
format, but (although all other players I tried play subtitle fine) bs
player can't cope with hours with two digits (bs player shows message
box 'list index out of bounds'). For example:
00:01:10,100 --> 00:01:11,100
should be
0:01:10,100 --> 0:01:11,100
and
01:01:10,100 --> 01:01:11,100
should be
1:01:10,100 --> 1:01:11,100
for subtitle to work in bs player

Since, bs player is only player making problems, i changed srttool.c
to create slightly different format of .srt subtitles to help me
create 'all player reads it' subtitle. In attachment is really, really
small patch, if anyone is interested

Greetings, Branko Kokanovic
--- /home/baki/projekti/srttool.c	2003-12-08 09:28:02.000000000 +0000
+++ /usr/local/transcode-1.0.2/contrib/subrip/srttool.c	2007-01-18 15:15:20.000000000 +0000
@@ -83,7 +83,7 @@
 void write_srt_time(const srt_time_t start, const srt_time_t stop)
 {
 
-  fprintf(stdout,"%02u:%02u:%02u,%.3u --> %02u:%02u:%02u,%.3u\n",
+  fprintf(stdout,"%01u:%02u:%02u,%.3u --> %02u:%02u:%02u,%.3u\n",
 	  start.hour, start.min, start.sec, start.msec,
 	  stop.hour, stop.min, stop.sec, stop.msec);
 }

Reply via email to