PDA

View Full Version : problem vith loding plugins


klimax
12th February 2003, 10:29
hi
i have installed avisynth 2.5, tried it(if it's real installed) and now i'd like to convert video in mpeg2 format to divx using avisynth + filters

i have made d2v file in dvd2avi (1.76)

made avs script
""
LoadPlugin("f:\futurama\plugins\MPEG2DEC3.DLL")
LoadPlugin("f:\futurama\plugins\FluxSm.dll")
LoadPlugin("f:\futurama\plugins\asharp.DLL")
LoadPlugin("f:\futurama\plugins\Msmooth.dll")

video=mpeg2source("f:\futurama\futurama.d2v")
FluxSmooth(2,-1)
LanczosResize(480,360)
asharp(2,3)
MSmooth(strength=7)
""

now i have big problem with loading it to virtual dub.

it also says - "script error invalid arguments to function fluxsmooth (line 7)"

so when i remove this line, it says totally same thing to all other functions

so when i remove all of them it says "the scripts return value was not a video clip"

so i really dont know, what to do with it.

i'm using good plugins(that ones, that is for this version of avisynth)

i'm newbie, it is my first script

(i also add beginning and end of d2v file to sure
""
DVD2AVIProjectFile
1
36 F:\futurama\futurama_s01e01.svcd.mpg

Stream_Type=1,0,0
iDCT_Algorithm=1
YUVRGB_Scale=1
Luminance=128,0
Picture_Size=0,0,0,0,0,0
Field_Operation=0
Frame_Rate=25000
Location=0,0,0,3214D

7 0 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
7 0 7 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
7 0 D 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
7 0 12 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
....
.
.
.
.
.
7 0 32112 2 2 2 2 2 2 2 2 2
7 0 32118 2 2 2 2 2 9

FINISHED
"")

hope someone will help me

KlimaX

hakko504
12th February 2003, 10:36
Your script should read:LoadPlugin("f:\futurama\plugins\MPEG2DEC3.DLL")
LoadPlugin("f:\futurama\plugins\FluxSm.dll")
LoadPlugin("f:\futurama\plugins\asharp.DLL")
LoadPlugin("f:\futurama\plugins\Msmooth.dll")

mpeg2source("f:\futurama\futurama.d2v")
FluxSmooth(2,-1)
LanczosResize(480,360)
asharp(2,3)
MSmooth(strength=7) or (but the first script is the most useful)LoadPlugin("f:\futurama\plugins\MPEG2DEC3.DLL")
LoadPlugin("f:\futurama\plugins\FluxSm.dll")
LoadPlugin("f:\futurama\plugins\asharp.DLL")
LoadPlugin("f:\futurama\plugins\Msmooth.dll")

video=mpeg2source("f:\futurama\futurama.d2v")
video.FluxSmooth(2,-1)
LanczosResize(480,360)
asharp(2,3)
MSmooth(strength=7) Your problem is that you put the loaded video into the variable 'video' but then you never use it - and you are only making it harder for yourself if you use it. If you only load one video, and filter it in a linear fashion (like you do not) there is no need to use variables at all. It's just confusing.

klimax
12th February 2003, 12:15
thanx man,
i didnt know, that solving this problem is so easy.