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 Dependenciesfaad2 and lame





12 comments:
Post a Comment