From 1aafa1d12d86cc9f05a79cee151c02575a8d1a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 27 Mar 2022 15:31:24 +0200 Subject: [PATCH] add '--ugoira-conv-copy' command-line option (#1550) --- gallery_dl/option.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gallery_dl/option.py b/gallery_dl/option.py index e1ada093..782063d5 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -400,6 +400,18 @@ def build_parser(): }, help="Convert Pixiv Ugoira to WebM in VP9 lossless mode", ) + postprocessor.add_argument( + "--ugoira-conv-copy", + dest="postprocessors", action="append_const", const={ + "name" : "ugoira", + "extension" : "mkv", + "ffmpeg-args" : ("-c:v", "copy"), + "ffmpeg-twopass" : False, + "repeat-last-frame": False, + "whitelist" : ("pixiv", "danbooru"), + }, + help="Convert Pixiv Ugoira to MKV without re-encoding any frames", + ) postprocessor.add_argument( "--write-metadata", dest="postprocessors",