Page 1 of 1

Vlc and .srt file wich changes milliseconds separator . to ,

Posted: 24 Mar 2012 19:14
by Alexsource
Hey guys, I've just found this out today. Happens on the new build (2.0.1) as well as the 1.1.11 build.
I have a subtitle file, the first line is like this:

Code: Select all

1 00:02:18.470 --> 00:02:20.360 HELLO WORLD!
The rest of the lines changes the millisecond separator from . to ,:

Code: Select all

2 00:03:35,440 --> 00:03:38,270 :D
Result: VLC only plays the first line.

I don't really know what the "standard" separator here is, subtitle workshop seem to be able to recognize both without problems, but, saving a copy from within Subtitle Workshop as .srt (Save As option, yadayada) produces a .srt file that uses ALL commas(,) instead of dots(.):

Code: Select all

1 00:02:18,470 --> 00:02:20,360 HELLO WORLD! 2 00:03:35,440 --> 00:03:38,270 :D
This new file, of course, plays fine in VLC.

SMPlayer also did not seem to have any problems with the original, separator-mixed, file.

This change in sepparators is the subber's fault, or whatever software he/she used to create the .srt.
Not sure if vlc sould be fixed in the first place.

Anyway, I thought this might be usefull information.

Re: Vlc and .srt file wich changes milliseconds separator .

Posted: 24 Mar 2012 19:35
by nkoriyama
I think the proper separator is comma. But the behavior you wrote above seems a bug or something.
The time format used is hours:minutes:seconds,milliseconds.
http://en.wikipedia.org/wiki/SubRip
http://www.matroska.org/technical/specs ... s/srt.html