# +-------------------------------------------------------------+ # | Example : using DVD material in editing programs | # | | # | This is file is part of the guide that can be found on: | # | www.videotools.net | # | (c) 2002 Edwin van Eggelen | # | | # | Needed programs : | # | Avisynth v1.0 beta 6 | # | Link2 | # | DVD2AVI | # | MPEG2DEC avisynth plugin | # | | # | | # | All programs can be found on www.videotools.net. | # | | # +-------------------------------------------------------------+ # Load the mpeg2 decoder that decodes the DVD2AVI files LoadPlugin("MPEG2DEC.dll") # define the audio source audio=WAVsource("DVDimport.wav") #audio=ResampleAudio(audio,48000) # define the video source # The .d2v files is created with DVD2AVI and consists of # information about the DVD. Note that this file only contains # links to the DVD material. So the .dv2 file does NOT contain # any video data video=mpeg2source("DVDimport.d2v") # Do some optional processing in Avisynth if desired. # if you do NOT want to do processing, please put an "#" before # the line # crop the video. # default disabled. Remove # to enable cropping #video=crop(video,10,4,702,464) # de-interlace # default disabled. Remove # to enable de-interlacing #SmartDeinterlace(2,10,true,true,true) # Resize the video # default resize to VCD PAL format # enable to selected format by removing the # # and disable all other formats by adding the # # in front of the line # Resize to : PAL SVCD #video=BilinearResize(video,480,576) # Resize to : PAL VCD video=BilinearResize(video,352,288) # Rezize to : NTSC SVCD #video=BilinearResize(video,480,480) # Rezize to : NTSC VCD #video=BilinearResize(video,352,288) # If your editing program does not support YUY2, you need # convert the your DVD to the RGB format. Info # about this can be found on my web site. # It is converted by to default to RGB video=ConvertToRGB(video) # return both audio and video streams return AudioDub(video,audio)