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
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
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 -
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 -
Originally Posted by poisondeathrayICBM target coordinates:
26° 14' 10.16"N -- 80° 16' 0.91"W -
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 -
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" -
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}"
best regards,
random -
I have the exact same problem: Ok it was because i was trying to load a 32bit wav
Similar Threads
-
load miniDV in AVISynth
By magillagorilla in forum RestorationReplies: 10Last Post: 19th Oct 2011, 14:05 -
Which player S/W and H/W can play 12.3 Mbps 48 KHz 8 channels PCM wave?
By Bonie81 in forum AudioReplies: 3Last Post: 8th Jul 2011, 19:30 -
Can an Extensible PCM Wave be converted to an AC-3?
By takearushfan in forum AudioReplies: 6Last Post: 31st May 2010, 01:04 -
"Channel balance normalizer" for wave/PCM?
By Gew in forum AudioReplies: 2Last Post: 19th Apr 2009, 17:10 -
Load WMV2 in Avisynth
By AlanHK in forum Video ConversionReplies: 2Last Post: 10th Feb 2009, 00:58