HydrogenAudio

Lossy Audio Compression => AAC => AAC - General => Topic started by: wads on 2005-12-14 16:18:52

Title: WAV encoding
Post by: wads on 2005-12-14 16:18:52
Hi,

Does anyone know of an sdk I can use to create an 30 second AAC clip from a full length WAV audio file?

Ideally I'd like to encode from WAV directly to an AAC clip.  However my second best option would be to create a WAV clip from a WAV audio but I can't even find anything to do this.

I have contacted codingtechnologies.com directly and even they don't seem to be able to create AAC clips directly from WAVs.

Any help much appreciated.

Thanks
Wads
Title: WAV encoding
Post by: dimzon on 2005-12-14 16:28:02
Quote
Hi,

Does anyone know of an sdk I can use to create an 30 second AAC clip from a full length WAV audio file?
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=350165")

look @ enc_aacplus.exe [a href="http://workspaces.gotdotnet.com/behappy]here[/url] - it will use enc_aac.dll from winamp using NSV SDK and it's OpenSource
Title: WAV encoding
Post by: Synthetic Soul on 2005-12-14 17:02:01
You could use shtntool (http://www.etree.org/shnutils/shntool/) to get a 30 second clip and then pass that to an AAC encoder.

I'm not sure though whether you can just get a 30 second clip, or whether you have to split the file into multiple 30 second parts and then just use the part you want (part 1 no doubt).

Check out the docs here (http://www.etree.org/shnutils/shntool/doc/TUTORIAL).

Edit: I've seen a couple of posts like this.  It seems to me as though a useful app would be something that takes a wave file, a period, and a command.  It then reads a section of the wave file and pipes it to the command, e.g.:

Code: [Select]
CLIPIT.EXE "C:\My Music\My Wave.wav" 0-29 LAME.EXE -V2 - myclip.mp3

(The above would take the first 30 seconds of "My Wave.wav" and pipe it to LAME to create "myclip.mp3")

Maybe such an app exists already...

Edit 2: I also thought that I'd seen an encoder where you could specify the length of file required.  Was that nyoachi's APE/CUE LAME or something else?
Title: WAV encoding
Post by: Synthetic Soul on 2005-12-16 14:28:45
Some new thoughts.

1. foobar 0.9 creates "previews".  If you're not talking CLI then you could use foobar to mass convert waves to AAC clips.

2.  I mentioned a theoretical app called ClipIt.  ACDIR will do that, pretty much.  If you have a cuesheet like:

Code: [Select]
FILE "mywave.wav" WAVE
 TRACK 01 AUDIO
   INDEX 01 00:00:00
 TRACK 02 AUDIO
   INDEX 01 00:30:00

... you could use:

Code: [Select]
ACDIR --track 1 --pipe "NAAC - myaac.aac" mywave.cue

With regard to multiple filenames (I have no idea how or what you are trying to achieve) you could use SED to create a cuesheet for each file before running ACDIR using the -o switch to create a unique filename.  Alternatively just COPY the wave to "mywave.wav" so that you are always processing a file called "mywave.wav" (and the cuesheet stays the same).
Title: WAV encoding
Post by: optimus on 2005-12-17 04:09:36
Quote
Hi,

Does anyone know of an sdk I can use to create an 30 second AAC clip from a full length WAV audio file?

Ideally I'd like to encode from WAV directly to an AAC clip.  However my second best option would be to create a WAV clip from a WAV audio but I can't even find anything to do this.

I have contacted codingtechnologies.com directly and even they don't seem to be able to create AAC clips directly from WAVs.

Any help much appreciated.

Thanks
Wads
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=350165")

It's very simple to work this out with [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=36870]MediaCoder[/url].
Follow these steps:
(1) download, install and start MediaCoder
(2) drop your wav file into the list, choose AAC+ as audio encoder, and choose an output folder where the result file will be put
(3) click Settings button, go Overall -> Video Settings, and enter the start time (in second) at "Seek to Position", and enter the length (also in second) you want to encode at "End Position".

(http://www.rarewares.org/mediacoder/screenshots/howto1.png)

(4) click Start and that's all