Log in

View Full Version : Encoding in Nero AAC.


eiv
14th February 2009, 12:15
Hey everyone. Well, I have a few questions about audio encoding. I have an video file (with audio, obviously) in the following container; *.MP4. In other words, it's an anime RAW with the audio.

I basically, just want to "demux" the audio from the video. I don't really care if I delete the audio of the *.MP4 because when encoding it's removed. I just want to have an audio track (in Nero AAC) separated from the video file (the audio can remain in the video, doesn't matter). I've tried MP4Box, and WAVI. Wavi seems to be very easy to work with, but I really don't get it..

I did an *.AVS script to drag-in to the WAVI executable {wavi.avs}; (This code was copied from here (http://forum.doom9.org/showthread.php?t=144728).)
wavi "D:\Documents and Settings\jpviegas\Desktop\topaz\Aplicações\WAVI\[tpz]_Tengen_Toppa_Gurren-Lagann_01.avs" - | neroAacEnc -b 256 -mpeg-vers 4 -o "D:\Documents and Settings\jpviegas\Desktop\topaz\Aplicações\WAVI\Audio_Test.aac" -
And the [tpz]_Tengen_Toppa_Gurren-Lagann_01.avs;
DirectShowSource("D:\Documents and Settings\jpviegas\Desktop\datayo\Tengen_Toppa_Gurren-Lagann_01.mp4")

The audio is encoded to one of the .avs file (wavi.avs). Thank's in advance. I could use and Audio GUI but now, I really want to do it with WAVI. Hehe...

:stupid:

tebasuna51
14th February 2009, 13:54
To extract from mp4 using Mp4Box:
Mp4Box -info input.mp4 (to know the contained tracks)

Mp4Box -raw 1: input.mp4 (to extract track 1 out of container)
(.aac if AAC)
Mp4Box -single 1: input.mp4 (to extract track 1 in mp4 container)
(can be renamed to m4a if AAC)

To decode any audio supported by DirectShow and after recode to m4a (AAC) with Wavi and NeroAacEnc you can use:
wavi "D:\Documents and Settings\jpviegas\Desktop\topaz\Aplicações\WAVI\[tpz]_Tengen_Toppa_Gurren-Lagann_01.avs" - | neroAacEnc -q 0.33 -ignorelength -if - -of "D:\Documents and Settings\jpviegas\Desktop\topaz\Aplicações\WAVI\Audio_Test.m4a"
If you want CBR encode (not recommended) use -br 256000 instead -q parameter.
NeroAacEnc always encode AAC in mp4 container (m4a)

You can't use the parameters for Faac:
-b 256 -mpeg-vers 4 -o ...

eiv
14th February 2009, 22:47
I tried in MP4Box and WAVI. I still don't get it. Anyway, I found a MP4Box GUI and I'm using it. It's simple and with a friendly-interface. Thank's all.

tebasuna51
15th February 2009, 04:10
I was thinking you need a command line to automate the process.

You can use Yamb (Yet Another MP4Box UI)

eiv
15th February 2009, 15:33
That was the GUI I was using. Very useful. Thank's for the help.