I have an Android app using FAAC to convert raw PCM into raw AAC, but now I don\'t know how it can be packed into m4a container.
I\'ve searched on the net and found
NOTE: OOPS REALLY SORRY, DIDNT SEE YOU NEEDED AN ANDROID ENVIRONEMENT ONLY SOLUTION. HOWEVER I KEEP MY ANSWER SINCE IT MIGHT BE HELPFUL FOR SOME OTHERS.
I had same problem, not android related but same Raw AAC problem, and i found the answer on this forum. Now my Rockboxed portable player can read AAC audio tracks extracted from FLV YouTube videos. However i don't know the hell how to batch convert. I'm not that much command line saavy.
in ffmpeg: ffmpeg -i input.aac -codec: copy output.m4a
in MP4Box: MP4Box -add input.aac#audio output.m4a
PS: you'll probably have to rename your files, ie. MJBeatiT.aac rather than Michael Jackson - Beat It (remix2013).aac