Hi, I'm currently writing a small program to simplify the steps when converting a DVD to WMV. The program will simply launch DVDDecrypter, DGIndex and VobSub with various command line parameters and finally use AVISynth as the source when doing the encoding.
Now to my problem. I've got the scripting of DVDDecrypter and DGIndex to work perfectly but I do have some problems with VobSub. I've managed to create the .idx and .sub files with VobSub but when I try to get them into the video stream the subtitles does not show up unless I launch the configure dialog for VobSub and manually select the subtitle file I want to use. It also works if I use the command SHOW in the parameter list when launching VobSub and manually presses the OK button. As I want everything to be done automatically I don't want to force the user to press the OK button. Am I doing something wrong when using VobSub or is it just not possible to get the subtitles to show up without manually launching the configure dialog first?
The AVISynth script I use looks like this:
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\vsfilter.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\AutoCrop.dll")
video = mpeg2source("d:\temp\video\VTS_01_1.d2v.d2v")
audio = DirectShowSource("d:\temp\video\VTS_01_1.d2v T01 3_2ch 448Kbps DELAY -8ms.ac3")
video = AutoCrop(video,0,4,2,0,0,0,0,30,50,1000,-1,0)
video = Lanczos4Resize(video,720,304)
AudioDub(video,audio)
VobSub("d:\temp\video\VTS_01_0.idx")
Any Ideas what's wrong here?
+ Reply to Thread
Results 1 to 5 of 5
-
-
Any Ideas what's wrong here?
VobSub("d:\temp\video\VTS_01_0.idx")
VobSub("d:\temp\video\VTS_01_0.sub") ?????
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
Hi-
I'm not a programmer, but AutoGK does it using command lines. All the user has to do is choose the sub language, and whether to keep the subs external or burn them into the video, and AutoGK does the rest. If the user runs the Preview, and then changes languages or subtitle streams (like if looking for Forced Subs, maybe) and runs the Preview again, the Configure has to run again, but behind the scenes, with no intervention by the user. It only configures one sub stream at a time. So, you might make an encode or 2 using AutoGK and study how it does it. -
Thanks both for answering.
@manono: The procedure you describe with AutoGK(configure has to be run again after a preview) is the same problem I have. The subtitles will be added to the final encoding if the vob configure has been run before the start of the encoding. If however I stop the encoding and try to start it again the subtitles will not be included.
Regarding intervention from the user I guess it could be solved by finding the window for the OK button and posting a message to it to simulate the button press. Ugly I know....
Thanks again.
Similar Threads
-
Player with the command line.
By Belini in forum ProgrammingReplies: 2Last Post: 29th Mar 2012, 06:29 -
avidemux2 command line help
By Choller in forum EditingReplies: 0Last Post: 31st Dec 2009, 05:17 -
Command-line command for fixing AVI?
By timur in forum ffmpegX general discussionReplies: 1Last Post: 23rd Sep 2009, 02:23 -
best way to record tv from command line
By mierdatuti in forum LinuxReplies: 1Last Post: 17th Jun 2009, 02:08 -
command line
By exekutive in forum ffmpegX general discussionReplies: 22Last Post: 1st Jun 2008, 23:44