diff --git a/camp2023/beon.ttf b/camp2023/beon.ttf
new file mode 100644
index 0000000..525497f
Binary files /dev/null and b/camp2023/beon.ttf differ
diff --git a/camp2023/config.ini b/camp2023/config.ini
new file mode 100644
index 0000000..2072250
--- /dev/null
+++ b/camp2023/config.ini
@@ -0,0 +1,39 @@
+[default]
+schedule = https://pretalx.c3voc.de/camp2023/schedule/export/schedule.xml
+template = intro.mp4
+alpha = false
+prores = false
+fontfile = true
+inout = t
+
+[title]
+in = 16
+out = 24
+fontfamily = BeonRegular
+fontfile = saira.ttf
+fontsize = 100
+fontcolor = #FB48C4
+x = (w-text_w)/2
+y = 100
+
+[speaker]
+in = 16
+out = 24
+fontfamily = BeonRegular
+fontfile = saira.ttf
+fontsize = 70
+fontcolor = #3FFF21
+x = (w-text_w)/2
+y = 800
+
+[text]
+in = 16
+out = 24
+fontfamily = BeonRegular
+fontfile = saira.ttf
+fontsize = 45
+fontcolor = #FB48C4
+x = (w-text_w)/2
+y = 1000
+text = 'Chaos Communication Camp 2023'
+
diff --git a/camp2023/saira.ttf b/camp2023/saira.ttf
new file mode 100644
index 0000000..df08ba0
Binary files /dev/null and b/camp2023/saira.ttf differ
diff --git a/cccamp19/config.ini b/cccamp19/config.ini
index f3c0668..181caed 100644
--- a/cccamp19/config.ini
+++ b/cccamp19/config.ini
@@ -3,11 +3,14 @@ schedule = https://fahrplan.events.ccc.de/camp/2019/Fahrplan/schedule.xml
template = cccamp19_talks_intro_1080p.mov
alpha = true
prores = true
+fontfile = true
+inout = n
[title]
in = 193
out = 324
-font = Marvel-Bold.ttf
+fontfamily =
+fontfile = Marvel-Bold.ttf
fontsize = 120
fontcolor = #c68100
x = (w-text_w)/2
@@ -16,7 +19,8 @@ y = 480
[speaker]
in = 233
out = 324
-font = Marvel-Regular.ttf
+fontfamily =
+fontfile = Marvel-Regular.ttf
fontsize = 70
fontcolor = #c68100
x = (w-text_w)/2
@@ -25,7 +29,8 @@ y = 845
[text]
in = 242
out = 324
-font = Marvel-Regular.ttf
+fontfamily =
+fontfile = Marvel-Regular.ttf
fontsize = 45
fontcolor = #c68100
x = (w-text_w)/2
diff --git a/denog11/config.ini b/denog11/config.ini
index 20367cd..6f403b5 100644
--- a/denog11/config.ini
+++ b/denog11/config.ini
@@ -3,11 +3,14 @@ schedule = https://pretalx.denog.de/denog11/schedule/export/schedule.xml
template = denog11_intro_template.ts
alpha = false
prores = false
+fontfile = true
+inout = n
[title]
in = 1
out = 6.5
-font = DejaVuSans.ttf
+fontfamily =
+fontfile = DejaVuSans.ttf
fontsize = 100
fontcolor = #f9cc12
x = 640
@@ -16,7 +19,8 @@ y = 200
[speaker]
in = 2
out = 6.5
-font = DejaVuSans.ttf
+fontfamily =
+fontfile = DejaVuSans.ttf
fontsize = 60
fontcolor = #ffffff
x = 640
@@ -25,7 +29,8 @@ y = 900
[text]
in = 3
out = 6.5
-font = DejaVuSans.ttf
+fontfamily =
+fontfile = DejaVuSans.ttf
fontsize = 45
fontcolor = #ffffff
x = 640
diff --git a/jh19-berlin/config.ini b/jh19-berlin/config.ini
index 2a10de5..6a8740d 100644
--- a/jh19-berlin/config.ini
+++ b/jh19-berlin/config.ini
@@ -1,31 +1,36 @@
[default]
-schedule = https://projects.alpaka.space/media/jhber19-schedule.xml
+schedule = https://projects.alpaka.space/media/jhber19-schedule.xml
template = intro-alpha.mov
alpha = true
prores = true
+fontfile = true
+inout = n
[title]
in = 175
-out = 260
-font = SourceSansPro-Bold.otf
-fontsize = 90
+out = 260
+fontfamily =
+fontfile = SourceSansPro-Bold.otf
+fontsize = 90
fontcolor = #ffffff
-x = 1090
+x = 1090
y = 450
[speaker]
-in = 175
-out = 260
-font = SourceSansPro-Regular.otf
-fontsize = 36
+in = 175
+out = 260
+fontfamily =
+fontfile = SourceSansPro-Regular.otf
+fontsize = 36
fontcolor = #ffffff
-x = 1090
+x = 1090
y = 900
[text]
in = 200
-out = 250
-font = SourceSansPro-Regular.otf
+out = 250
+fontfamily =
+fontfile = SourceSansPro-Regular.otf
fontsize = 45
fontcolor = #c68100
x = (w-text_w)/2
diff --git a/jh20-jue/config.ini b/jh20-jue/config.ini
index 310d66d..163ca71 100644
--- a/jh20-jue/config.ini
+++ b/jh20-jue/config.ini
@@ -1,19 +1,24 @@
[default]
schedule = https://releasing.c3voc.de/releases/jhjue2020/schedule-jhjue20.xml
-; intro_template.ts was derived from a png which was derived from jhjue-20-intro.svg
+; intro_template.ts was derived from a png which was derived from jhjue-20-intro.svg
; ffmpeg -loop 1 -i jh20-jue/jh20-jue-intro.png -ar 48000 -ac 2 -f s16le -i /dev/zero -c:v mpeg2video -pix_fmt:v yuv420p -qscale:v 2 -qmin:v 2 -qmax:v 7 -keyint_min 0 -bf 0 -g 0 -intra:0 -maxrate:0 90M -c:a mp2 -b:a 384k -t 5 jh20-jue/jh20-jue_intro_template.ts
template = jh20-jue_intro_template.ts
alpha = false
prores = false
+; enable using a font file
+fontfile = true
+; in and out time format: t for seconds, n for frame number
+inout = n
; fields for title and speaker names are empty in the template.ts, so we'll render them in via ffmpeg
[title]
; inframe for title
-in = 20
+in = 20
; outframe for totle
out = 225
-; title font
-font = ebisu.ttf
+; title font (either font family or file, see default setting above)
+fontfamily =
+fontfile = ebisu.ttf
; title font size
fontsize = 70
; title color
@@ -25,7 +30,8 @@ y = 865
[speaker]
in = 40
out = 225
-font = ebisu.ttf
+fontfamily =
+fontfile = ebisu.ttf
fontsize = 40
fontcolor = #eeeeee
x = 600
@@ -35,7 +41,8 @@ y = 950
[text]
in = 3
out = 4
-font = ebisu.ttf
+fontfamily =
+fontfile = ebisu.ttf
fontsize = 45
fontcolor = #ffffff
x = 640
@@ -44,4 +51,4 @@ text = ''
; build intros via
-; ./make-ffmpeg.py jh20-jue/
+; ./make-ffmpeg.py jh20-jue/
diff --git a/jh21-rn/config.ini b/jh21-rn/config.ini
index 293225e..a7870db 100644
--- a/jh21-rn/config.ini
+++ b/jh21-rn/config.ini
@@ -3,11 +3,14 @@ schedule = https://pretalx.c3voc.de/jugend-hackt-rhein-neckar-2021/schedule/expo
template = jh21-rn-template.ts
alpha = false
prores = false
+fontfile = true
+inout = t
[title]
in = 1
out = 6.5
-font = SourceSansPro-Semibold.ttf
+fontfamily =
+fontfile = SourceSansPro-Semibold.ttf
fontsize = 85
fontcolor = #ffffff
x = 410
@@ -16,7 +19,8 @@ y = 877
[speaker]
in = 2
out = 6.5
-font = SourceSansPro-Semibold.ttf
+fontfamily =
+fontfile = SourceSansPro-Semibold.ttf
fontsize = 45
fontcolor = #ffffff
x = 410
@@ -25,7 +29,8 @@ y = 954
[text]
in = 3
out = 6.5
-font = SourceSansPro-Semibold.ttf
+fontfamily =
+fontfile = SourceSansPro-Semibold.ttf
fontsize = 45
fontcolor = #ffffff
x = 1920
diff --git a/jugendhackt/config.ini b/jugendhackt/config.ini
index 8e1457a..54955fb 100644
--- a/jugendhackt/config.ini
+++ b/jugendhackt/config.ini
@@ -4,11 +4,14 @@ schedule = https://jh.franzi.business/schedule/jh23dd.xml
template = alpaka_orange.ts
alpha = false
prores = false
+fontfile = true
+inout = t
[title]
in = 1
out = 9.5
-font = SourceSansPro-Semibold.ttf
+fontfamily =
+fontfile = SourceSansPro-Semibold.ttf
fontsize = 100
fontcolor = #00a5dd
x = 100
@@ -17,7 +20,8 @@ y = 785
[speaker]
in = 2
out = 9
-font = SourceSansPro-Semibold.ttf
+fontfamily =
+fontfile = SourceSansPro-Semibold.ttf
fontsize = 55
fontcolor = #00a5dd
x = 100
@@ -26,7 +30,8 @@ y = 900
[text]
in = 3
out = 8
-font = SourceSansPro-Semibold.ttf
+fontfamily =
+fontfile = SourceSansPro-Semibold.ttf
fontsize = 45
fontcolor = #00a5dd
x = 100
diff --git a/make-blender.py b/make-blender.py
index eafae78..e9d11a8 100644
--- a/make-blender.py
+++ b/make-blender.py
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
# vim: tabstop=4 shiftwidth=4 expandtab
+"""
+Generate intros by rendering a blender project with some text fields replaced by
+the schedule contents.
+The blender project must be configured to use mkv/matroska as output file format!
+"""
import subprocess
import renderlib
@@ -217,10 +222,10 @@ def enqueue_job(event):
for key, value in event.items():
value = str(value).replace('"', '\\"')
scriptstr = scriptstr.replace("$" + str(key), value)
-
+
with open(work_doc, 'w', encoding='utf-8') as fp:
fp.write(scriptstr)
-
+
if platform.system() == 'Darwin':
if args.debug:
print("running: Blender.app --background %s --python-use-system-env --python %s --use-extension 0 --threads 0 --render-output %s --render-anim" % (work_source, work_doc, intermediate_clip))
@@ -330,8 +335,8 @@ for event in events:
intermediate_clip = os.path.join(tempdir.name, event_id + '.avi')
final_clip = os.path.join(os.path.dirname(args.project), event_id + '.avi')
else:
- intermediate_clip = os.path.join(tempdir.name, event_id + '.mov')
- final_clip = os.path.join(os.path.dirname(args.project), event_id + '.mov')
+ intermediate_clip = os.path.join(tempdir.name, event_id + '.mkv')
+ final_clip = os.path.join(os.path.dirname(args.project), event_id + '.mkv')
copyfile(intermediate_clip, final_clip)
event_print(event, "copied intermediate clip to " + final_clip)
diff --git a/make-ffmpeg.py b/make-ffmpeg.py
index 09aeeae..89f12ce 100755
--- a/make-ffmpeg.py
+++ b/make-ffmpeg.py
@@ -10,6 +10,9 @@ import shlex
from PIL import ImageFont
from configparser import ConfigParser
import json
+import platform
+import ssl
+ssl._create_default_https_context = ssl._create_unverified_context
# Parse arguments
parser = argparse.ArgumentParser(
@@ -72,10 +75,13 @@ cparser.read(os.path.join(os.path.dirname(args.project), 'config.ini'))
template = cparser['default']['template']
alpha = cparser['default']['alpha']
prores = cparser['default']['prores']
+fontfile = cparser['default']['fontfile'] # use a font file instead of a font family
+inout = cparser['default']['inout'] # in and out time format: t for seconds, n for frame number
title_in = cparser['title']['in']
title_out = cparser['title']['out']
-title_font = cparser['title']['font']
+title_fontfamily = cparser['title']['fontfamily']
+title_fontfile = cparser['title']['fontfile']
title_fontsize = cparser['title']['fontsize']
title_fontcolor = cparser['title']['fontcolor']
title_x = cparser['title']['x']
@@ -83,7 +89,8 @@ title_y = cparser['title']['y']
speaker_in = cparser['speaker']['in']
speaker_out = cparser['speaker']['out']
-speaker_font = cparser['speaker']['font']
+speaker_fontfamily = cparser['speaker']['fontfamily']
+speaker_fontfile = cparser['speaker']['fontfile']
speaker_fontsize = cparser['speaker']['fontsize']
speaker_fontcolor = cparser['speaker']['fontcolor']
speaker_x = cparser['speaker']['x']
@@ -91,16 +98,17 @@ speaker_y = cparser['speaker']['y']
text_in = cparser['text']['in']
text_out = cparser['text']['out']
-text_font = cparser['text']['font']
+text_fontfamily = cparser['text']['fontfamily']
+text_fontfile = cparser['text']['fontfile']
text_fontsize = cparser['text']['fontsize']
text_fontcolor = cparser['text']['fontcolor']
text_x = cparser['text']['x']
text_y = cparser['text']['y']
text_text = cparser['text']['text']
-font_t = os.path.join(os.path.dirname(args.project), title_font)
-font_s = os.path.join(os.path.dirname(args.project), speaker_font)
-font_tt = os.path.join(os.path.dirname(args.project), text_font)
+font_t = os.path.join(os.path.dirname(args.project), title_fontfile)
+font_s = os.path.join(os.path.dirname(args.project), speaker_fontfile)
+font_tt = os.path.join(os.path.dirname(args.project), text_fontfile)
fileformat = os.path.splitext(template)[1]
infile = os.path.join(os.path.dirname(args.project), template)
@@ -110,7 +118,7 @@ schedule = cparser['default']['schedule']
if not (os.path.exists(os.path.join(args.project, template))):
error("Template file {} in Project Path is missing".format(template))
-for ffile in (title_font, speaker_font, text_font):
+for ffile in (title_fontfile, speaker_fontfile, text_fontfile):
if not (os.path.exists(os.path.join(args.project, ffile))):
error("Font file {} in Project Path is missing".format(ffile))
@@ -127,7 +135,7 @@ if not args.debug and not schedule:
error("Either specify --debug or supply a schedule in config.ini")
if args.debug:
- persons = ['Thomas Roth', 'Dmitry Nedospasov', 'Josh Datko']
+ persons = ['Thomas Roth', 'Dmitry Nedospasov', 'Josh Datko',]
events = [{
'id': 'debug',
'title': 'wallet.fail',
@@ -171,8 +179,9 @@ def fit_text(string: str, frame_width):
line_num = 0
line = ""
for word in split_line:
- w, _ = translation_font.getsize(" ".join([line, word]))
- if w > (frame_width - (2 * 6)):
+ left, top, right, bottom = translation_font.getbbox(" ".join([line, word]))
+ width, height = right - left, bottom - top
+ if width > (frame_width - (2 * 6)):
lines += line.strip() + "\n"
line = ""
@@ -225,20 +234,39 @@ def enqueue_job(event):
outfile = os.path.join(os.path.dirname(args.project), event_id + '.ts')
- videofilter = "drawtext=enable='between(n,{0},{1})':fontfile={2}:fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}',".format(title_in, title_out, font_t, title_fontsize, title_fontcolor, title_x, title_y, t)
- videofilter += "drawtext=enable='between(n,{0},{1})':fontfile={2}:fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}',".format(speaker_in, speaker_out, font_s, speaker_fontsize, speaker_fontcolor, speaker_x, speaker_y, s)
- videofilter += "drawtext=enable='between(n,{0},{1})':fontfile={2}:fontsize={3}:fontcolor={4}:x={5}:y={6}:text={7}".format(text_in, text_out, font_tt, text_fontsize, text_fontcolor, text_x, text_y, text_text)
+ if platform.system() == 'Windows':
+ ffmpeg_path = './ffmpeg.exe'
+ font_t_win = "/".join(font_t.split("\\"))
+ font_s_win = "/".join(font_s.split("\\"))
+ font_tt_win = "/".join(font_tt.split("\\"))
+ else:
+ ffmpeg_path = 'ffmpeg'
+
+ if fontfile == 'true':
+ if platform.system() == 'Windows':
+ videofilter = "drawtext=enable='between({8},{0},{1})':fontfile='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}',".format(title_in, title_out, font_t_win, title_fontsize, title_fontcolor, title_x, title_y, t, inout)
+ videofilter += "drawtext=enable='between({8},{0},{1})':fontfile='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}':box=1,".format(speaker_in, speaker_out, font_s_win, speaker_fontsize, speaker_fontcolor, speaker_x, speaker_y, s, inout)
+ videofilter += "drawtext=enable='between({8},{0},{1})':fontfile='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}'".format(text_in, text_out, font_tt_win, text_fontsize, text_fontcolor, text_x, text_y, text_text, inout)
+ else:
+ videofilter = "drawtext=enable='between({8},{0},{1})':fontfile='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}',".format(title_in, title_out, font_t, title_fontsize, title_fontcolor, title_x, title_y, t, inout)
+ videofilter += "drawtext=enable='between({8},{0},{1})':fontfile='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}':box=1,".format(speaker_in, speaker_out, font_s, speaker_fontsize, speaker_fontcolor, speaker_x, speaker_y, s, inout)
+ videofilter += "drawtext=enable='between({8},{0},{1})':fontfile='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}'".format(text_in, text_out, font_tt, text_fontsize, text_fontcolor, text_x, text_y, text_text, inout)
+ else:
+ videofilter = "drawtext=enable='between({8},{0},{1})':font='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}',".format(title_in, title_out, title_fontfamily, title_fontsize, title_fontcolor, title_x, title_y, t, inout)
+ videofilter += "drawtext=enable='between({8},{0},{1})':font='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}':box=1,".format(speaker_in, speaker_out, speaker_fontfamily, speaker_fontsize, speaker_fontcolor, speaker_x, speaker_y, s, inout)
+ videofilter += "drawtext=enable='between({8},{0},{1})':font='{2}':fontsize={3}:fontcolor={4}:x={5}:y={6}:text='{7}'".format(text_in, text_out, text_fontfamily, text_fontsize, text_fontcolor, text_x, text_y, text_text, inout)
+
if fileformat == '.mov':
if alpha == 'true':
if prores == 'true':
- cmd = 'ffmpeg -y -i "{0}" -vf "{1}" -vcodec prores_ks -pix_fmt yuva444p10le -profile:v 4444 -shortest -movflags faststart -f mov "{2}"'.format(infile, videofilter, outfile)
+ cmd = '{3} -y -i "{0}" -vf "{1}" -vcodec prores_ks -pix_fmt yuva444p10le -profile:v 4444 -shortest -movflags faststart -f mov "{2}"'.format(infile, videofilter, outfile, ffmpeg_path)
else:
- cmd = 'ffmpeg -y -i "{0}" -vf "{1}" -shortest -c:v qtrle -movflags faststart -f mov "{2}"'.format(infile, videofilter, outfile)
+ cmd = '{3} -y -i "{0}" -vf "{1}" -shortest -c:v qtrle -movflags faststart -f mov "{2}"'.format(infile, videofilter, outfile, ffmpeg_path)
else:
- cmd = 'ffmpeg -y -i "{0}" -vf "{1}" -map 0:0 -c:v mpeg2video -q:v 2 -aspect 16:9 -map 0:1 -c:a mp2 -b:a 384k -shortest -f mpegts "{2}"'.format(infile, videofilter, outfile)
+ cmd = '{3} -y -i "{0}" -vf "{1}" -map 0:0 -c:v mpeg2video -q:v 2 -aspect 16:9 -map 0:1 -c:a mp2 -b:a 384k -shortest -f mpegts "{2}"'.format(infile, videofilter, outfile, ffmpeg_path)
else:
- cmd = 'ffmpeg -y -i "{0}" -vf "{1}" -map 0:0 -c:v mpeg2video -q:v 2 -aspect 16:9 -map 0:1 -c:a mp2 -b:a 384k -shortest -f mpegts "{2}"'.format(infile, videofilter, outfile)
+ cmd = '{3} -y -i "{0}" -vf "{1}" -map 0:0 -c:v mpeg2video -q:v 2 -aspect 16:9 -map 0:1 -c:a mp2 -b:a 384k -shortest -f mpegts "{2}"'.format(infile, videofilter, outfile, ffmpeg_path)
if args.debug:
print(cmd)
diff --git a/mrmcd2019/config.ini b/mrmcd2019/config.ini
index 5c02e73..165753c 100755
--- a/mrmcd2019/config.ini
+++ b/mrmcd2019/config.ini
@@ -2,11 +2,16 @@
#schedule = https://talks.mrmcd.net/2019/schedule/export/schedule.xml
schedule = file:///home/thorti/git/c3voc/intro-outro-generator/mrmcd2019/schedule.xml
template = mrmcd2019.mov
+alpha = false
+prores = false
+fontfile = true
+inout = n
[title]
in = 50
out = 225
-font = Jura-Bold.ttf
+fontfamily =
+fontfile = Jura-Bold.ttf
fontsize = 80
fontcolor = #47acda
x = (w-text_w)/2
@@ -15,7 +20,8 @@ y = 540
[speaker]
in = 75
out = 225
-font = Jura-Regular.ttf
+fontfamily =
+fontfile = Jura-Regular.ttf
fontsize = 50
fontcolor = #094762
x = (w-text_w)/2
@@ -24,7 +30,8 @@ y = 950
[text]
in = 242
out = 324
-font = Jura-Regular.ttf
+fontfamily =
+fontfile = Jura-Regular.ttf
fontsize = 45
fontcolor = #c68100
x = (w-text_w)/2
diff --git a/requirements.txt b/requirements.txt
index 57edff5..181482a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
pillow
cssutils==1.0.2
-lxml==4.6.3
+lxml==4.9.1
svg.path==4.0.2
Wand==0.6.5
diff --git a/vcfb22/__init__.py b/vcfb22/__init__.py
new file mode 100644
index 0000000..766aa09
--- /dev/null
+++ b/vcfb22/__init__.py
@@ -0,0 +1,148 @@
+#!/usr/bin/python3
+
+from renderlib import *
+from easing import *
+import math
+
+# URL to Schedule-XML
+scheduleUrl = 'http://vcfb.de/2022/schedule.xml'
+
+# For (really) too long titles
+titlemap = {
+ #708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick"
+}
+personmap = {
+}
+
+taglinemap = {
+}
+
+def outroFrames(p):
+ frames = 2*fps
+ for i in range(0, frames):
+ yield (
+ ('logo', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
+ ('plate', 'style', 'opacity', 0),
+ )
+
+ frames = 1*fps
+ for i in range(0, frames):
+ yield (
+ ('logo', 'style', 'opacity', 1),
+ ('plate', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
+ )
+
+ frames = 2*fps
+ for i in range(0, frames):
+ yield (
+ ('logo', 'style', 'opacity', 1),
+ ('plate', 'style', 'opacity', 1),
+ )
+
+def introFrames(p):
+ frames = math.floor(1.5*fps)
+ for i in range(0, frames):
+ yield (
+ ('header', 'attr', 'y', 659),
+ ('text', 'style', 'opacity', 0),
+ )
+
+ frames = 1*fps
+ for i in range(0, frames):
+ yield (
+ ('text', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
+ )
+
+ frames = math.ceil(3.5*fps)
+ for i in range(0, frames):
+ yield (
+ ('text', 'style', 'opacity', 1),
+ )
+
+def pauseFrames(p):
+ pass
+
+
+def debug():
+ render(
+ 'intro.svg',
+ '../intro.ts',
+ introFrames,
+ {
+ '$id': 6526,
+ '$title': 'Besser steuern durch Daten? - Zur Performativität soziotechnischer Systeme und der Quantifizierung der sozialen Welt',
+ '$subtitle': '',
+ '$personnames': 'Judith Hartstein und Anne K. Krüger'
+ }
+ )
+
+ #render(
+ # 'outro.svg',
+ # '../outro.ts',
+ # outroFrames
+ #)
+
+ # render('pause.svg',
+ # '../pause.ts',
+ # pauseFrames
+ # )
+
+def tasks(queue, params, idlist, skiplist):
+# # iterate over all events extracted from the schedule xml-export
+ for event in events(scheduleUrl):
+ if not (idlist==[]):
+ if 000000 in idlist:
+ print("skipping id (%s [%s])" % (event['title'], event['id']))
+ continue
+ if int(event['id']) not in idlist:
+ print("skipping id (%s [%s])" % (event['title'], event['id']))
+ continue
+
+ # generate a task description and put them into the queue
+ if int(event['id']) not in skiplist:
+ queue.put(Rendertask(
+ infile = 'intro.svg',
+ outfile = str(event['id'])+".ts",
+ sequence = introFrames,
+ parameters = {
+ '$id': event['id'],
+ '$title': event['title'],
+ '$subtitle': event['subtitle'],
+ '$personnames': event['personnames']
+ }
+ ))
+
+# for person in persons(scheduleUrl, personmap, taglinemap, event['id']):
+# queue.put(Rendertask(
+# infile = 'lower-third.svg',
+# outfile = 'event_{}_person_{}.png'.format(str(event['id']), str(person['id'])),
+# parameters = {
+# '$PERSON': person['person'],
+# '$TAGLINE': person['tagline'],
+# }
+# ))
+#
+# queue.put(Rendertask(
+# infile = 'lower-third.svg',
+# outfile = 'event_{}_persons.png'.format(str(event['id'])),
+# parameters = {
+# '$PERSON': event['personnames'],
+# '$TAGLINE': '',
+# }
+# ))
+#
+ # place a task for the outro into the queue
+ if not "out" in skiplist:
+ queue.put(Rendertask(
+ infile = 'outro.svg',
+ outfile = 'outro.ts',
+ sequence = outroFrames
+ ))
+
+ # place the pause-sequence into the queue
+ #if not "pause" in skiplist:
+# queue.put(Rendertask(
+# infile = 'pause.svg',
+# outfile = 'pause.ts',
+# sequence = pauseFrames
+# ))
diff --git a/vcfb22/artwork/Computerfont.ttf b/vcfb22/artwork/Computerfont.ttf
new file mode 100644
index 0000000..49f1c62
Binary files /dev/null and b/vcfb22/artwork/Computerfont.ttf differ
diff --git a/vcfb22/artwork/intro.svg b/vcfb22/artwork/intro.svg
new file mode 100644
index 0000000..30044ab
--- /dev/null
+++ b/vcfb22/artwork/intro.svg
@@ -0,0 +1,15584 @@
+
+
+
+
diff --git a/vcfb22/artwork/lower-third.svg b/vcfb22/artwork/lower-third.svg
new file mode 100644
index 0000000..a70d3b4
--- /dev/null
+++ b/vcfb22/artwork/lower-third.svg
@@ -0,0 +1,6231 @@
+
+
+
+
diff --git a/vcfb22/artwork/outro.svg b/vcfb22/artwork/outro.svg
new file mode 100644
index 0000000..2659dde
--- /dev/null
+++ b/vcfb22/artwork/outro.svg
@@ -0,0 +1,7956 @@
+
+
+
+
diff --git a/vcfb22/artwork/pause.svg b/vcfb22/artwork/pause.svg
new file mode 100644
index 0000000..8ef961c
--- /dev/null
+++ b/vcfb22/artwork/pause.svg
@@ -0,0 +1,6626 @@
+
+
+
+
\ No newline at end of file
diff --git a/vcfb23/__init__.py b/vcfb23/__init__.py
new file mode 100644
index 0000000..35cba63
--- /dev/null
+++ b/vcfb23/__init__.py
@@ -0,0 +1,148 @@
+#!/usr/bin/python3
+
+from renderlib import *
+from easing import *
+import math
+
+# URL to Schedule-XML
+scheduleUrl = 'http://vcfb.de/2023/schedule.xml'
+
+# For (really) too long titles
+titlemap = {
+ #708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick"
+}
+personmap = {
+}
+
+taglinemap = {
+}
+
+def outroFrames(p):
+ frames = 2*fps
+ for i in range(0, frames):
+ yield (
+ ('logo', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
+ ('plate', 'style', 'opacity', 0),
+ )
+
+ frames = 1*fps
+ for i in range(0, frames):
+ yield (
+ ('logo', 'style', 'opacity', 1),
+ ('plate', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
+ )
+
+ frames = 2*fps
+ for i in range(0, frames):
+ yield (
+ ('logo', 'style', 'opacity', 1),
+ ('plate', 'style', 'opacity', 1),
+ )
+
+def introFrames(p):
+ frames = math.floor(1.5*fps)
+ for i in range(0, frames):
+ yield (
+ ('header', 'attr', 'y', 659),
+ ('text', 'style', 'opacity', 0),
+ )
+
+ frames = 1*fps
+ for i in range(0, frames):
+ yield (
+ ('text', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
+ )
+
+ frames = math.ceil(3.5*fps)
+ for i in range(0, frames):
+ yield (
+ ('text', 'style', 'opacity', 1),
+ )
+
+def pauseFrames(p):
+ pass
+
+
+def debug():
+ render(
+ 'intro.svg',
+ '../intro.ts',
+ introFrames,
+ {
+ '$id': 6526,
+ '$title': 'Besser steuern durch Daten? - Zur Performativität soziotechnischer Systeme und der Quantifizierung der sozialen Welt',
+ '$subtitle': '',
+ '$personnames': 'Judith Hartstein und Anne K. Krüger'
+ }
+ )
+
+ #render(
+ # 'outro.svg',
+ # '../outro.ts',
+ # outroFrames
+ #)
+
+ # render('pause.svg',
+ # '../pause.ts',
+ # pauseFrames
+ # )
+
+def tasks(queue, params, idlist, skiplist):
+# # iterate over all events extracted from the schedule xml-export
+ for event in events(scheduleUrl):
+ if not (idlist==[]):
+ if 000000 in idlist:
+ print("skipping id (%s [%s])" % (event['title'], event['id']))
+ continue
+ if int(event['id']) not in idlist:
+ print("skipping id (%s [%s])" % (event['title'], event['id']))
+ continue
+
+ # generate a task description and put them into the queue
+ if int(event['id']) not in skiplist:
+ queue.put(Rendertask(
+ infile = 'intro.svg',
+ outfile = str(event['id'])+".ts",
+ sequence = introFrames,
+ parameters = {
+ '$id': event['id'],
+ '$title': event['title'],
+ '$subtitle': event['subtitle'],
+ '$personnames': event['personnames']
+ }
+ ))
+
+# for person in persons(scheduleUrl, personmap, taglinemap, event['id']):
+# queue.put(Rendertask(
+# infile = 'lower-third.svg',
+# outfile = 'event_{}_person_{}.png'.format(str(event['id']), str(person['id'])),
+# parameters = {
+# '$PERSON': person['person'],
+# '$TAGLINE': person['tagline'],
+# }
+# ))
+#
+# queue.put(Rendertask(
+# infile = 'lower-third.svg',
+# outfile = 'event_{}_persons.png'.format(str(event['id'])),
+# parameters = {
+# '$PERSON': event['personnames'],
+# '$TAGLINE': '',
+# }
+# ))
+#
+ # place a task for the outro into the queue
+ if not "out" in skiplist:
+ queue.put(Rendertask(
+ infile = 'outro.svg',
+ outfile = 'outro.ts',
+ sequence = outroFrames
+ ))
+
+ # place the pause-sequence into the queue
+ #if not "pause" in skiplist:
+# queue.put(Rendertask(
+# infile = 'pause.svg',
+# outfile = 'pause.ts',
+# sequence = pauseFrames
+# ))
diff --git a/vcfb23/artwork/Computerfont.ttf b/vcfb23/artwork/Computerfont.ttf
new file mode 100644
index 0000000..49f1c62
Binary files /dev/null and b/vcfb23/artwork/Computerfont.ttf differ
diff --git a/vcfb23/artwork/intro.svg b/vcfb23/artwork/intro.svg
new file mode 100644
index 0000000..30044ab
--- /dev/null
+++ b/vcfb23/artwork/intro.svg
@@ -0,0 +1,15584 @@
+
+
+
+
diff --git a/vcfb23/artwork/lower-third.svg b/vcfb23/artwork/lower-third.svg
new file mode 100644
index 0000000..a70d3b4
--- /dev/null
+++ b/vcfb23/artwork/lower-third.svg
@@ -0,0 +1,6231 @@
+
+
+
+
diff --git a/vcfb23/artwork/outro.svg b/vcfb23/artwork/outro.svg
new file mode 100644
index 0000000..2659dde
--- /dev/null
+++ b/vcfb23/artwork/outro.svg
@@ -0,0 +1,7956 @@
+
+
+
+
diff --git a/vcfb23/artwork/pause.svg b/vcfb23/artwork/pause.svg
new file mode 100644
index 0000000..8ef961c
--- /dev/null
+++ b/vcfb23/artwork/pause.svg
@@ -0,0 +1,6626 @@
+
+
+
+
\ No newline at end of file