Log in

View Full Version : Batch extract idx+sub from ifo/vob?


Chetwood
7th January 2007, 16:57
Since I had a lot of trouble with extracting the proper subs from my original DVDs I batch extracted the streams I'm interested in with DVD Decrypter to a seperate folder for each ep's subs.

Now I could use the VobSub filter plugin for Virtualdubmod or VSrip manually to extract the subtitles to idx+sub but this is tedious work. Is there any tool that would let me do this from a batch file?

Also how come the size of the idx differs when ripping the very same ifo/vob with VobSub plugin or vsrip? Both files show "# VobSub index file, v7" so they should be the same?!

manusse
7th January 2007, 17:03
You can also use VobSub Configure the same ways as VSRip.

Cheers
Manusse

Chetwood
8th January 2007, 08:13
I'm not sure what you mean. As far as I understand it both are the same tools and output to the same format, Vobsub index file, v7". So how come when ripping the same 2 streams from the same DVD the idx files (but no the subs) differ in size?

manusse
8th January 2007, 19:22
Hi Chetwood,

Sorry for my fast reply of yesterday. It was just to tell you that you can also use VobSub Configure to rip the subs.

Anyway, you ask why the size of the idx file differ. First you can have a look at the idx files because they are text files. The idx files represent the language and the absolute position of the beginning of each subtitle in the sub file.

The difference you have noticed comes from the fact that VSRip and VobSub don't extract the subtitles in the same order. VSrip stores the subs the following way:
Lang1Sub1, Lang1Sub2, Lang1Sub3, ...

Whereas VobSub stores them interlaced:
Lang1Sub1, Lang2Sub1, Lang3Sub1, ...

However they are equivalent. You can check them with SubtitleCreator if you want.

Cheers
Manusse

Chetwood
9th January 2007, 09:48
Thanks for explaining the differences. Still I'm not sure how

you can also use VobSub Configure to rip the subs.

can help me extracting lots of subs in a row.

I mean, I've checked my Vobsub dir and clicked on "VobSub Configure.lnk" which popped up the same window I get when I select Video / Filters / Add filter / Vobsub in Virtualdub. However, this window does not allow for any batch extraction but only for tedious manual extraction, especially as I need to extract subs from various PGCs.

What am I overlooking?

manusse
9th January 2007, 20:51
As I've never used the VobSub filter plugin for Virtualdubmod, I was just pointing it out as it may be different from what you were using.
However, you can see in this post (http://forum.doom9.org/showpost.php?p=906894&postcount=109) that VobSub is scriptable so maybe it can help you.

Cheers
Manusse

Chetwood
10th January 2007, 09:34
D'oh, sometimes reading the docs actually helps. Never occured to me to check for this folder as I assumed only a simple .vdf would have been nstalled to the VirtualDub folder when setting it up from AutoGK. Thanks.

Chetwood
17th January 2007, 11:05
I've selected english/german (streams 0 and 4) from within VSrip, still the resulting idx shows streams 0-4 whereas streams 1-3 only come with a small info "header" but no timestamp and fileposition info.

So I deleted those headers from the idx and set the stream header for the German stream from 4 to 1 like this

# Deutsch
id: de, index: 1

Now when I open this idx in Subrip the subpics are not shown anymore which indicates that there's also some stream info in the sub file and not only the idx. Is this correct and if so how can I change it?

Cause only when I reset it to 4 they can be converted to srt but it still looks stupid to have stream 0 and 4 instead of stream 0 and 1.

manusse
17th January 2007, 20:40
which indicates that there's also some stream info in the sub file and not only the idx
I confirm that the stream number is also encoded in the sub file. Maybe you could change it using SubResync. First modify your idx file with notepad (as you've already done). Then open your file with SubResyncand and save it. It could work.

If it doesn't work, you can do it using SubtitleCreator. Open the first stream and save it (it will use id 0). Then open the second one and save it to the same idx file, it will be added at the end of the first one with id 1. You can even do it using the Command Line Interface of SC.

Cheers
Manusse