gpn21: make kinda usable

This commit is contained in:
Sophie Schiller 2023-06-07 16:43:25 +02:00
parent 7b8aa9fe6c
commit 8e13126d91
3 changed files with 10 additions and 7 deletions

Binary file not shown.

View file

@ -1,12 +1,12 @@
[default] [default]
schedule = "https://cfp.gulas.ch/gpn21/schedule/export/schedule.xml" schedule = "https://cfp.gulas.ch/gpn21/schedule/export/schedule.xml"
template = "gpn21_intro_template.ts" template = "gpn21_intro_template_audio.mp4"
alpha = false alpha = false
prores = false prores = false
[title] [title]
in = 1.5 in = 1.5
out = 7.5 out = 7
font = "Roboto-Regular-enriched.ttf" font = "Roboto-Regular-enriched.ttf"
fontsize = 100 fontsize = 100
fontcolor = "#000000" fontcolor = "#000000"
@ -15,7 +15,7 @@ y = 200
[speaker] [speaker]
in = 2.5 in = 2.5
out = 7.5 out = 7
font = "Roboto-Regular-enriched.ttf" font = "Roboto-Regular-enriched.ttf"
fontsize = 60 fontsize = 60
fontcolor = "#000000" fontcolor = "#000000"
@ -24,7 +24,7 @@ y = 900
[text] [text]
in = 3 in = 3
out = 7.5 out = 7
font = "Roboto-Regular-enriched.ttf" font = "Roboto-Regular-enriched.ttf"
fontsize = 45 fontsize = 45
fontcolor = "#000000" fontcolor = "#000000"

View file

@ -233,9 +233,10 @@ def enqueue_job(event):
outfile = os.path.join(args.project, event_id + '.ts') outfile = os.path.join(args.project, event_id + '.ts')
videofilter = "drawtext=fontfile={fontfile}:fontsize={fontsize}:fontcolor={fontcolor}:x={x}:y={y}:text='{text}':".format( videofilter = "drawtext=fontfile={fontfile}:fontsize={fontsize}:line_spacing={linespacing}:fontcolor={fontcolor}:x={x}:y={y}:text='{text}':".format(
fontfile = font_t, fontfile = font_t,
fontsize = title_fontsize, fontsize = title_fontsize,
linespacing = int(0.05*title_fontsize),
fontcolor = title_fontcolor, fontcolor = title_fontcolor,
x = title_x, x = title_x,
y = title_y, y = title_y,
@ -247,9 +248,10 @@ def enqueue_job(event):
fade_out_end_time = title_in + fade_duration + title_duration + fade_duration, fade_out_end_time = title_in + fade_duration + title_duration + fade_duration,
fade_duration = fade_duration fade_duration = fade_duration
) )
videofilter += "drawtext=fontfile={fontfile}:fontsize={fontsize}:fontcolor={fontcolor}:x={x}:y={y}:text='{text}':".format( videofilter += "drawtext=fontfile={fontfile}:fontsize={fontsize}:line_spacing={linespacing}:fontcolor={fontcolor}:x={x}:y={y}:text='{text}':".format(
fontfile = font_s, fontfile = font_s,
fontsize = speaker_fontsize, fontsize = speaker_fontsize,
linespacing = int(0.05*speaker_fontsize),
fontcolor = speaker_fontcolor, fontcolor = speaker_fontcolor,
x = speaker_x, x = speaker_x,
y = speaker_y, y = speaker_y,
@ -261,9 +263,10 @@ def enqueue_job(event):
fade_out_end_time = speaker_in + fade_duration + speaker_duration + fade_duration, fade_out_end_time = speaker_in + fade_duration + speaker_duration + fade_duration,
fade_duration = fade_duration fade_duration = fade_duration
) )
videofilter += "drawtext=fontfile={fontfile}:fontsize={fontsize}:fontcolor={fontcolor}:x={x}:y={y}:text={text}:".format( videofilter += "drawtext=fontfile={fontfile}:fontsize={fontsize}:line_spacing={linespacing}:fontcolor={fontcolor}:x={x}:y={y}:text={text}:".format(
fontfile = font_tt, fontfile = font_tt,
fontsize = text_fontsize, fontsize = text_fontsize,
linespacing = int(0.05*text_fontsize),
fontcolor = text_fontcolor, fontcolor = text_fontcolor,
x = text_x, x = text_x,
y = text_y, y = text_y,