Page 1 of 1

Batch process mp3 files

Posted: Thu Feb 17, 2011 4:38 pm
by somenick
Hi,

Have a bunch of mp3 files. For each, I'd want to add silence at the end, same time as length of track, and loop the playback for a number of times. The resulting audio file should be like this ::

(Track + silence)*(loop number)

Or sometimes, a different pattern.

(Track + Track + silence)*(loop number)

I read about Chains in Audacity, but the silence command is not available on the Chain menu. If this can't be automated with audacity, any other suggestions?

Any ideas? Thanks.

Re: Batch process mp3 files

Posted: Thu Feb 17, 2011 6:39 pm
by steve
You could do this using SoX http://sox.sourceforge.net/
It's a command line program so you would need to write a script to run it.

Re: Batch process mp3 files

Posted: Fri Feb 18, 2011 9:46 am
by somenick
Thanks, my problem is that the Windows SOX binaries do not support mp3 format. Makes things a bit more difficult now that I have to convert to wav or ogg first.

Re: Batch process mp3 files

Posted: Fri Feb 18, 2011 12:36 pm
by steve
If you're writing a script, you could use LAME as a command line program to convert the MP3s, then use SoX for the other operations (in the same script).

Re: Batch process mp3 files

Posted: Thu Feb 24, 2011 3:51 am
by somenick
the link for compiled lame.exe executable is wrong in the documentation here >> http://wiki.audacityteam.org/index.php? ... mmand_line

From the lame homepage, i got this:: http://www.rarewares.org/index.php

Re: Batch process mp3 files

Posted: Thu Feb 24, 2011 11:55 am
by steve
Thanks for the report somenick. I'll pass that on to the maintainer of that page.

For standalone Lame, the rarewares always has good up to date builds as well as experimental alpha versions. However the rarewares builds are not recommended for use in Audacity for compatibility reasons.
Rarewares also hosts one of my favourite graphical MP3 batch encoders "LameDropXPd"

Re: Batch process mp3 files

Posted: Thu Feb 24, 2011 12:03 pm
by bgravato
If you have the original files in wav format then you could use sox to batch process the files and add the silence and output to wav too.

Then you could use other app to batch convert the wav's to mp3. I'm not a windows user, but I'd be surprised if there wasn't some free graphical wav to mp3 encoder that works in batch mode...

Re: Batch process mp3 files

Posted: Thu Feb 24, 2011 8:09 pm
by Gale Andrews
somenick wrote:the link for compiled lame.exe executable is wrong in the documentation here >> http://wiki.audacityteam.org/index.php? ... mmand_line
Thanks. I've updated the link to provide a package for LAME 3.98.3.

The "Lame v3.98.3 for Audacity on Windows.exe" installer from http://lame.buanzo.com.ar/ does already include the command-line executable (lame.exe). You can use it in Audacity 1.3 if you export using (external program).

Next time we update the LAME installer we may as well include the USAGE.txt documentation for LAME then there will be no need for this separate package.



Gale

Re: Batch process mp3 files

Posted: Thu Feb 24, 2011 8:42 pm
by steve
Thanks Gale.
Gale Andrews wrote:Next time we update the LAME installer we may as well include the USAGE.txt documentation for LAME then there will be no need for this separate package.
That would be a good idea.
bgravato wrote: I'd be surprised if there wasn't some free graphical wav to mp3 encoder that works in batch mode...
As in my previous post, one of my favourites (free) is LameDropXPd