PDA

View Full Version : aviscript 2.5 errors... help me


Shootist
22nd December 2002, 15:35
Ok, my question are:
1.Is it really true that ALL resizers are built-in in the latest avisynth 2.5 alpha (Q5->FAQ)? I`m getting no function error...
2.I have errors that there are invalid arguments to functions of ac3source and convolution 3d. How can I solve it?

I have the following script:
------------------------------------------------------------------
# PLUGINS
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")
#
# SOURCE
Video=Mpeg2Source("D:\Save\Star\vts_01.d2v")
Audio=ac3source("D:\Save\Star\s.ac3")
#
# CROPPING
Video=Crop(Video,4,72,716,434)
#
# RESIZING
Video=Lanczos3Resize(Video,544,224)
#
#
#Convolution 3d
Convolution3D (0, 3, 4, 3, 4, 2.8, 0)
#
# FINISH
Audiodub(Video,Audio)
------------------------------------------------------------------

Is there a special installtion for avs 2.5? I had installed avs 2.0.5 before I changed to test avs 2.5. Maybe there is the problem?

sh0dan
22nd December 2002, 15:39
It's called "lanczosresize" - not lanczos3.

drebel
22nd December 2002, 17:21
why not try something like this?
------------------------------------------------------------------
# PLUGINS
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")
#
# SOURCE
clip=Mpeg2Source("D:\Save\Star\vts_01.d2v")
Audio=ac3source("D:\Save\Star\s.ac3")
#
# CROPPING
Video=Crop(clip,4,72,716,434).LanczosResize(clip,544,224).Convolution3D (clip,0,3,4,3,4,2.8,0)
return video
# FINISH
Audiodub(Video,Audio)

regards,george

Shootist
22nd December 2002, 18:02
thanks will try

Shootist
22nd December 2002, 18:26
OK, lanczosresize now is no problem.

But Convolution3d and AC3source, both avs2.5 dlls, have always "invalid arguements to function...".
I also tried the defaults of them, like they were described in the readmes. They also have invalid...

I used DVD2AVI 1.76 to create the ac3, if it helps.

Wilbert
22nd December 2002, 18:52
There's something wrong with your script. Try this:

LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")

Video=Mpeg2Source("D:\Save\Star\vts_01.d2v")
Audio=ac3source("D:\Save\Star\s.ac3")
Audiodub(Video,Audio)

Did that work? If so, try this:

LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")

video = Mpeg2Source("D:\Save\Star\vts_01.d2v")
audio = ac3source("D:\Save\Star\s.ac3")
video = Crop(video,4,72,716,434)
video = LanczosResize(video,544,224)
video = Convolution3D(video, 0, 3, 4, 3, 4, 2.8, 0)
Audiodub(video,audio)

Shootist
22nd December 2002, 19:29
Both produce the same error-messages like my own script.
After some time I come to the conclusion that the plugins may not be loaded fully. I tried wavsource with no problem. This is built-in, like LanczosResize. They make no problems. Do you agree?

Wilbert
22nd December 2002, 20:50
Both produce the same error-messages like my own script.
Very strange. Can you make a script containing:

version

to verify that the installed version is indeed v2.5. If that's indeed the case can you try the following script:

LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
Mpeg2Source("D:\Save\Star\vts_01.d2v")
_____
Did that work?

Shootist
23rd December 2002, 10:57
"Avisynth v2.50 beta 1 from Nov 7"

Ok tried both and they worked with no problems.
I think my theory is not correct because the MPEG2Dec3.dll seems to function.

So now to the strange thing:
After I had reinstalled avisynth using uninstall.reg from avs2.0.5 and overwritten the dll in windows/system32 I could manage it to make Convultion 3d working with the following script:

# PLUGINS
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")
#
# SOURCE
Video=Mpeg2Source("D:\Save\Star Wars Episode II\vts_01.d2v")
#Audio=ac3source("D:\Save\Star Wars Episode II\swe2.ac3")
#
# CROPPING
Video=Crop(Video,4,72,716,434)
#
#
# RESIZING
Video=BicubicResize(Video,544,224,0,0.75)
#
#
#Convolution 3d
Video=Convolution3D(Video, 0, 3, 4, 3, 4, 2.8, 0)
#
# FINISH
return Video

And when I modified the ac3source to

Audio=ac3source(Video, "D:\Save\Star Wars Episode II\swe2.ac3")

it was loaded by VDub and VDubMod.
But there was no Sound in the encoded file. And I think there is no other way to manage this problem. You cannot load it with "ac3 audio" in VDubMod and then compress it because it needs stereo downmix.
The readme of ac3source says:
---------------------------------
syntax :
AC3source(video, filepath)
(you don't need to use AudioDub)

ex :
MPEG2Source(mydvd.d2v)
AC3source(mydvd.ac3)
---------------------------------

Any more suggestions?

Wilbert
23rd December 2002, 12:06
Ah, ok (didn't know that about AC3Source). You should try the following:

# PLUGINS
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")
#
# SOURCE
Video=Mpeg2Source("D:\Save\Star Wars Episode II\vts_01.d2v")
#
# CROPPING
Video=Crop(Video,4,72,716,434)
#
# RESIZING
Video=BicubicResize(Video,544,224,0,0.75)
#
#Convolution 3d
Video=Convolution3D(Video, 0, 3, 4, 3, 4, 2.8, 0)
#
# FINISH
return ac3source(Video, "D:\Save\Star Wars Episode II\swe2.ac3")

Shootist
23rd December 2002, 14:25
Originally posted by Wilbert
Ah, ok (didn't know that about AC3Source). You should try the following:

# PLUGINS
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\MPEG2Dec3.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\ac3source.dll")
LoadPlugin("D:\Programme\DVD-Utilities\Avisynth\avisynth2.5x_dlls\Convolution3DYV12.dll")
#
# SOURCE
Video=Mpeg2Source("D:\Save\Star Wars Episode II\vts_01.d2v")
#
# CROPPING
Video=Crop(Video,4,72,716,434)
#
# RESIZING
Video=BicubicResize(Video,544,224,0,0.75)
#
#Convolution 3d
Video=Convolution3D(Video, 0, 3, 4, 3, 4, 2.8, 0)
#
# FINISH
return ac3source(Video, "D:\Save\Star Wars Episode II\swe2.ac3")

Now there is a very,very,very,very, strange output. If i use your script i have no problems loading it into Vdub/VdubMod. But only the right channel is playing sound, not the left. But maybe this is an error of the ac3source.dll. Will post the problem in the ac3source thread, or do you have an other way?

Wilbert
23rd December 2002, 14:47
Best is to post it in the AC3source thread with a link to this thread.