Commit 0796feb changed the default audio codec from libfdk_aac to aac
However on Ubuntu Xenial, the repo supplied ffmpeg reports
[aac @ 0xa40a60] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
This can easily be bypassed by doing
FFMPEG_FLAGS='-strict -2'
export FFMPEG_FLAGS
Before running the script, but in an ideal world you shouldn't have to.
Version of ffmpeg is
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
Need to implement a check so that libfdk_aac can be used by default if needed.
Activity
2017-04-29 10:33:53
So, I guess we probably want to test for the availability of either and go with FDK if it's there. I'm not sure though whether ffmpeg will actually tell you a codec is present but experimental.
It might be just as simple to update the README to contain information on that specific error :)
2017-04-29 11:54:51
Webhook User-Agent
View Commit
2017-04-29 11:58:26
If it wasn't for the fact libfdk_aac simply won't be in some builds (and it seems that includes the repo provided Ubuntu packages) I'd revert the commit, but aac does have a higher chance of actually being there.
I think the best route forward will probably be to figure out a way to check if the codec is present but experimental, print a warning and then set the experimental flag. As part of that, if libfdk_aac is present, we should use it.
2019-11-23 12:09:20
2019-11-23 12:09:20
2021-05-26 17:14:22
2021-05-26 17:14:22
2021-05-26 17:14:22
2021-05-26 17:14:26