View Full Version : srt: 23.976<->25.000 at the command-line?
Matthew
11th September 2005, 07:54
I want to speedup/slowdown srt subs at the command-line but can't find an app, as they all seem to be GUI only :\
Subtitle Workshop's cli permits specification of input/output fps, and while it produces the output file, the timing is unchanged.
As the srt will then be converted to MicroDVD format (for input to DVD Subtitle Encoder), a program that adjusts its timing should also be okay.
Any suggestions?
Thanks :)
ukendt
11th September 2005, 14:00
Why not Subtitle Workshop?
You will be able to convert and edit, why do you wish to use a command line prog?
Matthew
11th September 2005, 23:58
It's part of an end-to-end batch process, so cli is a must. If I can't find a cli app then I might be able to use AutoIt, or write something to do it myself, but I'd very much like to avoid that.
Matthew
16th September 2005, 08:27
Update: I am sure no one cares, but I coded my own simple app to take an srt, adjust the times if required and output a txt in DVDSupEncode's input format.
Now I can do srt2sup using cli, yay :)
E-Male
16th September 2005, 08:55
was just about to offer modding my srt code, but seems you helped yourself
Matthew
16th September 2005, 11:23
That was (well, would have been) a nice offer :) Although in a way it's always nice to do it oneself (especially since it was easier than I though it would be), because then one can make it exactly as one pleases - technical skill and brain power permitting of course.
I just hope my app is never fed an even slight "invalid" srt, I made no allowances at all for that :)
E-Male
16th September 2005, 14:40
for parsers my experience says: more error tolerance = much more work
but subs in general are good to train some programming
Matthew
16th September 2005, 23:38
heh, my programming skills are pretty much non-existant, just a bit of playing with strings. I'll think I'll add a check for compliance though, and just exit if the srt is invalid. It's better than the app crashing.
chros
25th September 2007, 21:31
Why not Subtitle Workshop?
You will be able to convert and edit, why do you wish to use a command line prog?
Subtitle Workshop has command-line switches !!!
See the manual!
eg: I've converted a bunch of files from ass to srt with this batch script:
FOR %%i IN (*.ass) DO "c:\Program Files\URUSoft\Subtitle Workshop\SubtitleWorkshop.exe" "/CONVERT(%%i/%%i.new.srt/SubRip/23,976/23,976)"
so the needed batch script would be (23,976 -> 25,000):
FOR %%i IN (*.srt) DO "c:\Program Files\URUSoft\Subtitle Workshop\SubtitleWorkshop.exe" "/CONVERT(%%i/%%i.new.srt/SubRip/23,976/25,000)"
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.