summaryrefslogtreecommitdiffstats
path: root/gallery_dl/option.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-11-10 22:14:10 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-11-10 22:14:10 -0500
commit0c73e982fa596da07f23b377621ab894a9e64884 (patch)
tree96f6a40a5656c15a2ec7217a8a1efcff5827bcbb /gallery_dl/option.py
parent40f5fe6edef268632d3bc484e85e5b37bad67bff (diff)
New upstream version 1.11.1upstream/1.11.1
Diffstat (limited to 'gallery_dl/option.py')
-rw-r--r--gallery_dl/option.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py
index d3119b7..3118b83 100644
--- a/gallery_dl/option.py
+++ b/gallery_dl/option.py
@@ -321,13 +321,26 @@ def build_parser():
)
postprocessor.add_argument(
"--ugoira-conv",
- dest="postprocessors",
- action="append_const", const={"name": "ugoira", "ffmpeg-args": (
- "-c:v", "libvpx", "-crf", "4", "-b:v", "5000k", "-an"),
- "whitelist": ("pixiv", "danbooru")},
+ dest="postprocessors", action="append_const", const={
+ "name" : "ugoira",
+ "ffmpeg-args" : ("-c:v", "libvpx", "-crf", "4", "-b:v", "5000k"),
+ "ffmpeg-twopass": True,
+ "whitelist" : ("pixiv", "danbooru"),
+ },
help="Convert Pixiv Ugoira to WebM (requires FFmpeg)",
)
postprocessor.add_argument(
+ "--ugoira-conv-lossless",
+ dest="postprocessors", action="append_const", const={
+ "name" : "ugoira",
+ "ffmpeg-args" : ("-c:v", "libvpx-vp9", "-lossless", "1",
+ "-pix_fmt", "yuv420p"),
+ "ffmpeg-twopass": False,
+ "whitelist" : ("pixiv", "danbooru"),
+ },
+ help="Convert Pixiv Ugoira to WebM in VP9 lossless mode",
+ )
+ postprocessor.add_argument(
"--write-metadata",
dest="postprocessors",
action="append_const", const={"name": "metadata"},