View Full Version : Audio Output
puddy
25th September 2006, 05:08
Hope this isn't a foolish question, I've searched...
I'm using an avs script that contains many trim statements to do on-the-fly editing on my huffy encoded video camera caps. I'm encoding using HCencoder v0.18.
HCenc doesn't do audio at all. So, is there a way to have avisynth create a wav file of the audio AFTER the trim statements so that I can go back and mux them together later?
What am I missing here? I can't find an avisynth statement that lets me save audio to a file. Is this possible? If not, any ideas on better solutions?
Thanks!
puddy
foxyshadis
25th September 2006, 06:03
Can you just open in virtualdub, which does have a save wav option?
puddy
25th September 2006, 13:59
Thanks, I'm trying this now. Lately I've not had good luck with VirtualDub (v1.6.16). AVI's that are in perfect sync, then edited with vDub, then encoded with HEenc begin to show audio / video sync problems.
I'm testing the trim function of avisynth (instead of doing it in vDub and having to create temporary files) to see if it fixes the problem. So, having removed vDub from my procedure I wanted to simply use avisynth to output the audio to a wav file for later processing and then muxing with the HCenc video output.
Is there no functionality in avisynth to write out the audio to a simple wav file? I did find this thing called avs2wav, but the wav output it produced won't open and doesn't appear to be a valid wav file.
avs2wav:
http://forum.doom9.org/showthread.php?t=70882
There seems to be no central place to get the newest version (or best version) of this utility. The one I have is dated 07/25/04 and is 9,728 bytes (MD5: 596105891352E47AF7D84EA58D64589C).
Thanks,
puddy
foxyshadis
25th September 2006, 19:18
Well, what I meant was to open the avs in virtualdub, not the original video. So all you have to do is open, save wav, close, and then open HC.
Oh, and you might need to tack ConvertAudioTo16Bit() on the end if it's a newer version of avisynth, that may be why avs2wav isn't working.
stickboy
25th September 2006, 20:00
Is there no functionality in avisynth to write out the audio to a simple wav file? I did find this thing called avs2wav, but the wav output it produced won't open and doesn't appear to be a valid wav file.AviSynth is a frame-server. In general it doesn't write files (either WAV or AVI); it doesn't make sense.
puddy
26th September 2006, 03:31
Got it, thanks guys. Looks like just loading the avs and saving a wav out of vDub is a pretty easy way to do it.
Mug Funky
26th September 2006, 09:03
btw, avs2wav works with current avs and IEEE float (though quenc's mp2 certainly doesn't... that's for another thread).
try this batch file for quick results in ac3:
:doit
if "%~1"=="" goto end
"C:\Program Files\AviSynth 2.5\plugins\avs2wav.exe" "%~1" - | "C:\Program Files\AviSynth 2.5\plugins\aften\aften.exe" -b 224 -s 1 -m 1 -w 45 -dnorm 27 - "%~dpn1.aftenenc.ac3"
shift
goto doit
:end
rem pause
you'll need aften for this (which i highly recommend...). just copypasta the code above into a .bat file.
[edit]
of course, if avs2wav isn't working you're SOL...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.