tacman1123
7th October 2008, 16:53
I downloaded http://simplythebest.net/sounds/WAV/sound_effects_WAV/sound_effect_WAV_files/fanfare.wav and want export it to ac3 using Soundout (actually, I'm doing a lot more, but this is the simplified case that hopefully will make debugging easier.)
Here's my code:
WavSource("downloads\fanfare.wav")
ac3_file="fanfare.ac3"
SoundOut(output = "ac3", filename=ac3_file, autoclose = true, wait=0,overwritefile="yes", showprogress=true, cbrrate = 384)
The error I'm getting is
Could not initialize encoder. Probably invalid input
I've also tried to open the wav file with DirectShowSource.
This seems to happen with all the wav files on this site. Are they really invalid? They seem to play okay in some players, in fact, this script will play the sound, but it won't export to ac3.
I'm trying to automate this process, so I'm hoping to use SoundOut rather than something with a GUI.
Thanks.
Tac
Here's my code:
WavSource("downloads\fanfare.wav")
ac3_file="fanfare.ac3"
SoundOut(output = "ac3", filename=ac3_file, autoclose = true, wait=0,overwritefile="yes", showprogress=true, cbrrate = 384)
The error I'm getting is
Could not initialize encoder. Probably invalid input
I've also tried to open the wav file with DirectShowSource.
This seems to happen with all the wav files on this site. Are they really invalid? They seem to play okay in some players, in fact, this script will play the sound, but it won't export to ac3.
I'm trying to automate this process, so I'm hoping to use SoundOut rather than something with a GUI.
Thanks.
Tac