diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-20 21:37:40 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-21 01:36:10 +0530 |
commit | 43820c0370acaf8306880f235364535c1c92c157 (patch) | |
tree | 05a3f4c414381a184accba0c8fde8a2090fd746d /youtube_dlc/options.py | |
parent | 5c610515c90d090b66aa3d86be86fb06dff8457f (diff) | |
download | hypervideo-pre-43820c0370acaf8306880f235364535c1c92c157.tar.lz hypervideo-pre-43820c0370acaf8306880f235364535c1c92c157.tar.xz hypervideo-pre-43820c0370acaf8306880f235364535c1c92c157.zip |
Improved passing of multiple postprocessor-args
* Added `PP+exe:args` syntax
If `PP+exe:args` is specifically given, only it used.
Otherwise, `PP:args` and `exe:args` are combined.
If none of the `PP`, `exe` or `PP+exe` args are given, `default` is used
`Default` is purposely left undocumented since it exists only for backward compatibility
* Also added proper handling of args in `EmbedThumbnail`
Related: https://github.com/ytdl-org/youtube-dl/pull/27723
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r-- | youtube_dlc/options.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py index 96c6faae9..f1fc9adb2 100644 --- a/youtube_dlc/options.py +++ b/youtube_dlc/options.py @@ -975,15 +975,18 @@ 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', metavar='NAME:ARGS', + '--postprocessor-args', '--ppa', 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, EmbedThumbnail, XAttrMetadata, SponSkrub and Default. ' - 'You can use this option multiple times to give different arguments to different postprocessors')) + 'Specify the postprocessor/executable name and the arguments separated by a colon ":" ' + 'to give the argument to only the specified postprocessor/executable. Supported postprocessors are: ' + 'SponSkrub, ExtractAudio, VideoRemuxer, VideoConvertor, EmbedSubtitle, Metadata, Merger, ' + 'FixupStretched, FixupM4a, FixupM3u8, SubtitlesConvertor and EmbedThumbnail. ' + 'The supported executables are: SponSkrub, FFmpeg, FFprobe, avconf, avprobe and AtomicParsley. ' + 'You can use this option multiple times to give different arguments to different postprocessors. ' + 'You can also specify "PP+EXE:ARGS" to give the arguments to the specified executable ' + 'only when being used by the specified postprocessor (Alias: --ppa)')) postproc.add_option( '-k', '--keep-video', action='store_true', dest='keepvideo', default=False, |