A quick fix is ββto add the -strict -2 option immediately before the last argument (exit name).
There are several different AAC encoders that FFmpeg can use. For better quality, use the libfdk_aac encoder. Unfortunately, the libfdk_aac license is not compatible with the GPL, which means that the GPL does not allow distributing executable files obtained from both libx264 (GPL) (used to encode H.264 video) and libfdk_aac (used to encode AAC audio). However, this can be a great choice if you yourself create FFmpeg. If your FFmpeg was created using libfdk_aac, you can use it with the -c:a libfdk_aac in front of the output file name.
FFmpeg also has an experimental built-in AAC encoder, which has poor quality at a given bitrate, but a compatible license. Since it is experimental, it is not used by default, but it can be used if you enabled the -strict experimental or -strict -2 option directly in front of the output file name to enable experimental codecs.
See the FFmpeg AAC Encoding Guide for more details.
source share