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 163840 dest.aac
When i change the output file's name to dest.m4a, it doesn't play in iTunes.
Thanks!