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

前端 未结 7 1584
无人及你
无人及你 2021-01-06 01:38

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

相关标签:
7条回答
  • 2021-01-06 02:09

    There are only three free AAC encoders that I know of that are available through a commandline interface:

    1. FAAC (LPGL), which is honestly pretty bad (the quality is going to be significantly worse than LAME at the same bitrate). Its fine though if you're willing to go for higher bitrates (>>128kbps) and need AAC for compatibility, not quality reasons. The most common way to use FAAC is through ffmpeg, as libfaac.

    2. Nero AAC, the commandline encoder for which is available for free under Windows and Linux, but only for noncommercial use (and is correspondingly closed-source).

    3. ffmpeg's AAC encoder, which is still under development and while I believe it does technically work, it is not at all stable or good or even fast, since its still in the initial stages. Its also not available in trunk, as far as I know.

    (Edit: Seems iTunes might have one too, I suspect its terms of use are similar to Nero's. AFAIK its quality is comparable.)

    0 讨论(0)
提交回复
热议问题