How to Programmatically Convert Mp3 to an Itunes-Playable Aac/M4A File

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

FFmpeg provides AAC encoding facilities if you've compiled them in. If you are using Windows you can grab full binaries from here

ffmpeg -i source.mp3 -acodec libfaac -ab 128k dest.aac

I'm not sure how you would call this from ruby.

Also, be sure to set the bitrate appropriately.

What is the easiest way to wrap a raw .aac file into a .m4a container

mp4box if you want a dedicated tool; its probably the easiest way to go. ffmpeg can do the job too.

AVAudioPlayer M4A file converted from AIFF produces different latency than M4A converted from ADTS AAC

Found the issue - it's the conversion itself.

When converting to adts aac the converted audio has a prefix of about 40ms of silence...
Weird...

How to find size of a MP3 file in iPhone programmatically

If the file is not within directory, app directory, yo do not have access to file, therefore are unable to perform any operation to calculate the size. This is due to iOS sandbox behavior.



Related Topics



Leave a reply



Submit