[linux-audio-user] ardour and mp3?

Brian Dunn job17and9 at sbcglobal.net
Sat Feb 3 17:17:30 EST 2007


Matt Price wrote:
> hi,
>
> just starting to use ardour2 for production (thanks everyone for the
> help) and running into a little frustration with the mp3 files from my
> recorder.  ardour of course doesn't import from mp3; I can, I suppose,
> convert the files to mp3 one at a time when I want to, but I wonder if
> there's a more fluid way of e.g. converting files when they're uploaded,
> or at least converting all files in a particular folder or something.
> are there other people out there who have to deal with a similar
> situation?
>
> thanks,
>
> matt
>
>
>   
hmmm... bash script for loop aught to do it. something like

#!/bin/bash
for i in `ls *.mp3`; do
    $CONVERTER_PROGRAM $i ${i/mp3/wav}
done

where $CONVERTER_PROGRAM is something that takes two arguments, an mp3 
file and a wave file name.  this could be done with mplayer like this i 
think.

mplayer -ao pcm:${i/mp3/wav} $i

here is more info on bash scripting.
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html
http://tldp.org/LDP/abs/html/parameter-substitution.html

/brian



More information about the Linux-audio-user mailing list