aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-08 00:58:41 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-08 01:41:08 +0530
commit1b77b347d422ed70fd833a9f0327ea418ba4919c (patch)
tree35232d3f241acdc6ce794d37418e34adbcd37d8d /youtube_dlc/options.py
parent6c40e33c9e97bd32cece9b12e5e90ed66fa1fcb8 (diff)
downloadhypervideo-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/options.py')
-rw-r--r--youtube_dlc/options.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index 3a7249ee6..b00db519a 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -970,9 +970,14 @@ def parseOpts(overrideArguments=None):
metavar='FORMAT', dest='recodevideo', default=None,
help='Re-encode the video into another format if re-encoding is necessary (currently supported: mp4|flv|ogg|webm|mkv|avi)')
postproc.add_option(
- '--postprocessor-args',
- dest='postprocessor_args', metavar='ARGS',
- help='Give these arguments to the postprocessor')
+ '--postprocessor-args', metavar='NAME:ARGS',
+ dest='postprocessor_args', action='append',
+ help=(
+ 'Give these arguments to the postprocessors. '
+ "Specify the postprocessor name and the arguments separated by a colon ':' "
+ 'to give the argument to only the specified postprocessor. Supported names are '
+ 'ExtractAudio, VideoRemuxer, VideoConvertor, EmbedSubtitle, Metadata, Merger, FixupStretched, FixupM4a, FixupM3u8, SubtitlesConvertor, SponSkrub and Default'
+ '. You can use this option multiple times to give different arguments to different postprocessors'))
postproc.add_option(
'-k', '--keep-video',
action='store_true', dest='keepvideo', default=False,
@@ -1089,7 +1094,7 @@ def parseOpts(overrideArguments=None):
help='Location of the sponskrub binary; either the path to the binary or its containing directory.')
sponskrub.add_option(
'--sponskrub-args', dest='sponskrub_args', metavar='ARGS',
- help='Give these arguments to sponskrub')
+ help=optparse.SUPPRESS_HELP)
extractor = optparse.OptionGroup(parser, 'Extractor Options')
extractor.add_option(