[ffmpeg] Detect libavformat version for aac_adtstoasc

and print available features in verbose head
Based on https://github.com/ytdl-org/youtube-dl/pull/29581
This commit is contained in:
pukkandan 2021-11-04 03:10:49 +05:30
parent 832e9000c7
commit 8913ef74d7
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
3 changed files with 15 additions and 4 deletions

View file

@ -3350,7 +3350,11 @@ class YoutubeDL(object):
platform.architecture()[0],
platform_name()))
exe_versions = FFmpegPostProcessor.get_versions(self)
exe_versions, ffmpeg_features = FFmpegPostProcessor.get_versions_and_features(self)
ffmpeg_features = {key for key, val in ffmpeg_features.items() if val}
if ffmpeg_features:
exe_versions['ffmpeg'] += f' (%s)' % ','.join(ffmpeg_features)
exe_versions['rtmpdump'] = rtmpdump_version()
exe_versions['phantomjs'] = PhantomJSwrapper._version()
exe_str = ', '.join(