diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-24 03:15:44 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-24 04:24:12 +0530 |
commit | 330690a214e5a9b6bebcfe9f7e46ebd8ffe77f03 (patch) | |
tree | 73c0c44bf711a02e23f86ff6c1001fbcb0b6588f /yt_dlp/options.py | |
parent | 91d4b32bb621a6fe1e426ebb2fecca5ef0e46f52 (diff) | |
download | hypervideo-pre-330690a214e5a9b6bebcfe9f7e46ebd8ffe77f03.tar.lz hypervideo-pre-330690a214e5a9b6bebcfe9f7e46ebd8ffe77f03.tar.xz hypervideo-pre-330690a214e5a9b6bebcfe9f7e46ebd8ffe77f03.zip |
[downloader/ffmpeg] Allow passing custom arguments before -i
Closes #686
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 56ab001be..6bad37d19 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -742,12 +742,13 @@ def parseOpts(overrideArguments=None): metavar='NAME:ARGS', dest='external_downloader_args', default={}, type='str', action='callback', callback=_dict_from_options_callback, callback_kwargs={ - 'allowed_keys': '|'.join(list_external_downloaders()), + 'allowed_keys': r'ffmpeg_[io]\d*|%s' % '|'.join(list_external_downloaders()), 'default_key': 'default', 'process': compat_shlex_split }, help=( 'Give these arguments to the external downloader. ' 'Specify the downloader name and the arguments separated by a colon ":". ' + 'For ffmpeg, arguments can be passed to different positions using the same syntax as --postprocessor-args. ' 'You can use this option multiple times to give different arguments to different downloaders ' '(Alias: --external-downloader-args)')) |