convert aac to mp3

some aacs refuse to import into itunes. no idea why. so here’s a jobbie that converts aac to mp3 so you can just drop them into itunes. first install faad2 and lame.

$ sudo port install lame
$ sudo port install faad2

then tweak the jobbie for your needs.

#!/usr/bin/ruby
Dir['*'].each do |filename|
  filename, ext = filename.split '.', 2
  convert = "faad -w -b3 \"#{filename}.m4a\" | lame -h -b 192 - \"#{filename}.mp3\""
  puts `#{convert}`
end

About this entry