From feeb11c61300d3e719320ac091e582fbb076d7b3 Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 7 Jun 2021 00:17:17 -0400 Subject: [PATCH] yt_common: automation: scxvid keyframes option --- yt_common/yt_common/automation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yt_common/yt_common/automation.py b/yt_common/yt_common/automation.py index 8d2907c..660b02a 100644 --- a/yt_common/yt_common/automation.py +++ b/yt_common/yt_common/automation.py @@ -66,11 +66,12 @@ class SelfRunner(): action="store_true") parser.add_argument("-a", "--audio-only", help="Only process audio, no video.", action="store_true") parser.add_argument("--keyframes", nargs="?", default=None, - help="Generate keyframes and exit", const="keyframes.txt") + help="Generate keyframes and exit.", const="keyframes.txt") + parser.add_argument("--scxvid", help="Use scxvid for keyframes.", action="store_true") args = parser.parse_args() if args.keyframes: - kf = find_scene_changes(source.source()) + kf = find_scene_changes(source.source(), args.scxvid) with open(args.keyframes, "w", encoding="utf-8") as kfo: kfo.write("# WWXD log file, using qpfile format\n\n") for f in kf: