Re: ardour and mp3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux