yt_common: automation: scxvid keyframes option
This commit is contained in:
parent
c652a7c5e7
commit
feeb11c613
@ -66,11 +66,12 @@ class SelfRunner():
|
|||||||
action="store_true")
|
action="store_true")
|
||||||
parser.add_argument("-a", "--audio-only", help="Only process audio, no video.", 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,
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.keyframes:
|
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:
|
with open(args.keyframes, "w", encoding="utf-8") as kfo:
|
||||||
kfo.write("# WWXD log file, using qpfile format\n\n")
|
kfo.write("# WWXD log file, using qpfile format\n\n")
|
||||||
for f in kf:
|
for f in kf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user