wrong decimal separator in .srt files

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Downgrrl
New Cone
New Cone
Posts: 8
Joined: 09 Apr 2009 11:37

wrong decimal separator in .srt files

Postby Downgrrl » 09 Apr 2009 12:29

The correct decimal separator in srt files is the comma. 00:00:00,000 is the correct time stamp format. VLC Player, among others, requires this. However, some players and editors apparently do not like commas and substitute decimal points, as in 00:00:00.000 and VLC will not recognise these. (Bsplayer subtitle editor is one that produces incorrect srt files)

Is there any way of convincing VLC Player to accept the 00:00:00.000 format? either a switch or a plugin? It is an easy, but mind numbing, job in windows text editor to change all the 0. 1. etc to 0, 1, etc.

Or does anyone know a freeware subtitle editor/player around as good as Bsplayer's which allows you to edit and resynch subtitle files while playing/scanning the movie. One that then produces the correct srt format. Usually it is a case of moving the whole lot backwards or forwards as in audio sync problems. Any language corrections I tent to use a text editor for.

Why do I not just use Bsplayer, which recognises both the "." and the "," ? well it is too fat and takes too long to start to use as a default player. Plus there are many other players that, correctly, will also not eat "."s. Yes, I have also asked Bsplayer why they use the wrong format, up to now they have not rewritten it.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: wrong decimal separator in .srt files

Postby Jean-Baptiste Kempf » 09 Apr 2009 13:08

Fill a bug request.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Downgrrl
New Cone
New Cone
Posts: 8
Joined: 09 Apr 2009 11:37

Re: wrong decimal separator in .srt files

Postby Downgrrl » 10 Apr 2009 00:13

I did some more research and reported the bug to Bsplayer. It seems they currently use the default system decimal deliniater and so if I change that to a comma it works. I have hopes they will fix the bug though. The reason few people have noticed it becomes clear too, most VLC users are probably European and would use the comma on the system. I am English living in Germany and use both.

I do not see how reporting a bug here would help, as VLC behaves according to spec. I could ask, I suppose, that VLC is changed so as to accept decimal points but I really do not think they should, unless the file format spec is officially changed too.

Plus I found a freebie called SubSync 0.2.15 which is actually a better subtitle editor than Bsplayer, and seems so far to always use commas for the timestamp. The nice thing is it accepts incorrect srt files as input, and actually changes the "."s back to ","s

I also found Powergrep, with which I should be able to use regular expressions "([0-9]\.[0-9)" to both scan all *.srt in all my discs and change all 00.000 to 00,000 at the same time, once I set it up anyway.

Thanks for the help. I really like VLC.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: wrong decimal separator in .srt files

Postby Jean-Baptiste Kempf » 10 Apr 2009 00:41

I do not see how reporting a bug here would help, as VLC behaves according to spec. I could ask, I suppose, that VLC is changed so as to accept decimal points but I really do not think they should, unless the file format spec is officially changed too.

Thanks for the help. I really like VLC.
this isn't relevant, we sould modify VLC to accept those broken files, since there are many broken files...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Downgrrl
New Cone
New Cone
Posts: 8
Joined: 09 Apr 2009 11:37

Re: wrong decimal separator in .srt files

Postby Downgrrl » 10 Apr 2009 00:56

Fair enough. How do I ask for the change, In Feature Requests?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: wrong decimal separator in .srt files

Postby Jean-Baptiste Kempf » 10 Apr 2009 08:12

trac.videolan.org/vlc
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

fenrir
Blank Cone
Blank Cone
Posts: 45
Joined: 09 Mar 2004 21:45

Re: wrong decimal separator in .srt files

Postby fenrir » 13 Apr 2009 17:05

I have added support for such buggy file by [0ea77dfd682d73ec7e1b0c089dc52d1de8e9e690] (vlc master).
It would be cool if you could post a sample somewhere to validate the fix :)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests