Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: WAV encoding (Read 3408 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WAV encoding

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

WAV encoding

Reply #1
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]

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

WAV encoding

Reply #2
You could use shtntool 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.

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?
I'm on a horse.

WAV encoding

Reply #3
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).
I'm on a horse.

WAV encoding

Reply #4
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]

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".



(4) click Start and that's all