Xzyx987X
26th December 2005, 04:51
Here is the script I wrote for encoding a DVD I have:
LoadPlugin("C:\Program Files\AviSynth2\plugins\MPEGDecoder.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LeakKernelDeint.dll")
LoadPlugin("C:\Program Files\AviSynth2\plugins\Decomb521.dll")
LoadPlugin("C:\Program Files\AviSynth2\plugins\ffavisynth.dll")
global minimalFiltering = false
MPEGSource("D:\Rip\VTS01-PGC01.VOB")
Telecide(order=1, guide=3, post=1, vthresh=10, show=false, hints=true)
LeakKernelDeint(order=1, threshold=0, sharp=true)
Decimate()
converttoyuy2()
ConditionalReader("MinimalFiltering.txt", "minimalFiltering", false)
minimalFiltering ? ffdshow(preset="AVS_M") : ffdshow(preset="AVS")
Crop(8, 4, -20, 0, align=false)
Limiter()I'm having a weird problem though, where my conditional statements don't seem to be working right. For some reason only the first condition is triggered on the line that selects which ffdshow filter setting to use. I tried swapping them back and forth, but it's always the one to the left of the ":" that's used. I would've thought that was because ConditionalReader wasn't selecting the correct values, but when I turned on show it does seem to be giving the values I expected. I'm not exactly sure what else the problem could be, so does anyone here know?
LoadPlugin("C:\Program Files\AviSynth2\plugins\MPEGDecoder.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LeakKernelDeint.dll")
LoadPlugin("C:\Program Files\AviSynth2\plugins\Decomb521.dll")
LoadPlugin("C:\Program Files\AviSynth2\plugins\ffavisynth.dll")
global minimalFiltering = false
MPEGSource("D:\Rip\VTS01-PGC01.VOB")
Telecide(order=1, guide=3, post=1, vthresh=10, show=false, hints=true)
LeakKernelDeint(order=1, threshold=0, sharp=true)
Decimate()
converttoyuy2()
ConditionalReader("MinimalFiltering.txt", "minimalFiltering", false)
minimalFiltering ? ffdshow(preset="AVS_M") : ffdshow(preset="AVS")
Crop(8, 4, -20, 0, align=false)
Limiter()I'm having a weird problem though, where my conditional statements don't seem to be working right. For some reason only the first condition is triggered on the line that selects which ffdshow filter setting to use. I tried swapping them back and forth, but it's always the one to the left of the ":" that's used. I would've thought that was because ConditionalReader wasn't selecting the correct values, but when I turned on show it does seem to be giving the values I expected. I'm not exactly sure what else the problem could be, so does anyone here know?