########################################################################################## HLS-23: On recent Ubuntu install AAC codec is marked as experimental ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Won't Fix (2021-05-26 17:14:22) Project: HLS Stream Creator (HLS) Reported By: btasker Assigned To: btasker Components: - Transcoding Affected Versions: - 1.0 Targeted for fix in version: - VNEXT Time Estimate: 60 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== Commit 0796feb changed the default audio codec from libfdk_aac to aac However on Ubuntu Xenial, the repo supplied ffmpeg reports -- BEGIN SNIPPET -- [aac @ 0xa40a60] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it. -- END SNIPPET -- This can easily be bypassed by doing -- BEGIN SNIPPET -- FFMPEG_FLAGS='-strict -2' export FFMPEG_FLAGS -- END SNIPPET -- Before running the script, but in an ideal world you shouldn't have to. Version of ffmpeg is -- BEGIN SNIPPET -- 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 -- END SNIPPET -- Need to implement a check so that libfdk_aac can be used by default if needed. ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2017-04-29 10:33:53 btasker ----------------------------------------------------------------------------------------- Looking at the ffmpeg wiki, it seems libfdk_aac is considered better quality. However, it is non-free, so may not be included in some versions (though this probably doesn't affect most repo packages) - https://trac.ffmpeg.org/wiki/Encode/AAC 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 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: HLS-Stream-Creator Commit: ee8d39f4ee27c190ab4a08db9e8badb683e5603b Author: B Tasker