Well, I'm trying to use the AVISynth VHS effect after such a long time. It did work this first time, but now I'm getting this annoying error:
An out-of-bounds memory access (access violation) occurred in module 'VirtualDub64'...
...reading address FFFFFFFFFFFFFFFF...
...while running thread "Processing" (thread.cpp:197).
And here the crash debug information if you need it: https://mega.nz/file/qSwWTCxY#Oj55-D2FwQTbt9nBZFYfeGSkvNaDvvX52jDG5vos238
Can anyone please fix it for me? I haven't uploaded anything on YouTube in a long time because I'm making this video since I graduated from high school this week. So, if anyone can fix it for me, it would be awesome.
+ Reply to Thread
Results 1 to 30 of 50
-
-
What is the "VHS effect"? Is this an AviSynth plugin? If yes, where can I get it? Is it listed in External filters or even AviSynth+ x64 plugins (which you would need in VirtualDub64)?
-
My first guess would be that the "VHS Effect" Avisynth filter is 32-bit, and that the first time that you ran your AVS script was in the 32-bit version of VirtualDub, but now are trying to run it in the 64-bit version of VirtualDub. In your VirtualDub folder, run the 32-bit version of it by clicking on VirtualDub.exe, rather than VirtualDub64.exe, and open your AVS script with it.
-
This is the script I'm talking about: https://www.youtube.com/watch?v=qytlv9XfzYw
Also, I already tried the 32-bit way, and it still won't work. I just don't understand what the hell is going on. I'm getting sick of it....... -
I suspect you have some other issues beyond this script because it doesn't use any external function,
so it should work on Virtualdub2 32 or 64 bit, assuming you have the right version of Avisynth installed
I got it to work by substituting Avisource with lwlibavvideosource and lwlibavaudiosource (which is an external filter)
with the 32 and 64 bit source filters (LSMASHSource.dll) in their proper folders.
Also used my own source video.
For avisynth I'm using Avisynth+, the latest version 3.61, came out today
https://www.videohelp.com/software/AviSynth-Plus
Code:#SOURCEVIDEO=AVISOURCE("Nyan_Cat_Sample.avi").bilinearresize(392,480).resampleaudio(48000) vid=lwlibavvideosource("C:\Users\Public\Videos\demo-misc\Solid Geometry (Short 2002 #).mp4") aud=lwlibavaudiosource("C:\Users\Public\Videos\demo-misc\Solid Geometry (Short 2002 #).mp4") sourcevideo=audiodub(vid,aud)
Code:#noise=avisource("noise-preprocess.avi").bilinearresize(400,480).loop(300) noise=lwlibavvideosource("noise-preprocess.avi").bilinearresize(400,480).loop(300)
there are some strange issues when running under Avisynth plusLast edited by davexnet; 7th May 2023 at 11:30. Reason: more info
-
Install Avisynth+ as mentioned, and download the Lsmash source filter
https://github.com/HolyWu/L-SMASH-Works/releases/
Extract the dll's and place the 32 bit plugin in here
Code:C:\Program Files (x86)\AviSynth+\plugins+
Code:C:\Program Files (x86)\AviSynth+\plugins64+
-
I don't know how to do the code or script stuff. I think I'm doing it wrong because I'm now getting an error when I put the script onto VirtualDub. This is getting really stressful.
-
Just edit the script (effect.avs) similar as I showed in the example above (post 5), open Virtualdub2 and drag the effect.avs icon
into the Vdub window. It will open and the video will display or you'll get an error message -
Well, I got this error.
And this is how I edited the script:
Did I do it wrong? -
Did you install the function as I mentioned in post 7 ?
You can see here the 64 bit plugin folder where I placed the 64 bit version of Lsmashsource.dll -
And another thing I didn't realize is that the plugins are supposed to be in the AviSynth plugins folders! But was I supposed to put them in the VirtualDub plugin folders too? 'Cause that's what I did.
-
-
You have to change it to suit your needs
Change the path to match your actual file paths and video names -
Yes, "solid geometry" is a short film I have on my hard drive. You can't access it from where you are
-
-
Use mediainfo on your video file to find the sampling rate of the audio stream
The message is telling you what's wrong, the sampling rate of your audio does not match the "noise" sample (WAV file) in the
VHS effects folder. The script is trying to mix in some broadband noise into your files audio to make it sound crappy
When you find out what it is you can change this line so that the resampleaudio matches your file
Code:audnoise=wavsource("baseband artifect.wav").resampleaudio(48000).loop(600)
-
The error is related to this statement, which joins your video to a short blank clip to mimic the VHS lead in:
Code:player+final
Code:player=BLANKCLIP(length=60, color=$2222DD, fps=29.97, CHANNELS=1, audio_rate=48000).converttoyv12
-
-
-
The script just process the input and serves the frames, but if it is crashing during the encoding other
things are involved.
I can't tell what you did in Virtualdub2 and what settings you used, you haven't provided any info at all. -
Well, I just converted the video file to AVI and put it into the script. Then I put the script onto VirtualDub2 and tried saving as an AVI file. Then it started crashing. That's pretty much all I can tell you.
-
try setting the video/Audio compression codec
at the top
video/compression/x264-8-bit/configure/load defaults/OK out
Audio/Full processing/
audio/Compression/FFmpeg AAC/OK out
File/save as/save as type/ > choose either MKV or MP4, your choice (this is preferable to AVI) -
Similar Threads
-
AviSynth script error on meGUI
By vancew90 in forum EditingReplies: 16Last Post: 16th Jan 2019, 06:42 -
how to using AviSynth and virtualdub script and DLL plug?
By 280634157 in forum EditingReplies: 11Last Post: 19th Apr 2018, 12:16 -
VirtualDub, AviSynth Script and Commands
By Phuket in forum EditingReplies: 5Last Post: 22nd May 2017, 23:05 -
Reusable Avisynth script for these VHS captures.
By digicube in forum RestorationReplies: 6Last Post: 7th Oct 2015, 20:50 -
Newbie. Avisynth script for these VHS captures.
By digicube in forum RestorationReplies: 38Last Post: 26th Sep 2015, 09:04