| 7 | | FFmpeg can support four AAC-LC encoders (`aac`, `libfaac`, `libfdk_aac`) and two AAC-HE encoders (`libaacplus` and `libfdk_aac`). The licenses of `libaacplus`, `libfaac`, and `libfdk_aac` are not compatible with the GPL, so the GPL does not permit distribution of binaries containing code licensed under these licenses when GPL-licensed code is also included. Therefore these encoders have been designated as "non-free", and you cannot download a pre-built ffmpeg that supports them. This can be resolved by [[CompilationGuide|compiling ffmpeg]] yourself. |
| | 7 | FFmpeg can support three AAC-LC encoders (`aac`, `libfaac`, `libfdk_aac`) and two AAC-HE encoders (`libaacplus` and `libfdk_aac`). The licenses of `libaacplus`, `libfaac`, and `libfdk_aac` are not compatible with the GPL, so the GPL does not permit distribution of binaries containing code licensed under these licenses when GPL-licensed code is also included. Therefore these encoders have been designated as "non-free", and you cannot download a pre-built ffmpeg that supports them. This can be resolved by [[CompilationGuide|compiling ffmpeg]] yourself. |
| 13 | | == Native FFmpeg AAC encoder == |
| 14 | | |
| 15 | | The native FFmpeg AAC encoder. This is currently the highest-quality AAC encoder available in FFmpeg and does not require an external library like the other AAC encoders described here. Results are usually as good or better than libfdk_aac at 128kbps but will occasionally sound worse below 96kbps. This is the default AAC encoder. The only drawback is that this encoder does not support the AAC-HE profile yet. |
| 16 | | |
| 17 | | ==== Example using `-b:a` ==== |
| 18 | | |
| 19 | | {{{ |
| 20 | | ffmpeg -i input.wav -b:a 160k output.m4a |
| 21 | | }}} |
| 22 | | |
| 23 | | '''Note:''' `-strict experimental` was previously required for this encoder, but is unneeded since December 2015. |
| 24 | | |
| 25 | | |
| 26 | | ==== Example using `-q:a` ==== |
| 27 | | |
| 28 | | {{{ |
| 29 | | ffmpeg -i input.wav -strict experimental -c:a aac -q:a 3 output.m4a |
| 30 | | }}} |
| 31 | | |
| 32 | | Effective range for `-q:a` is around 0.1-10. This VBR is experimental and likely to get even worse results than the CBR. |
| 33 | | |
| 34 | | |
| 35 | | ---- |
| 36 | | |
| | 123 | == Native FFmpeg AAC encoder == |
| | 124 | |
| | 125 | The native FFmpeg AAC encoder. This is currently the second highest-quality AAC encoder available in FFmpeg and does not require an external library like the other AAC encoders described here. This is the default AAC encoder. |
| | 126 | |
| | 127 | ==== Example using `-b:a` ==== |
| | 128 | |
| | 129 | {{{ |
| | 130 | ffmpeg -i input.wav -b:a 160k output.m4a |
| | 131 | }}} |
| | 132 | |
| | 133 | '''Note:''' `-strict experimental` was previously required for this encoder, but is unneeded since December 2015. |
| | 134 | |
| | 135 | |
| | 136 | ==== Example using `-q:a` ==== |
| | 137 | |
| | 138 | {{{ |
| | 139 | ffmpeg -i input.wav -c:a aac -q:a 2 output.m4a |
| | 140 | }}} |
| | 141 | |
| | 142 | Effective range for `-q:a` is around 0.1-2. This VBR is experimental and likely to get even worse results than the CBR. |
| | 143 | |
| | 144 | ---- |
| | 145 | |