first of all you have a look at this document: Dolby Digital: ac3 Dolby Digital Plus: eac3 MP2: libtwolame, mp2 Windows Media Audio 1: wmav1 Windows Media Audio 2: wmav2 LC-AAC: libfdk_aac, libfaac, aac, libvo_aacenc HE-AAC: libfdk_aac, libaacplus Vorbis: libvorbis, vorbis MP3: libmp3lame, libshine Opus: libopus from the above reading it will be clear to you that in order to encode audio in HE-AAC/ HE-AAC-V2 you have to use libfdk_aac or libaacplus. I will explain how you can do it using libfdk_aac: first make sure you configure ffmpeg along with following options: --enable-libfdk_aac --enable-nonfree now build ffmpeg and try to run the following command and see if it works: $ ffmpeg -i -vcodec copy -acodec libfdk_aac -profile:a aac_he if this works it means libav is linked with libfdk_aac. now in order to use it in the code: open the encoder using the following instructions:
Here we go, you have libfdk_aac encoder open ! The profiles which you can use are as given in this source |
|