Log in

View Full Version : FAAC with avisynth


nessusing
21st June 2008, 12:36
So far i have been trying to use faac commandline to convert an audio file from a avs file.

I am able to do this inside MeGUI no problem, this is the actual command it generates:
faac.exe -b 64 "c:\dummy.aac" -P -X -R 44100 -B 16 -C 2 --mpeg-vers 4 -Freeware Advanced Audio Coder

First, I figure "-Freeware Advanced Audio Coder" isn't doing anything, so i replace it with my acutal avs file:
faac.exe -b 64 "c:\dummy.aac" -P -X -R 44100 -B 16 -C 2 --mpeg-vers 4 "c:\dummy.avs"

That only generate a 0byte dummy.aac file. Then i realized its probably because faac is not reading avs correctly. By reading more on the faac help, i noticed if i only use "-" as my input file, faac will encode directly from stdin. I think this is probably how MeGUI is feeding data from avs to faac using stdin. But my question is how to do this?

Thanks,

tebasuna51
21st June 2008, 15:05
Your syntax:
-P -X -R 44100 -B 16 -C 2
means: raw PCM input audio 16bit (swapBytes) 2ch 44100Hz
and you put a text file avs like input.

You can use:
wavi (http://sourceforge.net/projects/wavi-avi2wav/) "c:\dummy.avs" - | faac -b 64 -o "c:\dummy.aac" -

nessusing
21st June 2008, 20:40
Your syntax:
-P -X -R 44100 -B 16 -C 2
means: raw PCM input audio 16bit (swapBytes) 2ch 44100Hz
and you put a text file avs like input.

You can use:
wavi (http://sourceforge.net/projects/wavi-avi2wav/) "c:\dummy.avs" - | faac -b 64 -o "c:\dummy.aac" -

Thanks tebasuna51!! It works perfectly!

vlada
18th October 2009, 19:45
Hi, I'm having problem to export AAC from AviSynth. I'm trying to use SoundOut, but it doesn't work. The encoding starts, but hangs without any error after about 1/4 of the process. I tried versions 1.26 and 1.28, both behave equally. The same scripts work with lame or aften. Does anybody else have the same experience?

I'm looking for a solution which is opensource and doesn't need AviSynth installed (can use avisynth.dll directly). Something similar to what avs2yuv can do with video. Is wavi the right solution for me?