PDA

View Full Version : .AVS Template


MattO
8th January 2007, 23:38
I havent used AVISynth for a few years, and even then it was nothing too in depth.
But I want to start archiving my DVD collection, and my home vids, into XviD format.
I know I could use an all in one solution, AutoGK, but I like to know how things work :D and I want to be in control of each step.
I am going to use DGIndex > Aspect > AVS > VirtualDub.
When I originally played with AVISynth I had a template which I used as a basis for all my .AVS files.
I know I cannot cover all possibilities (or can I?), but what I would like is a good starting point. I didnt find anything on the search. If anyone has anything similar they dont mind sharing I would be most interested.
Using my very old template (and utilizing various posts found on here) I have modified it, so far, to the following:

########## START PLUGINS ##########
LoadPlugin("...\DGDecode.dll")
LoadPlugin("...\CNR2.dll")
LoadPlugin("...\UnDot.dll")
LoadPlugin("...\UnFilter.dll")
LoadPlugin("...\SimpleResize.dll")
########## END PLUGINS ##########
########## SOURCE
MPEG2Source("...\video.d2v")
########## START IVTC or DEINTERLACE ##########
###### NTSC:
#### Use DGIndex FORCE FILM option if FILM > 95% or NTSC <5%, else perform IVTC by firstly trying:
#Telecide(order=0, post=false).Decimate(cycle=5)
#### If it looks interlaced, try this instead:
#Telecide(order=0, post=true).Decimate(cycle=5)
#####OR, instead of the above 2 lines, should I just use:
#Telecide(order=1,guide=1).Decimate()
#### If it still looks interlaced its probably a purely interlaced source, so do this:
#FieldDeinterlace(full=false)
###### PAL:
#### If PAL is Progressive you do not need to do anything
#### If PAL looks interlaced swap Field Order in DGIndex
#### If it still looks interlaced:
#Telecide(post=true)
#### Then check for double frames, if found:
#Telecide(post=true).Decimate(cycle=25)
#### Alternatively if PAL is 100% interlaced:
#FieldDeinterlace()
####If your PAL DVD has been converted from NTSC use this instead (HOW DO YOU KNOW IF THIS IS SO?):
#Telecide(guide=2,post=true, blend=false)
########## END IVTC or DEINTERLACE ##########
########## START CROPPING & RESIZING ##########
#### [Values from 'Aspect', X1,Y1,X2,Y2 should all be even numbers (X2,Y2 must be negative), Resolution XXX x YYY (both MOD 16)]
#Crop(X1,Y1,-X2,-Y2).SimpleResize(XXX,YYY)
########## END CROPPING & RESIZING ##########
########## START FILTERING ##########
#### DVD:
#Undot().Unfilter(-5,-5)
#### VHS:
#CNR2().Undot().Unfilter(-5,-5)
# NOT SURE ABOUT THIS NEXT ONE BUT I USED TO USE IT
#DctFilter(1,1,1,1,1,1,.5,0)
########## END FILTERING ##########

I know it is a bit basic :o but, as I said earlier, it is only intended as a starting point for me.
Can anyone please advise me on improvements / error corrections to this?
Most probably the IVTC and Deinterlace section ;) Would those commands cover most types of sources? are the comments correct, or have I misunderstood something?

Thanks for any info