Re: [linux-audio-user] ardour and mp3?

From: Brian Dunn <job17and9@email-addr-hidden>
Date: Sun Feb 04 2007 - 00:17:30 EET

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
Received on Sun Feb 4 04:15:01 2007

This archive was generated by hypermail 2.1.8 : Sun Feb 04 2007 - 04:15:01 EET