View Full Version : How to use Nero AAC command line to encode directshowsource audio?
jonnysun
11th March 2008, 04:35
I tried to use this command line
neroAacEnc.exe -lc -cbr 96000 -if "test.avs" -of "audio1.m4a"
but it obviously won't let me do it. Is threre anyway that can use only command line to convert from AVS to m4a? (either convert to wav and then m4a is acceptable)
Thanks to whoever can help me.
martino
11th March 2008, 09:57
neroAacEnc accepts only wave input, however you can use BePipe to pipe audio from an avs script into the encoder (I think it's the same as what MeGUI does).
jonnysun
11th March 2008, 12:29
well, I did some search, but I couldn't get BePipe.exe. How can I get that and also the documentation?
Southstorm
11th March 2008, 12:38
Does this help?
http://speeddemosarchive.com/kb/images/e/e3/BePipe.zip
jonnysun
11th March 2008, 12:54
Sorry, I still don't know how to insert avs into bepipe.
anyone can help me out?
Southstorm
11th March 2008, 19:18
Have you checked out BeHappy? It might be what you're looking for.
http://forum.doom9.org/showthread.php?t=104686&highlight=behappy
tebasuna51
11th March 2008, 21:10
Sorry, I still don't know how to insert avs into bepipe.
anyone can help me out?
You can use:
Bepipe --script "DirectShowSource(^Your_file^)" | neroAacEnc.exe -lc -cbr 96000 -if - -of "audio1.m4a"
Note the use of ^ to replace " inside AviSynth functions.
For more complex input you can use the Import() function from AviSynth and an avs file:
Bepipe --script "Import(^test.avs^)" | neroAacEnc.exe -lc -cbr 96000 -if - -of "audio1.m4a"
Also you can use Wavi (http://sourceforge.net/projects/wavi-avi2wav/) instead Bepipe (don't need .NET FrameWork installed)
Wavi test.avs - | neroAacEnc.exe -lc -cbr 96000 -if - -of "audio1.m4a"
jonnysun
11th March 2008, 22:20
Thank you so much. You got the point!
I'm gonna try it now. Thanks again tebasuna51.
----------------------------------------------
Done successfully
Thanks to Southstorm & tebasuna51
ViciousXUSMC
27th January 2009, 08:43
You can use:
Bepipe --script "DirectShowSource(^Your_file^)" | neroAacEnc.exe -lc -cbr 96000 -if - -of "audio1.m4a"
Note the use of ^ to replace " inside AviSynth functions.
Oh wow I just should have googled this in the first place, I spent an hour using a script just like that but without the ^ ^
Whats up with that? If somebody could be kind enough to explain the logic in needing ^ ^ instead of leaving it blank or using " "
Leak
27th January 2009, 18:20
Whats up with that? If somebody could be kind enough to explain the logic in needing ^ ^ instead of leaving it blank or using " "
The "s here are used to delimit your script on the command line, i.e. the one command line argument after the "--script" switch is the AviSynth script used.
Exactly how is the shell (i.e. CMD.exe) or Bepipe.exe supposed to know where that argument ends if you nest one set of quotes into another? So Bepipe takes your script and simply replaces the ^s with "s to get a legal AviSynth script.
Think about it - if you had written
Bepipe --script "DirectShowSource("Your_file")"
Bepipe would have gotten 4 parameters: "--script", "DirectShowSource(", "Your_file" and ")", which would have only caused an error...
np: Syntaks - Sunset Rust (Intelligent Toys 4)
ViciousXUSMC
28th January 2009, 06:35
The "s here are used to delimit your script on the command line, i.e. the one command line argument after the "--script" switch is the AviSynth script used.
Exactly how is the shell (i.e. CMD.exe) or Bepipe.exe supposed to know where that argument ends if you nest one set of quotes into another? So Bepipe takes your script and simply replaces the ^s with "s to get a legal AviSynth script.
Think about it - if you had written
Bepipe --script "DirectShowSource("Your_file")"
Bepipe would have gotten 4 parameters: "--script", "DirectShowSource(", "Your_file" and ")", which would have only caused an error...
np: Syntaks - Sunset Rust (Intelligent Toys 4)
Good enough for me, just the first time I have seen it. Usually jsut leaving it blank without " would work I thought but this seems to be a special case.
So I tried this:
Bebipe --script "DirectShowSource(file.avs)"
Suppose I will just have to remember that this is a unique situation. This was just an experiment for me anyways as I would normally go from a .wav file directly into neroaacenc, the reason I had to use bepipe was so it could read a .mp3 and see what happened to the quality of a mp3 file getting coded into AAC.
Kinda on topic, like I just stated I go directly into neroaacenc but I got besweet the other day and was looking at some of its features that is uses in addition to nero.
Anything being added to make it worth using/learning behappy instead of just nero? (eg: azid)
tebasuna51
28th January 2009, 12:48
Kinda on topic, like I just stated I go directly into neroaacenc but I got besweet the other day and was looking at some of its features that is uses in addition to nero.
Anything being added to make it worth using/learning behappy instead of just nero? (eg: azid)
BeSweet is a old soft with some limits than can't be updated because the code is not free.
BeHappy is only a GUI to help you make the avs, adding some DSP functions, and the command line to convert the audio. You always can obtain the same result with Bepipe, Wavi or SoundOut.
The azid ac3 decoder used with BeSweet are replaced with NicAc3Source decoder in AviSynth, both are based at same free decoder library (liba52) and have equivalent result. The only difference maybe some details and the update possibility.
BiOSsCZ
28th March 2017, 12:03
Sorry, I still don't know how to insert avs into bepipe.
output? wav.
ffmpeg -i input -acodec pcm_s32le output.wav
have a nothing output :(
tebasuna51
28th March 2017, 15:26
Sorry, I still don't know how to insert avs into bepipe.
output? wav.
If you want output wav redirect the output to a wav file instead a encoder:
Bepipe --script "Import(^D:\tmp\test.avs^)" > output.wav
ffmpeg -i input -acodec pcm_s32le output.wav
have a nothing output :(
What is 'input'?
BiOSsCZ
29th March 2017, 09:22
Bepipe --script "Import(^D:\tmp\test.avs^)" > output.wav
Nice! Now is output OKa.
Looks like easy.
I'm lama. :stupid:
Thank you. :o
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.