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

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Alexsource
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 22 Nov 2006 15:45

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

Postby Alexsource » 24 Mar 2012 19:14

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.

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

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

Postby nkoriyama » 24 Mar 2012 19:35

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
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 63 guests