VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Member
    Join Date
    Oct 2008
    Location
    Brazil
    Search Comp PM
    Hi everyone,

    I am trying to load a WAVE PCM file into AviSynth via WavSource but I'm getting the following error when I play it in mplayer/ffplay (just for testing purposes):


    AVIFileSource: couldn't open file 'file.wav' (test.avs, line 1)

    It's worth mentioning that there is no typo in the .avs file (file path is OK/valid).

    The script contains a single line:

    #### test.avs ####
    WavSource("file.wav")
    ##################

    File specs:

    General #0
    Complete name : file.wav
    Format : Wave
    Format/Family : RIFF
    File size : 44.9 MiB
    PlayTime : 4mn 26s
    Bit rate : 1411 Kbps

    Audio #0
    Codec : PCM
    Codec/Family : PCM
    Codec/Info : Microsoft PCM
    Bit rate : 1411 Kbps
    Channel(s) : 2 channels
    Sampling rate : 44 KHz
    Resolution : 16 bits

    On the other hand, the AVISource() command works just fine with DivX/XviD encoded files (even the ones muxed with PCM streams) and the AviSynth script can then be loaded successfully in mplayer/ffplay/VDub.

    The .wav file itself can be played normally in any player. The issue is only with WavSource().



    Any tip?

    Thanks in Advance,

    random
    Quote Quote  
  2. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Path is OK? There is no path in your script. Also, your error shows the command as AVIFileSource.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  3. Just guessing here:

    Is there somthing abnormal with your pcm wav file?

    Shouldn't each channel take 768kbps, so stereo should be 1536kbps; but yours shows 1411kbps?

    I think there are different variations, (e.g.like sowt) that do not open with WavSource(). Maybe gspot can provide additional information?

    I've found that some uncommon audio samples disguised as "wav" can open with DirectShowSource(), if you enable "uncompressed" in the ffdshow audio configuration (set to 16-bit)

    You could also try the uninstall/reinstall avisynth trick which seems to solve a lot of avisynth problems
    Quote Quote  
  4. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    You could also try the uninstall/reinstall avisynth trick which seems to solve a lot of avisynth problems
    You could also try updating to the latest 2.58 Avisynth (Aug 8, 2008). This fixed some issues I had with cropping and resizing.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  5. Try AudioDub() with a BlankClip(). I don't think AviSynth can frameserve an audio only script since there are no frames in audio.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  6. Member
    Join Date
    Dec 2006
    Location
    Here,where do you think?
    Search Comp PM
    WavSource("C:\file.wav")

    Not sure why a one line simple script like this wouldn't work..As SLK001 stated he's using AVIFileSource and there's no path in the OPs script.......
    works fine for me with Media Player Classic
    " Who needs Google, my wife knows everything"
    Quote Quote  
  7. Member
    Join Date
    Oct 2008
    Location
    Brazil
    Search Comp PM
    Hello,

    Thank you all for promptly replying to my post.

    All right. Sorted it out. The problem was that some filename extension associations with RIFF handlers were missing in the Windows registry.

    This is what I've added to the registry:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\Extensions]
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\Extensions\AU]
    @="{00020003-0000-0000-C000-000000000046}"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\Extensions\AVI]
    @="{00020000-0000-0000-C000-000000000046}"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\Extensions\AVS]
    @="{E6D6B700-124D-11D4-86F3-DB80AFD98778}"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\Extensions\WAV]
    @="{00020003-0000-0000-C000-000000000046}"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\RIFFHandlers]
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\RIFFHandlers\AVI]
    @="{00020000-0000-0000-C000-000000000046}"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AVIFile\RIFFHandlers\WAVE]
    @="{00020003-0000-0000-C000-000000000046}"
    It's all working fine now and I will be able to use BeHappy



    best regards,

    random
    Quote Quote  
  8. Member
    Join Date
    Mar 2006
    Location
    Denmark
    Search Comp PM
    I have the exact same problem: Ok it was because i was trying to load a 32bit wav
    Quote Quote  



Similar Threads

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