VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Jul 2007
    Location
    Sweden
    Search Comp PM
    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?
    Quote Quote  
  2. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    Any Ideas what's wrong here?
    Only one guess:

    VobSub("d:\temp\video\VTS_01_0.idx")
    Shouldn't that be:

    VobSub("d:\temp\video\VTS_01_0.sub") ?????

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Quote Quote  
  3. Hi-
    Shouldn't that be:

    VobSub("d:\temp\video\VTS_01_0.sub") ?????
    No, that's not it, as you can call the subs using the IDX.

    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.
    Quote Quote  
  4. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    @manono: thanx for well-informing me :-)

    =====
    Quote Quote  
  5. Member
    Join Date
    Jul 2007
    Location
    Sweden
    Search Comp PM
    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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!