How do I programmatically convert mp3 to an itunes-playable aac/m4a file?

Posted by kwork on Stack Overflow See other posts from Stack Overflow or by kwork
Published on 2008-09-16T07:35:16Z Indexed on 2010/03/25 19:13 UTC
Read the original article Hit count: 347

Filed under:
|
|
|
|

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!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about conversion