VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 32
  1. Image
    [Attachment 70813 - Click to enlarge]
    When I keep trying to put the Effect.avs file into virtualdub, it just keeps saying this: AVIFileSource: couldn't open file"baseband artifect.wav" How can I fix this?
    Last edited by Angel3532; 6th May 2023 at 14:03.
    Quote Quote  
  2. Don't use AVIFileSource to open a wav file,...
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. So I just have to change the wav file to another audio file?
    Quote Quote  
  4. No, you have to use another source filter if you want to load an audio file.
    AVISource is for loading .avi files.
    My guess is you need someone who knows what 'Effect.avs' you are reffering to, I suspect you are following some kind of tutorial and are doing something wrong.

    Cu Selur

    Ps.: going to bed, but wish you luck
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  5. Maybe show the complete script you're trying to open.
    Quote Quote  
  6. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Is this the script that adds a bunch of interference to the video to mimic VHS?
    I got it working 2 or 3 years ago, but it didn't work as-is
    Quote Quote  
  7. No that’s not the script and manono, I can’t show the full script right now because I’m not at home right now but when I get home I’ll show you the full script
    Quote Quote  
  8. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Angel3532 View Post
    No that’s not the script and manono, I can’t show the full script right now because I’m not at home right now but when I get home I’ll show you the full script
    Where did this script cme from?
    Quote Quote  
  9. It's from Effect.Avs
    Quote Quote  
  10. Here's the script

    #AviSynth Editing Script File - Made for AviSynth v2.58 (Might or might not work on other versions.)
    #Drag this file into VirtualDub window.
    #Commands in CAPITALS have notes/tips below.

    #EXTERNAL FONT IS USED (Camcorder Monospaced)
    #Download it from http://badmeangood.com/CAMCORDER_FONT_FAMILY/ -> Click "DOWNLOAD CAMCORDER FONT FAMILY (OPENTYPE)"
    #In downloaded ZIP, locate this: CAMCORDER FONT FAMILY -> CAMCORDER MONOSPACED -> CAMCORDER_MS_REG.otf
    #Extract and install CAMCORDER_MS_REG.otf font.

    #If AVISOURCE below gives an error, use DirectShowSource or better yet, convert it into H.264/AVC or MPEG-4/ASP instead.
    #Important! The video must contain an Audio stream!

    #== VIDEO INPUT ==#

    #SOURCEVIDEO: Your raw footage in AVI format (It should be encoded in H.264/AVC or MPEG-4/ASP)
    #Note: You can omit file path if it is in the same folder as this file.

    SOURCEVIDEO=DirectShowSource("my movie 37.avi").bilinearresize(392,480).resampleaudio(480 00)


    loss=imagesource("mask\hsync_%03d.bmp",end=127).as sumefps(2997,100).loop(1000)

    #ADDBORDERS of (32,20,32,20) is between title safe and action safe.
    #use (8,0,8,0) for full image area. (4:3 Aspect Ratio source)
    #use (8,80,8,80) for widescreen. (16:9 Aspect Ratio source)
    original=converttorgb32(sourcevideo).LEVELS(0,1,25 5,4,200).ADDBORDERS(4,0,4,0).changefps(2997,100)
    originalaudio=killvideo(sourcevideo)


    #== GREYSCALE ==#

    grey1=greyscale(original).bilinearresize(288,480). blur(-1,1).bicubicresize(400,480)
    grey2=pointresize(grey1,800,480).crop(0,0,799,480) .addborders(1,0,0,0).bilinearresize(400,480)

    hsyncloss1=mergeARGB(showgreen(loss),showblue(loss ),showblue(loss),showblue(loss)).pointresize(400,4 80)
    hsyncloss2=invert(hsyncloss1,"A")
    greysync1=layer(grey1,hsyncloss1)
    greysync2=layer(grey2,hsyncloss2)
    grey=overlay(greysync1,greysync2,mode="add",opacit y=1).converttoyv12


    #== COLOR ==#

    #ADDBORDERS: How off-set is the chroma channel from luma (X,Y,0,0) X=Horizontally, Y=Vertically (Both Even Number)
    colorinputu=original.bilinearresize(100,480).blur( 1,0).bilinearresize(400,480).ADDBORDERS(4,2,0,0)

    #For NTSC color (Hue Tinting)
    colorinputv=converttoyv12(colorinputu).coloryuv(co nt_v=-160).converttorgb32

    #For PAL color (No Tinting, removes blue tint)
    #colorinputv=colorinputu


    colorlossu=mergeARGB(showred(loss),showblue(loss), showblue(loss),showblue(loss)).pointresize(400,480 )
    colorlossv=trim(colorlossu,32,0)

    coloru=layer(colorinputu,colorlossu).converttoyv12
    colorv=layer(colorinputv,colorlossv).converttoyv12
    color=mergechroma(coloru,colorv,0.5).coloryuv(gain _y=-256, cont_u=128, cont_v=128)


    #== AUDIO ==#

    #You can disable the options by putting # at the beginning of the commands below.
    #Make sure you don't disable or enable them both! (Hi-Fi or Baseband Audio)


    #For Baseband Audio (Default pick, no further work required on audio!)
    audnoise=wavsource("baseband artifect.wav").resampleaudio(48000).loop(600)

    #Realistic: Equalization uses supereq. Normally use this:
    vidaudio=converttomono(originalaudio).amplify(0.3) .supereq("vhs.feq")

    #Compatibility: If the above create error, use this instead: (Not realistic)
    #vidaudio=converttomono(originalaudio).resampleaud io(16000).amplify(0.7).resampleaudio(48000)


    #For Hi-Fi Audio (Not quite realistic for the Hi-Fi audio artifect...)
    #audnoise=aiffsource("hifi artifect.wav").loop(600)
    #vidaudio=originalaudio

    #Important! If the original audio is mono, use this instead:
    #vidaudio=originalaudio


    #For External audio, in case you can do an 80s tape effect, which can be more realistic)
    #vidaudio=aifsource("[EXTERNAL AUDIO].wma").resampleaudio(48000)

    #Use this to extract the original audio [VirtualDub: File -> Save WAV...]
    #RETURN original


    #== FINALIZING ==#

    player=BLANKCLIP(length=0, color=$2222DD, fps=29.97, CHANNELS=1, audio_rate=48000).converttoyv12
    #BLANKCLIP: Important! Set CHANNELS to 2 if you use Hi-fi audio or External Audio if it is in stereo. Else, set it to 1.


    #Use this for Baseband or Hi-Fi Audio only.
    finalaudio=mixaudio(vidaudio,audnoise,0.96,0.04)

    #Use this if you use External Audio
    #finalaudio=vidaudio


    noise=avisource("noise-preprocess.avi").bilinearresize(400,480).loop(300)
    finalsignal=overlay(grey, color, mode="add", opacity=1)
    finalvideo=overlay(finalsignal, noise, mode="add", opacity=1).LEVELS(40,1,255,0,255).bilinearresize(6 40,480)
    final=audiodub(finalvideo,finalaudio)


    #== OUTPUT ==#
    player+final


    #If you don't want an OSD then disable these commands.
    #SUBTITLE(" [HI-FI]",48,24,180,330,"Camcorder Monospaced",36,$DDDDDD)
    #SUBTITLE in caps: Disable it if you use Baseband audio.


    #== PREVIEWING ==#

    #SELECTEVERY(3 ,0,2)
    #SELECTEVERY(3,0)
    #SELECTEVEN

    #SELECTEVEN or SELECTEVERY: Enable if you want a smooth VirtualDub preview if it is freezing periodically. DISABLE before saving as AVI!
    Quote Quote  
  11. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    What are you hoping this script will do for you?
    It looks suspiciously like the VHS script I mentioned earlier
    Quote Quote  
  12. Well I want it to stop saying AVIFileSource: couldn't open file "baseband artifect.wav" It's probably saying that something is wrong with that line? and what I'm trying to do with the script is to put the Effect. avs into virtualdub and can actually run and put it into an old vhs camera
    Quote Quote  
  13. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    This is the line its compaining about:
    Code:
    69 audnoise=wavsource("baseband artifect.wav").resampleaudio(48000).loop(600)
    DO you have this wav file in the same folder as effects.avs?
    Quote Quote  
  14. No I don't have the 69 in it but It has all the same words except for the 69 at the beginning. Oh wait, do you mean the code at line 69, then yeah that's the line its complaning about it
    Last edited by Angel3532; 6th May 2023 at 18:45.
    Quote Quote  
  15. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Yes but do you actually the wavfile it's trying to open?
    Quote Quote  
  16. Uhm I actually don't know If I have the wav file, how does the wav file look like? or how do you know if you have it?
    Last edited by Angel3532; 6th May 2023 at 19:05.
    Quote Quote  
  17. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    The same way you see things in Windows Explorer when you know the location of the folder -
    navigate to the folder and see what's there
    "VHS Effect" is a package of 8 or 9 files, you need the whole thing
    Quote Quote  
  18. No, I don't see any wav file anywhere in any folder
    Quote Quote  
  19. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Download the complete package from here:
    https://archive.org/details/avisynth-vhs-effect-v-13.3.3
    Quote Quote  
  20. Alright, I downloaded it, Im going to see if it works now
    Quote Quote  
  21. It doesn't say it anymore but now it says thisImage
    [Attachment 70821 - Click to enlarge]
    Quote Quote  
  22. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Angel3532 View Post
    Alright, I downloaded it, Im going to see if it works now
    I couldn't get it to work right off, which version of Avisynth do you have installed?
    Quote Quote  
  23. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Angel3532 View Post
    I have 2.60
    Do you have a 32 bit version of Windows?
    Read through this thread, I was helping somebody 3 years ago.
    https://forum.videohelp.com/threads/397802-VirtualDub-AVISynth-VHS-Effect-Script-Error
    Quote Quote  
  24. Alright, so I just read the whole thing?
    Quote Quote  
  25. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Angel3532 View Post
    Alright, so I just read the whole thing?
    Well that's up to you. But there are details in that thread of some stuff I had to do
    to get it to work ...
    For example, I advised installing the LSMASH package and editing the
    script to use it rather than Avisource
    Quote Quote  
  26. Oh alright, well I’m going to try it out, but If I have any problems, then I’ll let you know
    Quote Quote  
  27. Hi I'm back, uhm can you show me how you edit the script to use it rather than Avisource and installing the LSMASH package
    Quote Quote  
  28. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    You can edit it in notepad, it's just a text file. I'm going to look at it a little more
    tomorrow
    Quote Quote  
  29. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Here's the results showing the source file, script applied and the actual script.

    The script seems to work well under Avisynth 2.5 - 2.6, but has problems when run with Avisynth plus
    Are you running Windows 10 ?
    Image Attached Files
    Quote Quote  



Similar Threads

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