From 1b77b347d422ed70fd833a9f0327ea418ba4919c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 8 Jan 2021 00:58:41 +0530 Subject: 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"` --- youtube_dlc/YoutubeDL.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'youtube_dlc/YoutubeDL.py') 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 -- cgit v1.2.3