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
Updating from Rails 4.0 to 4.1 Gives SASS-Rails Railties Version Conflicts
Ruby -- Capitalize First Letter of Every Sentence in a Paragraph
Cancan Abilities in Separate File
How to Convert 1 to "First", 2 to "Second", and So On, in Ruby
How to Get Error Messages from Ruby Threads
Svg Files in Raphael, Can They Be Used
Ruby Spreadsheet Row Background Color
Validate Japanese Character in Active Record Callback
Bundle Install' Fails (Because of Git Protocol)
Controller Method #Show Getting Called
Routing Error No Route Matches [Get] "/Static_Pages/Home", Tutorial
Single Table Inheritance to Refer to a Child Class with Its Own Fields
Bundle Uses Wrong Ruby Version
Ruby 'Gets' That Works Over Multiple Lines
Ruby - Compare Two Enumerators Elegantly