dennisthemenace
12th April 2006, 22:46
I have the following AVISynth script that works:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
video_d2v = MPEG2Source("C:\Videos.d2v")
audio_d2v = DirectShowSource("C:\audio.ac3",23.976,video=false).CacheAudio()
audio_amp = Amplify(audio_d2v,5)
AudioDub(video_d2v,audio_amp)
DelayAudio(-0.17)
Crop(0,56,0,-56)
Lanczos4Resize(640,392)
I was playing around with this and moved the crop and resize lines after the video.d2v DirectShowSource line. When I tried to run this I got an error saying there was an invalid arguement to the Crop function. Why would moving the bottom 2 lines of the original script to the 4th and 5th line cause this error? Is there a programming or syntax rule that governs the order of the statements?
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
video_d2v = MPEG2Source("C:\Videos.d2v")
audio_d2v = DirectShowSource("C:\audio.ac3",23.976,video=false).CacheAudio()
audio_amp = Amplify(audio_d2v,5)
AudioDub(video_d2v,audio_amp)
DelayAudio(-0.17)
Crop(0,56,0,-56)
Lanczos4Resize(640,392)
I was playing around with this and moved the crop and resize lines after the video.d2v DirectShowSource line. When I tried to run this I got an error saying there was an invalid arguement to the Crop function. Why would moving the bottom 2 lines of the original script to the 4th and 5th line cause this error? Is there a programming or syntax rule that governs the order of the statements?