View Single Post
Old 14th August 2010, 15:09   #1  |  Link
recover
Registered User
 
recover's Avatar
 
Join Date: Dec 2006
Posts: 32
How to batch rip subtitles with SubRip

Hello everyone.

You might think this is a question, but it's actually a guide.

You see, I have started to rip subtitles from DVDs of a TV-series. I want to rip all languages (10 of them), from all episodes (like 160 or so), and I don't want to break my mouse in the process.
Seeing as SubRip had no support for batch ripping subtitles to .srt files, I added it.

I downloaded the SubRip 1.50 Beta 4 source and started tinkering with it. To my horror, I found that the source was very hacky and not really structured at all. I managed to add everything I wanted though.

Here's everything I have added:
  • Batch support.
  • Always save in Unicode.
  • Remember previously used character matrix file (auto-load).
  • Checkbox for auto-running post-OCR correction.
  • Auto-select correct language in post-OCR dialog.
  • Remember the last used save directory.
  • Remember language when changing VOB files.
  • Display current language in main UI.
  • Remember "Show Pict." checkbox.
  • Checkboxes for auto-resetting time and text file on start.

Visit my site to download: http://stefansundin.com/stuff/subrip/

Simply download SubRip.exe and overwrite an already installed version.
The modified source code is also available on the site. There are no diff, sorry!

Batch example:
Code:
SubRip D:\VIDEO_TS\VTS_01_0.IFO eng 2
This will save the 2:nd subtitle stream to the file eng.srt.
And yes, you should specify the IFO file.
Before you run this you should:
  • configure a character matrix file to auto-load.
  • configure the post-OCR dialog to auto-run.
If an unknown character comes up, the input dialog will come up as usual.
The character matrix file will be automatically saved on exit.
Note: This batch mode replaces the mode which rips to BMPs.

Hope ya like it!

Let me know if you have any questions.

Made by Stefan Sundin.

P.S. Don't tell me anyone have done this already!
recover is offline   Reply With Quote