View Full Version : Vobsub scripting problem with episodic discs
Chetwood
18th February 2008, 13:45
I've been extracting subs from episodic discs already ripped to my hdd and I'm looking for a way to automate this as much as possible. The Vobsub doc subdiretory comes with a 'vobsub-auto.txt' file which explains how to do it but unfortunately the method described is not feasible for scripting.
The thing is that the vobsub.dll is called with a parameter file which can only contain ripping commands for one episode. Further commands are completely ignored.
So in order to rip 24 eps of a series I would have to call the vobsub.dll as often with as many parameter files which would take more time as ripping the eps manually.
So is there another way to script Vobsub or any other tool to rip several eps in a row? Thx!
FrozenDog
18th February 2008, 20:36
Howdy Chetwood, I've been using Winbatch to automate a lot of steps in the backup process. Here is a script I use on my StarTrek Voyager series for ripping subtitles with VobSub. There are typically four episodes in one VTS. If your files are organized in the same fashion then you should be able to use this script as is. If not, let me know and I can help you tweak it to suit your needs. Of course, you'll need to install Winbatch (http://www.winbatch.com/) first. Open the *.wbt file in Winbatch Studio to edit. Double-click the *.wbt file or a shortcut to it to run.
Winbatch script - vobsub_episodes.rar 3.96MB (http://www.megaupload.com/?d=K6PVBQ6C) (includes bitmap image w/instructions)
same files, just smaller package
Chetwood
20th February 2008, 09:47
Thanks for the batch, I've been working on something similar with AutoIt since my posting. Problem is that some discs use seperate VTS for each ep instead of one VTS with several PGCs so the batch has to incoporate that option as well which is a bit tricky.
I'm trying to code it in such a way that there's minimal manual work. In case you're interested I'm gonna send you a beta once I've made progress. And FYI, the bmp of 4.9 MB you sent can be converted to a png of 48 KB with no quality loss, Microsoft sux ;)
setarip_old
20th February 2008, 17:41
Hi!
Have you looked at the options available using DVDSubEdit?:
File >> Open .VOB(s)
File >> Open Full Domain
FrozenDog
20th February 2008, 21:03
In case you're interested I'm gonna send you a beta once I've made progress.
Sure, I'll take a look.
And FYI, the bmp of 4.9 MB you sent can be converted to a png of 48 KB with no quality loss.
Thanks for the tip, will do next time.
FrozenDog
20th February 2008, 23:42
@Chetwood,
I made a couple variations to my original script to process multiple VTS's. No changes were made to the paramfile.txt or vobsub.bat. I don't have an episodic disc with that structure so I just copied a single vob and renamed it. Assuming that each VTS will have one episode and only one PGC, this script will process every VTS in a single folder by checking for the existence of VTS_0?_0.IFO first, then running VobSub on that IFO/VOB up to 99.
Chetwood
23rd February 2008, 16:00
@setarip_old
I've checked out DVDSubedit but haven't found any way to batch extract subs to idx/sub. Am I missing something.
@FrozenDog
For testing purposes you can create you own DVD with several VTSs by reauthoring an episodic DVD with DVD Shrink. To keep it small and the process fast right-click on each title in the left window pane and reduce each ep's runtime to 1:00 min.
DVDD won't recogbize it as a video disc though, so you should use it to create an mds file for it first.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.