Welcome Guest.   Make a donation to an author on the site July 26, 2014, 10:12:26 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2013! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: SrtRetime 1.2.0.0  (Read 1220 times)
MilesAhead
Member
**
Posts: 4,684



View Profile WWW Give some DonationCredits to this forum member
« on: May 10, 2012, 10:04:38 PM »

SrtRetime 1.0.0.0 Usage: SrtRetime /?  (displays Usage Dialog)

Usage: SrtRetime [ subfile.srt timingfile.srt ]

displays 2 File Open dialogs asking you for the 2 srt files(if not already specified on the command line.)  The timing lines (those with the " --> " in the line) will be read from the second file and inserted into the first.  The modified first file will be written out to a file with the original name, but _Retimed appended.  Example:
SrtRetime one.srt two.srt

output file is: one_retimed.srt.

If the 2 srt files do not have the same number of lines, or the timing lines do not match up, the program quits with an error msg.

You would use the program when you have 2 srt files for the same film. The first has good subs, but the timings are not right. The second has good timings, but the subs may be in another language or just not as good a translation(such as software translated subs.)

I implemented this using AutoIt3 3.3.8.0. It's meant to be used with English subs. Written as answer to a request on a video board subtitle subforum.  So it's just a hack. But it may come in handy occasionally. I know I'll find a use for it. smiley

Just search this page for SrtRetime:
http://www.favessoft.com/downloads.html

edit: the zip includes the AutoIt3 source code in case you want to spiff it up some. smiley
« Last Edit: May 11, 2012, 11:12:22 PM by MilesAhead » Logged

MilesAhead
Member
**
Posts: 4,684



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: May 11, 2012, 03:59:46 PM »

SrtRetime 1.1.0.0 Updated to count the number of timing lines in each SRT file to verify they have the same number of subs. Now it does not assume the timing lines will be on the same line numbers in each file. Individual subs may vary in the number of lines of text. Basically, it loops through the first file until it finds the next timing line, then uses an inner loop to get to the corresponding timing line in the second file.

As always I cannot guarantee what happens if the text files are Unicode. I wrote the app in AutoIt3 3.3.8.0 which claims to be "unicode aware." If you have non-English Windows all I can say is try it and see if it works for you.

Edit: there was a mixup in uploaded files.  Now if you run with /? command line switch, the usage dialog should show the file version.  It should show as: SrtRetime 1.1.0.0 copyright yadda yadda .. if you have the latest update. smiley
« Last Edit: May 11, 2012, 05:34:15 PM by MilesAhead » Logged

MilesAhead
Member
**
Posts: 4,684



View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: May 11, 2012, 11:14:36 PM »

SrtRetime 1.2.0.0 Updated the timing line counting routine. The 2nd file need not have any subs. It may consist totally of timing lines. If having problems due to the 2nd SRT file being in another language a work-around may be to use a timing line extractor that outputs to ANSI text.
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.026s | Server load: 0.09 ]