start on fsck2025

This commit is contained in:
kleines Filmröllchen 2025-03-13 00:12:55 +01:00
parent bfbdda8ffe
commit 258351c282
Signed by: filmroellchen
SSH key fingerprint: SHA256:UMhcHaeI+VGsiUL2Drpw3aj1iRiQUlx8nxZqUPvoaVw
5 changed files with 8103 additions and 0 deletions

191
fsck2025/__init__.py Normal file
View file

@ -0,0 +1,191 @@
#!/usr/bin/python3
from renderlib import *
from schedulelib import *
from easing import *
# URL to Schedule-XML
scheduleUrl = 'https://cfp.ctbk.de/fsck-2024/schedule/export/schedule.xml'
def introFrames(args):
for frame in range(0, fps):
yield (
('title', 'style', 'opacity', 0),
('persons', 'style', 'opacity', 0),
('gfactoryreset', 'style', 'opacity', 0),
*((f'g{i}', 'style', 'opacity', int(i<=frame)) for i in range(0,26))
)
#fade in title and persons
frames = 1*fps
for i in range(0, frames):
yield(
('title', 'style', 'opacity', easeInQuad(i, 0, 1, frames)),
('persons', 'style', 'opacity', easeInQuad(i, 0, 1, frames)),
('gfactoryreset', 'style', 'opacity', 1),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
#show whole image for 5 seconds
frames = 5*fps
for i in range(0, frames):
yield(
('title', 'style', 'opacity', 1),
('persons', 'style', 'opacity', 1),
('gfactoryreset', 'style', 'opacity', 1),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
frames = 1*fps
for i in range(0, frames):
yield(
('title', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
('persons', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
('gfactoryreset', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
*((f'g{g}', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)) for g in range(0,26))
)
def outroFrames(args):
frames = 3*fps
for i in range(0, frames):
yield(
('cc-text', 'style', 'opacity', 1),
('logo', 'style', 'opacity', 1),
)
#fadeout outro graphics
frames = 3*fps
for i in range(0, frames):
yield(
('cc-text', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
('logo', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
)
def pauseFrames(params):
# kringel
for frame in range(0, fps):
yield (
('pause', 'style', 'opacity', 0),
('gfactoryreset', 'style', 'opacity', 0),
*((f'g{i}', 'style', 'opacity', int(i<=frame)) for i in range(0,26))
)
# ease in factory
frames = int(0.5*fps)
for i in range(0, frames):
yield(
('pause', 'style', 'opacity', 0),
('gfactoryreset', 'style', 'opacity', easeInQuad(i, 0, 1, frames)),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
# show factory
frames = 1*fps
for i in range(0, frames):
yield(
('pause', 'style', 'opacity', 0),
('gfactoryreset', 'style', 'opacity', 1),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
# ease out factory
frames = int(0.5*fps)
for i in range(0, frames):
yield(
('pause', 'style', 'opacity', 0),
('gfactoryreset', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
# ease in pause
frames = int(0.5*fps)
for i in range(0, frames):
yield(
('pause', 'style', 'opacity', easeInQuad(i, 0, 1, frames)),
('gfactoryreset', 'style', 'opacity', 0),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
# show pause
frames = 1*fps
for i in range(0, frames):
yield(
('pause', 'style', 'opacity', 1),
('gfactoryreset', 'style', 'opacity', 0),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
# ease out pause
frames = int(0.5*fps)
for i in range(0, frames):
yield(
('pause', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
('gfactoryreset', 'style', 'opacity', 0),
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
)
# kringel
for frame in range(0, fps+2):
yield (
('pause', 'style', 'opacity', 0),
('gfactoryreset', 'style', 'opacity', 0),
*((f'g{i}', 'style', 'opacity', int(i>=frame)) for i in range(0,26))
)
def debug():
render(
'intro.svg',
'../intro.ts',
introFrames,
{
'$title': "Long Long Long title is LONG ",
'$personnames': 'Long Name of Dr. Dr. Prof. Dr. Long Long'
}
)
#render('outro.svg',
# '../outro.ts',
# outroFrames
#)
def tasks(queue, args, idlist, skiplist):
# iterate over all events extracted from the schedule xml-export
for event in events(scheduleUrl):
if event['room'] not in ('Medientheater', "Vortragssaal", "Blauer Salon"):
print("skipping room %s (%s)" % (event['room'], event['title']))
continue
if event['day'] not in ('0', '1', '2', '3', '4'):
print("skipping day %s" % (event['day']))
continue
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 it into the queue
queue.put(Rendertask(
infile = 'intro.svg',
outfile = str(event['id'])+".ts",
sequence = introFrames,
parameters = {
'$title': event['title'],
'$personnames': event['personnames']
}
))
# 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
))
if not 'pause' in skiplist:
# place the pause-sequence into the queue
queue.put(Rendertask(
infile = 'pause.svg',
outfile = 'pause.ts',
sequence = pauseFrames
))

252
fsck2025/artwork/intro.svg Normal file
View file

@ -0,0 +1,252 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1920px"
height="1080px"
viewBox="0 0 1920 1080"
version="1.1"
id="SVGRoot"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
sodipodi:docname="intro.svg"
enable-background="new"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs815">
<linearGradient
x1="0"
y1="0"
x2="1"
y2="0"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1842.9241,2732.2473,2732.2473,-1842.9241,-1109.8927,745.05835)"
spreadMethod="pad"
id="linearGradient936">
<stop
style="stop-opacity:1;stop-color:#050707"
offset="0"
id="stop928" />
<stop
style="stop-opacity:1;stop-color:#00abbe"
offset="0.999999"
id="stop930" />
<stop
style="stop-opacity:1;stop-color:#00abbe"
offset="0.99999907"
id="stop932" />
<stop
style="stop-opacity:1;stop-color:#00abbe"
offset="1"
id="stop934" />
</linearGradient>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath2216">
<path
d="M 50.315,663.307 H 1558.346 V 2171.338 H 50.315 Z"
id="path2214"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath2232">
<path
d="M 50.315,663.307 H 1558.346 V 2171.338 H 50.315 Z"
id="path2230"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath2250">
<path
d="M 50.315,663.307 H 1558.346 V 2171.338 H 50.315 Z"
id="path2248"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath2270">
<path
d="M 50.315,663.307 H 1558.346 V 2171.338 H 50.315 Z"
id="path2268"
inkscape:connector-curvature="0" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="809.28571"
inkscape:cy="499.28571"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2256"
inkscape:window-height="1397"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:showpageshadow="2"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" />
<metadata
id="metadata818">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="background"
inkscape:groupmode="layer"
id="layer1"
style="display:inline">
<g
transform="matrix(1.1402922,0,0,-0.45303211,-3.01119e-5,1080)"
id="g926">
<path
d="M 0,0 H 1683.779 V 2383.937 H 0 Z"
style="fill:url(#linearGradient936);stroke:none"
id="path938"
inkscape:connector-curvature="0" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="kringel"
style="display:inline">
<g
transform="matrix(4.7921549e-5,-0.06835509,0.06253675,4.3877996e-5,-41.4189,25.351312)"
id="g946">
<g
transform="translate(-3708.9082,8836.2646)"
id="g948" />
</g>
<g
transform="matrix(-0.0877755,0,0,-0.09005514,-41.4187,25.351312)"
id="g1084">
<g
transform="translate(-7001.335,-6869.2603)"
id="g1086" />
</g>
<g
transform="matrix(-0.0877755,0,0,-0.09005514,-41.4187,25.35123)"
id="g1090">
<g
transform="translate(-5467.6865,-7400.3228)"
id="g1092" />
</g>
<g
transform="matrix(-0.04390849,0,0,-0.04501828,-41.4186,25.35123)"
id="g1162">
<g
transform="translate(-3501.106,-11682.853)"
id="g1164" />
</g>
<g
transform="matrix(-4.7921549e-5,0.06835509,-0.06253675,-4.3877996e-5,-41.4187,25.351312)"
id="g1414">
<g
transform="translate(3405.2761,-4944.666)"
id="g1416" />
</g>
<g
transform="matrix(-4.7921549e-5,0.06835509,-0.06253675,-4.3877996e-5,-41.4187,25.35123)"
id="g1450">
<g
transform="translate(10137.673,-8758.3877)"
id="g1452" />
</g>
<g
transform="matrix(4.7921549e-5,-0.06835509,0.06253675,4.3877996e-5,-41.4185,25.35123)"
id="g1666">
<g
transform="translate(-10489.8,5115.7881)"
id="g1668" />
</g>
<g
transform="matrix(4.7921549e-5,-0.06835509,0.06253675,4.3877996e-5,-41.4188,25.351475)"
id="g1744">
<g
transform="translate(-2966.5618,7097.0044)"
id="g1746" />
</g>
<g
transform="matrix(4.7921549e-5,-0.06835509,0.06253675,4.3877996e-5,-41.4187,25.351312)"
id="g1756">
<g
transform="translate(-1436.6094,6019.4995)"
id="g1758" />
</g>
<g
transform="matrix(0.54642587,0,0,-0.54642587,93.0539,504.38851)"
id="g2074" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="texte"
style="opacity:1;">
<rect
style="opacity:0;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.54968041;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect16064-4"
width="930"
height="155.71428"
x="940"
y="294.28571"
ry="0" />
<rect
style="opacity:0;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.06542766;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect16064"
width="930"
height="585"
x="940"
y="455.00003"
ry="0" />
<flowRoot
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:53.33330154px;line-height:125%;font-family:B612;-inkscape-font-specification:'B612, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-variant-east-asian:normal"
id="persons"><flowRegion
id="flowRegion3669"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:53.33330154px;font-family:B612;-inkscape-font-specification:'B612, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;font-variant-east-asian:normal"><use
x="0"
y="0"
xlink:href="#rect16064-4"
id="use3671"
width="100%"
height="100%" /></flowRegion><flowPara
id="flowPara3673"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:B612;-inkscape-font-specification:'B612, Normal';font-size:53.33330154px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">$personnames</flowPara></flowRoot>
<flowRoot
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:80px;line-height:125%;font-family:B612;-inkscape-font-specification:'B612, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-variant-east-asian:normal"
id="title"><flowRegion
id="flowRegion4931"
style="fill:#ffffff;fill-opacity:1;-inkscape-font-specification:'B612, Normal';font-family:B612;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:80px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"><use
x="0"
y="0"
xlink:href="#rect16064"
id="use4933"
width="100%"
height="100%" /></flowRegion><flowPara
id="flowPara4935"
style="-inkscape-font-specification:'B612, Normal';font-family:B612;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:80px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">$title</flowPara></flowRoot>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.4 KiB

3136
fsck2025/artwork/outro.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 152 KiB

3088
fsck2025/artwork/pause.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 134 KiB

File diff suppressed because it is too large Load diff