Covert AACs to MP3s
A very simple bash script to use in Debian/Ubuntu to convert AAC (M4A) files to MP3. This will work only with unprotected DRM-less AACs. Great for use with your shiny GPS device that can play MP3s.
#!/bin/bash
#aac2mp3.sh
for i in *.m4a; do
ffmpeg -i "$i" -acodec libmp3lame -ac 2 -ab 256k "${i%m4a}mp3";
done
Note that you’ll need ffmpeg and libmp3lame installed, e.g.
apt-get install libmp3lame0
apt-get install ffmpeg