VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 50
Thread
  1. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    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.
    Image Attached Files
    Quote Quote  
  2. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    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)?
    Quote Quote  
  3. Member
    Join Date
    Aug 2008
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  4. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    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.......
    Quote Quote  
  5. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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)
    Also towards the end of the script:
    Code:
    #noise=avisource("noise-preprocess.avi").bilinearresize(400,480).loop(300)
    noise=lwlibavvideosource("noise-preprocess.avi").bilinearresize(400,480).loop(300)
    EDIT May 2023 - for usage of this script it's better to stick to Avisynth 2.5-2.6,
    there are some strange issues when running under Avisynth plus
    Last edited by davexnet; 7th May 2023 at 12:30. Reason: more info
    Quote Quote  
  6. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Uh, I don't know how to do that.
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by ElmoRocks05 View Post
    Uh, I don't know how to do that.
    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+
    and the 64 bit plugin here
    Code:
    C:\Program Files (x86)\AviSynth+\plugins64+
    Edit the script as necessary and then drag the script icon onto the Virtualdub2 window
    Quote Quote  
  8. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    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.
    Quote Quote  
  9. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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
    Image Attached Thumbnails Click image for larger version

Name:	vhs_effect.jpg
Views:	446
Size:	75.0 KB
ID:	53895  

    Quote Quote  
  10. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Well, I got this error.

    And this is how I edited the script:

    Did I do it wrong?
    Image Attached Thumbnails Click image for larger version

Name:	Capture.PNG
Views:	160
Size:	6.8 KB
ID:	53899  

    Image Attached Files
    Quote Quote  
  11. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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
    Image Attached Thumbnails Click image for larger version

Name:	lsmash.jpg
Views:	165
Size:	80.4 KB
ID:	53900  

    Quote Quote  
  12. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Yes.
    Quote Quote  
  13. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by davexnet View Post
    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
    Oh, wait a second! I don't think I installed AviSynth+! 0_0
    You put the link to the regular AviSynth on the other reply mentioning it and I must have accidentally downloaded and installed it. I'll try again and let you know what happens.
    Quote Quote  
  14. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by davexnet View Post
    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.
    Quote Quote  
  15. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by davexnet View Post
    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)
    Also towards the end of the script:
    Code:
    #noise=avisource("noise-preprocess.avi").bilinearresize(400,480).loop(300)
    noise=lwlibavvideosource("noise-preprocess.avi").bilinearresize(400,480).loop(300)
    Well, I am still getting an error. I just don't know what I'm doing wrong. Do I put the code exactly as it is on the script or do I change it to suit my needs?
    Image Attached Thumbnails Click image for larger version

Name:	Capture.PNG
Views:	84
Size:	6.4 KB
ID:	53901  

    Quote Quote  
  16. You have to change it to suit your needs

    Change the path to match your actual file paths and video names
    Quote Quote  
  17. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Yes, "solid geometry" is a short film I have on my hard drive. You can't access it from where you are
    Quote Quote  
  18. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by poisondeathray View Post
    You have to change it to suit your needs

    Change the path to match your actual file paths and video names
    Well, now I'm getting this error.
    Image Attached Thumbnails Click image for larger version

Name:	Capture.PNG
Views:	88
Size:	7.0 KB
ID:	53902  

    Quote Quote  
  19. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  20. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by davexnet View Post
    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)
    Well, now I'm getting this error.
    Image Attached Thumbnails Click image for larger version

Name:	Capture.PNG
Views:	103
Size:	7.9 KB
ID:	53917  

    Quote Quote  
  21. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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
    To make it work, modify the audio_rate on this line to match your video:
    Code:
    player=BLANKCLIP(length=60, color=$2222DD, fps=29.97, CHANNELS=1, audio_rate=48000).converttoyv12
    Quote Quote  
  22. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by davexnet View Post
    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
    To make it work, modify the audio_rate on this line to match your video:
    Code:
    player=BLANKCLIP(length=60, color=$2222DD, fps=29.97, CHANNELS=1, audio_rate=48000).converttoyv12
    YES! It worked! Thanks, man! I'll let you know if it stopped crashing or not.
    Image Attached Thumbnails Click image for larger version

Name:	Screenshot (3).png
Views:	546
Size:	88.8 KB
ID:	53929  

    Quote Quote  
  23. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by ElmoRocks05 View Post
    Originally Posted by davexnet View Post
    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
    To make it work, modify the audio_rate on this line to match your video:
    Code:
    player=BLANKCLIP(length=60, color=$2222DD, fps=29.97, CHANNELS=1, audio_rate=48000).converttoyv12
    YES! It worked! Thanks, man! I'll let you know if it stopped crashing or not.
    Ugh, it's still crashing?! I don't know how that's possible! I followed everything you said!
    Image Attached Thumbnails Click image for larger version

Name:	Screenshot (4).png
Views:	169
Size:	753.7 KB
ID:	53930  

    Quote Quote  
  24. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  25. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    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.
    Quote Quote  
  26. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  27. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Well, it managed to save the video, but now the audio is screwed up.
    Quote Quote  
  28. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Originally Posted by ElmoRocks05 View Post
    Well, it managed to save the video, but now the audio is screwed up.
    Hello?
    Quote Quote  
  29. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by ElmoRocks05 View Post
    Originally Posted by ElmoRocks05 View Post
    Well, it managed to save the video, but now the audio is screwed up.
    Hello?
    I'm back. What does "but now the audio is screwed up" mean. How do expect anybody to respond to that?
    Quote Quote  
  30. Member
    Join Date
    Jun 2020
    Location
    Oklahoma
    Search PM
    Well, the music is gone and replaced with nothing but static.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!