[linux-audio-user] how to un-ipod some m4a songs.

paul wisehart listreader at lupulin.net
Tue Apr 11 10:21:09 EDT 2006


On Tue, Apr 11, 2006 at 07:49:59AM -0500, Brian Dunn wrote:
>
> #!/bin/bash
> for i in *.m4a; do
>        faad -o - "$i" | lame -m s - -o "${i%m4a}mp3"
> done


I don't know the options to faad or lame well enough to
comment directly, but I use these 2 scripts, and they work well.
Maybe something will present itself.


----script-1----

#!/bin/sh

### cvt_faad.sh ###

FAAD=/usr/bin/faad
for M4A in $(ls *.m4a) ; do
    faad $M4A
done

----script-2----

#!/bin/sh

### cvt_faad.sh ###

FAAD=/usr/bin/faad
for WAV in $(ls *.wav) ; do
    MP3=`basename $WAV .wav`
    MP3="${MP3}.mp3"
    
    CMD="lame -h -b 192 ${WAV} ${MP3}"
    echo "${CMD} ..."
    $CMD
done


-- 
paul    \  /
wisehart >/ 
   <//////$>
    |\|\|\




More information about the Linux-audio-user mailing list