VideoHelp.com Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date: Jul 2007
    Location: Sweden
    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
    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
    @manono: thanx for well-informing me :-)

    =====
    Quote Quote  

  5. Member
    Join Date: Jul 2007
    Location: Sweden
    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

  1. Player with the command line.
    By Belini in forum Programming
    Replies: 2
    Last Post: 29th Mar 2012, 06:29
  2. avidemux2 command line help
    By Choller in forum Editing
    Replies: 0
    Last Post: 31st Dec 2009, 05:17
  3. Command-line command for fixing AVI?
    By timur in forum ffmpegX general discussion
    Replies: 1
    Last Post: 23rd Sep 2009, 02:23
  4. best way to record tv from command line
    By mierdatuti in forum Linux
    Replies: 1
    Last Post: 17th Jun 2009, 02:08
  5. command line
    By exekutive in forum ffmpegX general discussion
    Replies: 22
    Last Post: 1st Jun 2008, 23:44
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools