NeonMan
28th June 2008, 16:43
Hi!
I've needed a linux tool to permanently set a delay on some srt subtitle files, not founding the program I decided to make my own tool. It has been coded in two days so it is not finished an you must expect errors.
Here is the release log:
SrtFix, (C) NeonMan 2008
Released under the GNU GPL license, see gnu.org for details
SrtFix is a little pascal program to correct the timing of subrip files by
adding or substracting an integer amount of seconds (or
miliseconds/minutes/hours).
this program compiles and runs on linux 2.6 32/64 but should
compile on any plataform supported by FreePascal
Release notes:
Output file parameter is ignored at present and the result is written to stdout but the parameter IS needed, just put some char on it.
Command line parameters
./SrtFix (Input File) (Output File) ('-' or '+') (Time) (m,S,M,H)
Input and output file parameters are self explanatory (see log*).
You should use + to ADD a DELAY and - to substract
The last parameter is the unit of the time:
m -> milliseconds
S -> seconds
M -> minutes
H -> hours
To compile just run 'fpc SrtFix.pas' after installing the FreePascal compiler, you can also open the file on the IDE an compile from it.
Get the source and linux 64 binaries -> http://neonman.t35.com/SrtFix.zip
Mirror on rapidshare -> http://rapidshare.de/files/39857122/SrtFix.zip.html
If someone compiles this on windows/linux 32, please post the files as I can't (or don't know how) compile on this plataforms.
I've needed a linux tool to permanently set a delay on some srt subtitle files, not founding the program I decided to make my own tool. It has been coded in two days so it is not finished an you must expect errors.
Here is the release log:
SrtFix, (C) NeonMan 2008
Released under the GNU GPL license, see gnu.org for details
SrtFix is a little pascal program to correct the timing of subrip files by
adding or substracting an integer amount of seconds (or
miliseconds/minutes/hours).
this program compiles and runs on linux 2.6 32/64 but should
compile on any plataform supported by FreePascal
Release notes:
Output file parameter is ignored at present and the result is written to stdout but the parameter IS needed, just put some char on it.
Command line parameters
./SrtFix (Input File) (Output File) ('-' or '+') (Time) (m,S,M,H)
Input and output file parameters are self explanatory (see log*).
You should use + to ADD a DELAY and - to substract
The last parameter is the unit of the time:
m -> milliseconds
S -> seconds
M -> minutes
H -> hours
To compile just run 'fpc SrtFix.pas' after installing the FreePascal compiler, you can also open the file on the IDE an compile from it.
Get the source and linux 64 binaries -> http://neonman.t35.com/SrtFix.zip
Mirror on rapidshare -> http://rapidshare.de/files/39857122/SrtFix.zip.html
If someone compiles this on windows/linux 32, please post the files as I can't (or don't know how) compile on this plataforms.