Log in

View Full Version : Avisynth lanczos resize Invalid Argument


presby72
18th July 2005, 17:14
Everytime I load the script I get the following error:

Script Error: Invalid arguments to function "LanczosArgument"

Here is the Script I am using:

Video = Mpeg2Source("E:\Pacifier.d2v")
Lanczosresize (368, 208)
Audio = WAVSource("E:\Pacifier.wav")
AudioDub(video, audio)

When I remove the Lanczosize line it loads with no problem. I have treid alot of other numbers, all with a multiple of 16 and receive the same result. What am I doing wrong

Thanks

mg262
18th July 2005, 17:50
The problem is that it doesn't have a clip to resize. You're loading the clip into 'Video', but not actually passing that to Lanczosresize as an argument. Here are some variants that should all do what you want (if I have my head switched on today)... hopefully by comparing then you get an idea of how things work.

Video = Mpeg2Source("E:\Pacifier.d2v")
video = video.Lanczosresize (368, 208)
Audio = WAVSource("E:\Pacifier.wav")
AudioDub(video, audio)

Mpeg2Source("E:\Pacifier.d2v")
Lanczosresize (368, 208)
video = last
Audio = WAVSource("E:\Pacifier.wav")
AudioDub(video, audio)

Audio = WAVSource("E:\Pacifier.wav")
Mpeg2Source("E:\Pacifier.d2v")
Lanczosresize (368, 208)
AudioDub(audio)

Mpeg2Source("E:\Pacifier.d2v")
Lanczosresize (368, 208)
AudioDub(WAVSource("E:\Pacifier.wav"))