View Full Version : WAVSource fails to load wav file
Zarxrax
17th December 2009, 23:31
I'm having trouble getting WAVSource to load wav files created by After Effects. Here is a sample: http://www.sendspace.com/file/epk8jy
Does anyone know what could be wrong? It loads properly in virtualdub, which makes me think there might be something wrong with avisynth.
MatLz
18th December 2009, 00:15
Hi!
In an hex editor, in the code begining, change the
FF FF FF into 9E 17 00 and save.
Avisynth will be able to open it.
Don't ask how or why...I'm a newbie.:D
wonkey_monkey
18th December 2009, 01:28
According to http://www.sonicspot.com/guide/wavefiles.html those four bytes should be filelength-8, and will be different for the actual clip (rather than this sample).
David
Zarxrax
18th December 2009, 01:42
Hmm, so you are saying After Effects outputs bad wav files?
Maybe it would be good if avisynth could still read them regardless.
MatLz
18th December 2009, 02:07
Hmm, so you are saying After Effects outputs bad wav files?It seems...Maybe it would be good if avisynth could still read them regardless.Of course, but in waiting that you can 'clean' them with a mux/demux or a 'direct wild demux' with mpc dsm convertissor.
tebasuna51
18th December 2009, 12:48
Hmm, so you are saying After Effects outputs bad wav files?
Maybe it would be good if avisynth could still read them regardless.
If you have NicAudio.dll v2.0.x you can use RaWavSource("test.wav", 1) instead WavSource() method.
The ignorelength parameter set to '1' force to ignore the size fields in wav header.
Edit: here the only wrong is the filesize field. RaWavSource always ignore this value then you can use RaWavSource("test.wav"), without parameters.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.