How do I programmatically convert mp3 to an itunes-playable aac/m4a file?
- by kwork
I've been looking for a way to convert an mp3 to aac programmatically or via the command line with no luck. Ideally, I'd have a snippet of code that I could call from my rails app that converts an mp3 to an aac. I installed ffmpeg and libfaac and was able to create an aac file with the following command:
ffmpeg -i test.mp3 -acodec libfaac -ab…