av1 shenanigans

This commit is contained in:
kleines Filmröllchen 2025-04-23 18:18:03 +02:00
parent c6cea4e456
commit 90c6278386
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8
3 changed files with 27 additions and 2 deletions

Binary file not shown.

View file

@ -1,7 +1,7 @@
[meta] [meta]
schedule = https://cfp.ctbk.de/fsck-2025/schedule/export/schedule.xml schedule = https://cfp.ctbk.de/fsck-2025/schedule/export/schedule.xml
;; path to background video ;; path to background video
template = artwork/fsck-intro-base.mov template = artwork/fsck-intro-base.mkv
;; whether background video uses transparency (needs to be .mov) ;; whether background video uses transparency (needs to be .mov)
alpha = false alpha = false
;; whether background video is prores 4444 ;; whether background video is prores 4444

View file

@ -220,11 +220,12 @@ def enqueue_job(conf: Config, event):
outfile = str(PurePath(args.project, event_id + ".ts")) outfile = str(PurePath(args.project, event_id + ".ts"))
outfile_mov = str(PurePath(args.project, event_id + ".mov")) outfile_mov = str(PurePath(args.project, event_id + ".mov"))
outfile_mkv = str(PurePath(args.project, event_id + ".mkv"))
if event_id in args.skip: if event_id in args.skip:
event_print(event, "skipping " + str(event["id"])) event_print(event, "skipping " + str(event["id"]))
return return
if (os.path.exists(outfile) or os.path.exists(outfile_mov)) and not args.force: if (os.path.exists(outfile) or os.path.exists(outfile_mov) or os.path.exists(outfile_mkv)) and not args.force:
event_print(event, "file exist, skipping " + str(event["id"])) event_print(event, "file exist, skipping " + str(event["id"]))
return return
@ -280,6 +281,29 @@ def enqueue_job(conf: Config, event):
"mov", "mov",
outfile_mov, outfile_mov,
] ]
elif conf.fileext == ".mkv":
cmd += [
"-map",
"0:0",
"-c:v",
"libsvtav1",
"-preset",
"8",
"-b:v",
"10M",
"-aspect",
"16:9",
"-map",
"0:1",
"-c:a",
"libopus",
"-b:a",
"196k",
"-shortest",
"-f",
"matroska",
outfile_mkv,
]
else: else:
cmd += [ cmd += [
"-map", "-map",
@ -308,6 +332,7 @@ def enqueue_job(conf: Config, event):
subprocess.check_call( subprocess.check_call(
cmd, cmd,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
stdout=subprocess.DEVNULL,
) )
return event_id return event_id