VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Aug 2002
    Location
    Cardiff, Wales
    Search Comp PM
    Hi all,

    i'm new to the ripping business and this is the first dvd i've tried to rip, so no wonder i've got problems already. i tried following this guide:
    https://www.videohelp.com/forum/viewtopic.php?t=221896, which was excellent, even though i've gone wrong somewhere

    i ripped my dvd to my hard drive using dvd decrypter, then opened the VOB files in DVD2AVI as instructed by the guide. i checked my settings were correct and saved the file as "DVD2AVI.d2v", which took about 5 minutes. I then proceeded into notepad, to create the file which would "play" my video. I entered the following: MPEG2Source("dvd2avi.d2v")

    I was then told to drag the .avs file onto WMP to check playback of the video, so I thought this meant i had to add a ".avs" extension to my ".d2v" file, so I did so. the icon changed to that of avisynth. however, when i tried to play the file, wmp showed me this error message:

    AVIsynth open error:
    Script error: Syntax error
    (C:\…\DVD2AVI.d2v.avs, line 3, column 5)

    the same happened with virtual dub.

    does ne1 no wot i'm doing wrong? i've been back over the guide and i just can't seem to figure it out

    ne help/recommendations would be greatly appreciated, thanks all.
    Quote Quote  
  2. Member adam's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Search Comp PM
    The .AVS file is the text file where you typed the mpegsource command.

    You should end up with two small files. The untouched .d2v, and the text file you wrote, saved with an .AVS file extension. When you load the AVS file into something like Virtualdub it points it to the d2v file, which in turns points to the source files which are vobs in your case.
    Quote Quote  
  3. Post your whole script. The line 3 column 5 shows that you have a typo at that locaiton. your mpeg2source line is fine btw.
    Quote Quote  
  4. Member
    Join Date
    Aug 2002
    Location
    Cardiff, Wales
    Search Comp PM
    ok i decided to remake the .d2v file and .avs file for som reason :S. but anyway, i encountered the same problems, so here's how the first few lines of the .d2v file reads:

    DGIndexProjectFile06
    6
    54 D:\Program Files\Chris' Movies\Odd Bits 2\VIDEO_TS.VOB
    54 D:\Program Files\Chris' Movies\Odd Bits 2\VTS_01_1.VOB
    54 D:\Program Files\Chris' Movies\Odd Bits 2\VTS_01_2.VOB
    54 D:\Program Files\Chris' Movies\Odd Bits 2\VTS_01_3.VOB
    54 D:\Program Files\Chris' Movies\Odd Bits 2\VTS_01_4.VOB
    54 D:\Program Files\Chris' Movies\Odd Bits 2\VTS_01_5.VOB

    Stream_Type=1
    iDCT_Algorithm=5 (1:MMX 2:SSEMMX 3:FPU 4:REF 5:SSE2MMX)
    YUVRGB_Scale=0 (0:TVScale 1:PCScale)
    Luminance_Filter=0,0 (Gamma, Offset)
    Clipping=0,0,0,0 (ClipLeft, ClipRight, ClipTop, ClipBottom)
    Aspect_Ratio=4:3
    Picture_Size=720x576
    Field_Operation=0 (0:None 1:ForcedFILM 2:RawFrames)
    Frame_Rate=25000
    Location=0,0,5,6F300

    is ne of that wrong? i can't say i understand ne of it :/
    thanks for the help btw
    Quote Quote  
  5. Member adam's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Search Comp PM
    Don't worry about what the d2v file says. After making that you never need to touch it at all. Its the AVS file that you need to worry about. Its a separate text file. From your previous post it sounded like you were loading the d2v file into virtualdub.

    Just create a new text file and save it with an .AVS extension.
    Quote Quote  
  6. Just want to point out that his D2V file says DGIndexProjectFile06.
    (i don't mean to intrude, i just thought it would save you some hassle)

    Its the same story, only the names have been changed.

    Instead of "MPEG2Dec3.dll" you should use "DGDecode.dll".




    Or easier yet, DGIndex can automatically create the AviSynth Script for you.

    Copy this to notepad (except for "-------"), save as "template.avs", and place in the same directory as DGMPGDec

    --------------------------------
    loadplugin ("C:\Ut\Video\DGMPGDec\DGDecode.dll")
    mpeg2source ("",cpu=6)
    YV12toRGB24 ()
    FlipVertical ()
    --------------------------------

    You must change the path of DGDecode.dll to correspond with your chosen location. You may or may not need the last two lines (YV12toRGB24 () / FlipVertical ()) depending on your destination format.

    The package has good documentation, give it a quick read.
    Quote Quote  
  7. Member
    Join Date
    Aug 2002
    Location
    Cardiff, Wales
    Search Comp PM
    How exactly do i choose to use "DGDecode.dll" instead of "MPEG2Dec3.dll"? I also renamed the notepad text file which had "MPEG2Source("dvd2avi.d2v") in to dvd2avi.avs and wmp still couldn't recognise it. When opened in VD, it gave me a slightly different error:

    Avisynth open failure:
    script error: there is no function named "MPEG2Source"
    [D:\...\DVD2AVI.avs, line 1)

    The only thing that was in that file was:
    MPEG2Source("dvd2avi.avs")

    I tried copying your template and set the correct location and whatever, but how do i open the avs template file using dgmpegdec? do i just open it like i would a normal mpeg2source?
    Quote Quote  
  8. Originally Posted by christaltips
    How exactly do i choose to use "DGDecode.dll" instead of "MPEG2Dec3.dll"? I also renamed the notepad text file which had "MPEG2Source("dvd2avi.d2v") in to dvd2avi.avs and wmp still couldn't recognise it. When opened in VD, it gave me a slightly different error:
    "DGDecode.dll" should be in the same package as DGMPGEnc (DGIndex).

    "DGDecode.dll" is actually a tweaked version of "MPEG2Dec3.dll".

    "DGDecode.dll" is made to compliment DGIndex more closely than the combination of DVD2AVI + MPEG2Dec3.dll.

    On a line preceeding "MPEG2Source("dvd2avi.d2v")" you should load the plugin "DGDecode.dll",

    You have to load a plugin before you can make a request of its functions.

    Originally Posted by christaltips
    Avisynth open failure:
    script error: there is no function named "MPEG2Source"

    The only thing that was in that file was:
    MPEG2Source("dvd2avi.avs")
    Your not trying to read the AVS file, your making the AVS file! Load the D2V file instead.

    It should be something like:
    loadplugin("C:\DGMPGDec\DGDecode.dll")
    mpeg2source("dvd2avi.d2v",cpu=6)

    ...but remember that my "DGDecode.dll" won't be in the same place on the hard drive as your will.

    Originally Posted by christaltips
    I tried copying your template and set the correct location and whatever, but how do i open the avs template file using dgmpegdec? do i just open it like i would a normal mpeg2source
    You don't open the AVS file with DGIndex (dgmpegdec). DGMPGDec reads the MPEG-2 and outputs a D2V, AviSynth reads the D2V through the use of DGDecode.dll. (that text file you made) VirtualDub / TMPGEnc / etc. reads the AVS-file (Example.avs)

    OK, DGIndex.exe (or DVD2AVI.exe) creates a reference file (D2V) that TMPGEnc can read with the VFAPI plugin "DGVfapi.vfp" (or DVD2AVI.vfp in the case of DVD2AVI).

    The VFAPI plugin does the reading of the MPEG-2 file.

    Now DGDecode.dll (or MPEG2Dec3.dll in the case of DVD2AVI) will allow AviSynth to read the D2V file, so......

    1. Use DGIndex.exe to read the MPEG-2 file, and a D2V file will be created.

    2. AviSynth reads the D2V file throught the use of DGDecode.dll. Use notepad, (or the template.avs) to load the D2V file into AviSynth.

    loadplugin("C:\"Your Location"\DGDecode.dll")
    mpeg2source("C:\"Your Location"\"Your File".d2v",cpu=6)
    YV12toRGB24()
    FlipVertical()

    (remember to put the path of your DGDecode.dll, and the path of your D2V file in place of "Your Location" / "Your File")

    3. Open the AVS file with VirtualDub / VirtualDubMod / etc. The AVS file will appear as a AVI (uncompressed) to VirtualDub. (This takes care of Video-only)

    4. Encode!

    This is assuming that you have AviSynth 2.5x installed!

    If you want Video + Audio then you'll have to modify the AVS file a bit.
    Quote Quote  
  9. Member
    Join Date
    Aug 2002
    Location
    Cardiff, Wales
    Search Comp PM
    cheers all, ive got it working! the quality of my ripped avi file was crap, but that was cos i chose 2 and a half hours of video to be resized to 550mb 4 sum reason :S, but that's my fault which i can change
    Quote Quote  
  10. Which method were you able to make use of? (curious)
    Quote Quote  
  11. Member
    Join Date
    Aug 2002
    Location
    Cardiff, Wales
    Search Comp PM
    lol well the main problem was that i didnt have avisynth 2.5 :/, so of course vdub couldnt understand the .d2v file (i think its the d2v file i loaded into that?!) I used your template which worked fine, then once i had managed to open it with wmp and vdub, i just carried on working through the guide i was following.
    Quote Quote  
  12. Good news though, we tend to remember the hard learned lessons more clearly, and you should now be able to avoid (some) future problems with the knowledge you've gained.

    Noone is a better teacher than oneself.

    Congradulations!
    Quote Quote  



Similar Threads

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