Page 1 of 1

Batch sample conversion

Posted: Sat Nov 24, 2012 10:32 pm
by Jay200MPH
I have quite a lot of samples of various drum machines. These are in a big, nested directory structure organized by machine, and are all in wav format. Some of them are recorded as 24 bit stereo for absolutely no valid reason.

What I'd like to do is run some kind of script that goes through the entire structure, picks out every sample and does this:

If: sample is 8-bit or 16-bit mono, don't touch it.
If: sample is 8-bit or 16-bit stereo, downmix to mono (or separate into L and R channels) but don't touch bitrate.
If: sample is >16 bits, convert to 16-bit (preferably using some nice shaping algorithm) and downmix to mono if necessary.

Any ideas how to do this? I can use Windows or Linux. Don't need anything fancy, some sort of command-line batch script would work fine.

Re: Batch sample conversion

Posted: Sun Nov 25, 2012 10:36 pm
by pbhs
Maybe the answer can be "ffmpeg" http://ffmpeg.org/
or maybe "Sox". http://sox.sourceforge.net/

Re: Batch sample conversion

Posted: Thu Nov 29, 2012 3:51 pm
by nogginj
definitely sox + maybe soxi (to determine bit).

Re: Batch sample conversion

Posted: Sat Jan 05, 2013 1:23 am
by mute
I've been using Awave for 10+ years...at least.

http://www.fmjsoft.com/awframe.html

If you use Adobe Audition (or even CEP..if anyone still does), it has a really good batch/processing system that is incredibly easy to setup.