Put all your .m4a files (that you want to convert) into a folder and execute the following script from within this folder, make sure to make this script executable (chmod 777 m4a2mp3.sh)
#!/bin/sh
# name of this script: m4a2mp3.sh
# m4a to mp3
for i in *.m4a; do
faad "$i"
x=`echo "$i"|sed -e 's/.m4a/.wav/'`
y=`echo "$i"|sed -e 's/.m4a/.mp3/'`
lame -h -b 192 "$x" "$y"
rm "$x"
done
Dependencies
faad2 and lame
Tuesday, January 6, 2009
Subscribe to:
Post Comments (Atom)
1 comments:
Worked perfectly! Thanks! Have been struggling with other shell-scripts and that useless SoundConverter since last night!
Post a Comment