Log in

View Full Version : Round off timecodes


bagge1
25th December 2007, 03:07
For Scenarist ACA to accept my .srt subtitles, I need to round off the time codes to a tenth of a second instead of a thousand of a second.

Eg:

1
00:00:45,421 --> 00:00:48,338
<i>Efter att erövrat större
delen av den arabiska halvön-</i>

to

1
00:00:45,400 --> 00:00:48,300
<i>Efter att erövrat större
delen av den arabiska halvön-</i>

Is there any smart way to automize this process? I've been looking for such a function in both Subtitle Workshop and in Subtitle Creator, without luck.

/Thanks in advance

Taktaal
25th December 2007, 16:27
You could do it with any program that supports regular expressions, like sed or EditPlus.

Something like replace
^(..:..:..,.).. --> (..:..:..,.)..$
with
\100 --> \200

bagge1
26th December 2007, 02:32
You could do it with any program that supports regular expressions, like sed or EditPlus.

Something like replace
^(..:..:..,.).. --> (..:..:..,.)..$
with
\100 --> \200

Thank you!

It works!