Log in

View Full Version : What am I doing wrong?


webwonk
16th January 2005, 23:03
Hey gang,

I'm trying to convert a pure NTSC video to 29.97 progressive fps for input to sorenson squeeze (flash video). This is my script:
------------------------------------
LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\DGDecode.dll")
LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\Tdeint.dll")
#LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\TomsMoComp.dll")
video = MPEG2Source("c:\rdg\burn\left\left.d2v",cpu=6,iPP=true,idct=4)
#TomsMoComp(-1,5,1)
tdeint(mode=0,order=1,field=-1)
BilinearResize(480,360)
audio = WAVSource ("c:\rdg\burn\left\left.wav")
AudioDub (video,audio)
-----------------------------------------
No matter what I try, I get an Invalid arguments to function "tdeint" error; or when I # it out and try TomsMoComp I get the same thing. when I rem out both deinterlacers, it get the same error for bilinearresize. When I rem that out it works fine.

I've read the manuals for TDeint, TomsMoComp and AVISynth manual's section on resizing. I don't see my error. HELP.

Web

stickboy
16th January 2005, 23:09
TDeint takes a clip as its first argument. You didn't supply one to TDeint. If you omit it, AviSynth uses the 'last', unassigned clip. (See the "implicit last" section in BenRG's original AviSynth tutorial (http://www.neuron2.net/www.math.berkeley.edu/benrg/avisynth-tutorial.html).)

Either do:
LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\DGDecode.dll")
LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\Tdeint.dll")
#LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\TomsMoComp.dll")
video = MPEG2Source("c:\rdg\burn\left\left.d2v",cpu=6,iPP=true,idct=4)
video = video.TomsMoComp(-1,5,1)
video = video.tdeint(mode=0,order=1,field=-1)
video = video.BilinearResize(480,360)
audio = WAVSource ("c:\rdg\burn\left\left.wav")
AudioDub (video,audio)or
LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\DGDecode.dll")
LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\Tdeint.dll")
#LoadPlugin("c:\Program Files\Avisynth 2.5\plugins\TomsMoComp.dll")
video = MPEG2Source("c:\rdg\burn\left\left.d2v",cpu=6,iPP=true,idct=4)
audio = WAVSource ("c:\rdg\burn\left\left.wav")
AudioDub (video,audio)

# (Uses the implicit 'last' clip.)
TomsMoComp(-1,5,1)
tdeint(mode=0,order=1,field=-1)
BilinearResize(480,360)

webwonk
16th January 2005, 23:25
Thank you StickBoy! Works perfectly. Leave it to the Doom9 community to always come through. Thank you Thank you Thank you.

Web