aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/external.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-04 03:10:49 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-04 03:13:37 +0530
commit8913ef74d76d8e93e4aeaf9d2827ca950c17f8ce (patch)
tree8f4b9f61ad518da0a3aa920af96e8cc010ecb485 /yt_dlp/downloader/external.py
parent832e9000c71c5bbd97c93d21051044cf61a3b87f (diff)
downloadhypervideo-pre-8913ef74d76d8e93e4aeaf9d2827ca950c17f8ce.tar.lz
hypervideo-pre-8913ef74d76d8e93e4aeaf9d2827ca950c17f8ce.tar.xz
hypervideo-pre-8913ef74d76d8e93e4aeaf9d2827ca950c17f8ce.zip
[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
Diffstat (limited to 'yt_dlp/downloader/external.py')
-rw-r--r--yt_dlp/downloader/external.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py
index ce3370fb7..1efbb2fab 100644
--- a/yt_dlp/downloader/external.py
+++ b/yt_dlp/downloader/external.py
@@ -21,7 +21,6 @@ from ..utils import (
encodeArgument,
handle_youtubedl_headers,
check_executable,
- is_outdated_version,
Popen,
sanitize_open,
)
@@ -459,7 +458,7 @@ class FFmpegFD(ExternalFD):
args += ['-f', 'mpegts']
else:
args += ['-f', 'mp4']
- if (ffpp.basename == 'ffmpeg' and is_outdated_version(ffpp._versions['ffmpeg'], '3.2', False)) and (not info_dict.get('acodec') or info_dict['acodec'].split('.')[0] in ('aac', 'mp4a')):
+ if (ffpp.basename == 'ffmpeg' and ffpp._features.get('needs_adtstoasc')) and (not info_dict.get('acodec') or info_dict['acodec'].split('.')[0] in ('aac', 'mp4a')):
args += ['-bsf:a', 'aac_adtstoasc']
elif protocol == 'rtmp':
args += ['-f', 'flv']