diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-08 00:58:41 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-08 01:41:08 +0530 |
commit | 1b77b347d422ed70fd833a9f0327ea418ba4919c (patch) | |
tree | 35232d3f241acdc6ce794d37418e34adbcd37d8d /youtube_dlc/YoutubeDL.py | |
parent | 6c40e33c9e97bd32cece9b12e5e90ed66fa1fcb8 (diff) | |
download | hypervideo-pre-1b77b347d422ed70fd833a9f0327ea418ba4919c.tar.lz hypervideo-pre-1b77b347d422ed70fd833a9f0327ea418ba4919c.tar.xz hypervideo-pre-1b77b347d422ed70fd833a9f0327ea418ba4919c.zip |
Allow passing different arguments to different postprocessors
* Also deprecated --sponskrub-args
Closes: https://github.com/ytdl-org/youtube-dl/issues/27593
Eg: `--postprocessor-args "VideoConvertor:-c:v h264_nvenc -preset slow"`
Eg: `--postprocessor-args "SponsKrub:-include-selfpromo"`
For backward compatibility, `--postprocessor-args args` is equivalent to:
`--post-processor-args "sponskrub:" --post-processor-args "default:args"`
Diffstat (limited to 'youtube_dlc/YoutubeDL.py')
-rw-r--r-- | youtube_dlc/YoutubeDL.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 01d26cff2..fbd40cf73 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -333,8 +333,9 @@ class YoutubeDL(object): otherwise prefer ffmpeg. ffmpeg_location: Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory. - postprocessor_args: A list of additional command-line arguments for the - postprocessor. + postprocessor_args: A dictionary of postprocessor names (in lower case) and a list + of additional command-line arguments for the postprocessor. + Use 'default' as the name for arguments to passed to all PP. The following options are used by the Youtube extractor: youtube_include_dash_manifest: If True (default), DASH manifests and related |