VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Sep 2008
    Location
    Greece
    Search Comp PM
    Hi, i am trying to convert a DVD movie to a MP4 file. I've done this process several times in the past but i can't remember and can't find with searching how to burn the extracted idx/sub to the MP4 output file using AviSynth.

    The command for .srt .ass etc. is

    TextSub("subs.srt")

    And it works great from a test i did and running the AviSynth script with Media Player Classic.

    But for idx/sub i can't get it to work. The TextSub command produces an error and i tried also this who i believe is the correct command

    VobSub("VTS_01_0.idx")

    The video plays correctly but the subs don't show. (i tried the avs script with Media Player Classic) The strange thing is that it doesn't give me an error it justs doesn't show the subtitles.

    I've tried different things but nothing seems to work. I trying for hours and can't find a solution.

    Here is the procedure i use to rip the dvd.

    1) AnyDVD with DVDShrink to rip the movie. I use re-author and select only the main movie.

    2) DGIndex to create the d2v+ac3 files.

    3) The VobSubber option in MeGUI to extract the subs from the DVD and create the idx/sub. Note: I chose the VIDEO_TS.IFO file

    4) Create the AVISynth script with all the options and i stuck here because subtitles don't work.

    Here is the script

    Code:
    import("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\functions\AudioFunctions.avs")
    import("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\functions\VideoFunctions.avs")
    loadplugin("C:\Program Files\Winnydows\XviD4PSP5\apps\DGMPGDec\DGDecode.dll")
    loadplugin("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\NicAudio.dll")
    loadplugin("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\ColorMatrix.dll")
    loadplugin("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\soxfilter.dll")
    
    
    video = MPEG2Source("D:\ASSASSINATION_OF_JESSE_JAMES\VIDEO_TS\ASSASSINATION_OF_JESSE_JAMES.index\ASSASSINATION_OF_JESSE_JAMES_T01.d2v",cpu=0,info=3)
    audio = NicAC3Source("D:\ASSASSINATION_OF_JESSE_JAMES\VIDEO_TS\ASSASSINATION_OF_JESSE_JAMES.index\ASSASSINATION_OF_JESSE_JAMES_T01 T80 3_2ch 384Kbps DELAY -8ms.ac3")
    AudioDub(video, audio)
    
    DelayAudio(-0.008)
    AutoYV12()
    ColorMatrix(hints=true)
    crop( 0, 74, 0, -74)
    VobSub("D:\ASSASSINATION_OF_JESSE_JAMES\VIDEO_TS\VTS_01_0.idx")
    From the above script you get a hint that i am trying to convert the dvd for my PSP. Xvid4PSP doesn't have a problem to convert the movie this way with the exception of the subs of course.

    And one last thing, i did another test and the idx/sub works if i put it together with a random .avi .mkv .mp4 whatever file.
    Quote Quote  
  2. I think you have to specify the ".sub" not the ".idx"

    VobSub("PATH\VTS_01_0.sub")
    Quote Quote  
  3. Member
    Join Date
    Sep 2008
    Location
    Greece
    Search Comp PM
    Originally Posted by poisondeathray
    I think you have to specify the ".sub" not the ".idx"

    VobSub("PATH\VTS_01_0.sub")
    I tried that and unfortunately didn't help.
    Quote Quote  
  4. Are you sure you have the correct paths specified?

    If your idx/sub doesn't work in playback in mpc, something is wrong. Do you see the little green arrow in the icon taskbar? right click it and toggle the options (i.e. turn it on, language options)

    If you don't see it try reinstalling directvobsub (or upgrading to the new version)

    Are you sure the subs were ripped correctly?

    2 other options:

    1) avidemux has idx/sub subtitler that works 100% (i just tried it recently, but you have to be able to "see" the subs in mpc - which you cannot - that suggests something else is wrong on your system)

    2) convert to .srt
    Quote Quote  
  5. Note: I chose the VIDEO_TS.IFO file
    Eh? Are there any subs in there? You can open the IDX in Notepad and look for timestamps. Or open the IDX/SUB in SubtitleCreator or SubResynch and read the actual subs (if any). Ordinarily you'd choose the VTS_01_0.IFO, which seems to be the case based on your script.

    If that's not it, then:

    Have you tried loading the VSFilter.dll in the script? Do you even have it in the AviSynth Plugins directory? Is that the correct path? Have you tried using the full path:

    VobSub("C:\Path\To\VTS_01_0.idx")

    You can point to either the IDX or to the SUB. I use IDX always with no problem.
    Quote Quote  
  6. Member
    Join Date
    Sep 2008
    Location
    Greece
    Search Comp PM
    Originally Posted by poisondeathray
    Are you sure you have the correct paths specified?

    If your idx/sub doesn't work in playback in mpc, something is wrong. Do you see the little green arrow in the icon taskbar? right click it and toggle the options (i.e. turn it on, language options)

    If you don't see it try reinstalling directvobsub (or upgrading to the new version)

    Are you sure the subs were ripped correctly?

    2 other options:

    1) avidemux has idx/sub subtitler that works 100% (i just tried it recently, but you have to be able to "see" the subs in mpc - which you cannot - that suggests something else is wrong on your system)

    2) convert to .srt
    Yes i can't see the green arrow in MPC while playing the script. I tried reinstalling the latest version of directvobsub and didn't work. I tried also this command to AVISynth script

    Code:
    loadplugin("C:\Program Files\DirectVobSub\VSFilter.dll")
    And didn't help either.

    I think the subs were ripped correctly based in these things.

    I can see the timestamps in notepad if i open the idx file.

    If i manually load the subs in VLC and/or KMPlayer they work perfectly.

    Also any other videos with softsubs (.ass .srt etc.) they work perfectly in MPC and i can see the green arrow.

    And another thing that i think it's important.

    If i put a random video and also rename the idx/sub to same name of that video, i can see the green arrow in MPC and the subs work perfectly.

    So from the above points i think we come to these two conclusions

    a) Something is wrong with the AVISynth script.

    b) Maybe Vobsub isn't correctly installed in my system.

    As for converting idx/sub to .srt, yes that would work for sure but i want to avoid this if possible. As i said in my first post i never had problem burning idx/sub directly with AVISynth in the past, but something strange happening this time.


    Originally Posted by manono
    Note: I chose the VIDEO_TS.IFO file
    Eh? Are there any subs in there? You can open the IDX in Notepad and look for timestamps. Or open the IDX/SUB in SubtitleCreator or SubResynch and read the actual subs (if any). Ordinarily you'd choose the VTS_01_0.IFO, which seems to be the case based on your script.

    If that's not it, then:

    Have you tried loading the VSFilter.dll in the script? Do you even have it in the AviSynth Plugins directory? Is that the correct path? Have you tried using the full path:

    VobSub("C:\Path\To\VTS_01_0.idx")

    You can point to either the IDX or to the SUB. I use IDX always with no problem.
    See above, i think the subs were ripped correctly. But yes you are absolutely right about VIDEO_TS.IFO, the correct file is VTS_01_0.IFO, but MeGUI is smart enough to auto select the correct IFO file. However i tried manually to select the VTS_01_0.IFO and didn't change anything.

    Yes VSFilter is in my AVISynth plugins directory and i tried to load it in AVISynth script but didn't help either.

    I tried several other things myself and i can't load the idx/sub through AVISynth no matter what.

    I think i will go nuts
    Quote Quote  
  7. Wow that is weird.

    Can you test the working renamed file (renamed idx/sub + matching renamed random video) and create an .avs script for that specifying vobsub(), and test that .avs in MPC ?

    If playing the renamed video directly shows subs correctly - but the .avs doesn't - that suggests the problem is with your vsfilter install or avisynth. You might have to uninstall/reinstall and register it (and avisynth). To register it, follow Midzuki's instructions here https://forum.videohelp.com/topic348985.html#1835387
    Quote Quote  
  8. Member
    Join Date
    Sep 2008
    Location
    Greece
    Search Comp PM
    Originally Posted by poisondeathray
    Wow that is weird.

    Can you test the working renamed file (renamed idx/sub + matching renamed random video) and create an .avs script for that specifying vobsub(), and test that .avs in MPC ?

    If playing the renamed video directly shows subs correctly - but the .avs doesn't - that suggests the problem is with your vsfilter install or avisynth. You might have to uninstall/reinstall and register it (and avisynth). To register it, follow Midzuki's instructions here https://forum.videohelp.com/topic348985.html#1835387
    I test it, with the AVS script it doesn't show me an error but as usual i can't see the subs and the green arrow. Without the avs script subs working flawlessly. I tried the Midzuki's instructions but didn't help either.

    I think i will uninstall everything, and install again from scratch.

    Thanks for the help, btw.

    Edit - I uninstall everything and reinstall them but i had exactly the same results as before. However two interesting points

    a) When i load the avs script the green arrow pops up for a second in the taskbar and then disappears. As always the subs work correctly without the avs script.

    b) I notice in the system32 there is also the file Vobsub.dll besides the VSFilter.dll so i tried to also register that with the same method i did with VSFilter but when i type

    regsvr32 vobsub.dll

    in the cmd i get this error message

    "vobsub.dll was loaded, but the dllregisterserver entry point was not found. This file can not be registered"

    From the looks of it i think i will type this command to the cmd

    "format c: /fs:ntfs"
    Quote Quote  
  9. Maybe there's something screwy about the way MeGUI creates the subs. Have you tried creating them using VobSub Configure? Here's a guide:

    http://www.doom9.org/dvobsub.htm
    Quote Quote  
  10. Member
    Join Date
    Sep 2008
    Location
    Greece
    Search Comp PM
    Originally Posted by manono
    Maybe there's something screwy about the way MeGUI creates the subs. Have you tried creating them using VobSub Configure? Here's a guide:

    http://www.doom9.org/dvobsub.htm
    Dude, you are right! I tried extracting the subs with the VobSub Configure and they work like a charm in the AVS Script! I guess MeGUI did something strange in the subs and they aren't "compatible" with AVISynth. It's quite strange though that i can load the subs i extracted with MeGUI with VLC and KMPlayer and also the test i did with the random video i mention above.

    Well, i guess that doesn't matter anymore. Thanks for the help!
    Quote Quote  
  11. You're welcome and I'm glad it worked, but it was mostly a lucky guess. Just as poisondeathray, I was pretty much baffled. I've never used MeGUI for anything, but that's about all you did differently from what I usually do regarding subs, so I took a shot in the dark.
    Quote Quote  



Similar Threads

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