First commit for MRMCD2017
This commit is contained in:
parent
326b9a2405
commit
4a9b7d4020
3 changed files with 10529 additions and 0 deletions
120
mrmcd2017/__init__.py
Executable file
120
mrmcd2017/__init__.py
Executable file
|
@ -0,0 +1,120 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
from renderlib import *
|
||||||
|
from easing import *
|
||||||
|
|
||||||
|
# URL to Schedule-XML
|
||||||
|
scheduleUrl = 'http://cfp.mrmcd.net/2017/schedule.xml'
|
||||||
|
|
||||||
|
# For (really) too long titles
|
||||||
|
titlemap = {
|
||||||
|
}
|
||||||
|
|
||||||
|
def introFrames(params):
|
||||||
|
move=40
|
||||||
|
|
||||||
|
# 1 Sekunden stillstand
|
||||||
|
frames = 1*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('title', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
('subtitle', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
('persons', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
('rect', 'style', 'opacity', "%.4f" % easeInSine(i, 0, 0.7, frames))
|
||||||
|
)
|
||||||
|
|
||||||
|
# 4 Sekunde Text Fadein
|
||||||
|
frames = 4*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('title', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, i, 0, 1, 2*fps)),
|
||||||
|
('title', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 0*fps, i, -move, move, 2*fps)),
|
||||||
|
|
||||||
|
('subtitle', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 1*fps, i, 0, 1, 2*fps)),
|
||||||
|
('subtitle', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 1*fps, i, -move, move, 2*fps)),
|
||||||
|
|
||||||
|
('persons', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 2*fps, i, 0, 1, 2*fps)),
|
||||||
|
('persons', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 2*fps, i, -move, move, 2*fps)),
|
||||||
|
)
|
||||||
|
|
||||||
|
# 2 Sekunden stillstand
|
||||||
|
frames = 2*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield tuple()
|
||||||
|
|
||||||
|
# 1 Sekunde fadeout
|
||||||
|
frames = 1*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('title', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)),
|
||||||
|
('subtitle', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)),
|
||||||
|
('persons', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)),
|
||||||
|
('rect', 'style', 'opacity', "%.4f" % easeLinear(i, 0.6, -1, frames)),
|
||||||
|
)
|
||||||
|
|
||||||
|
# def outroFrames(params):
|
||||||
|
# move=50
|
||||||
|
#
|
||||||
|
# # 1 Sekunden stillstand
|
||||||
|
# frames = 1*fps
|
||||||
|
# for i in range(0, frames):
|
||||||
|
# yield (
|
||||||
|
# ('license', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
# )
|
||||||
|
#
|
||||||
|
# # 2 Sekunde Text Fadein
|
||||||
|
# frames = 2*fps
|
||||||
|
# for i in range(0, frames):
|
||||||
|
# yield (
|
||||||
|
# ('license', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, i, 0, 1, 2*fps)),
|
||||||
|
# ('license', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 0*fps, i, -move, move, 2*fps)),
|
||||||
|
# )
|
||||||
|
#
|
||||||
|
# # 2 Sekunden stillstand
|
||||||
|
# frames = 2*fps
|
||||||
|
# for i in range(0, frames):
|
||||||
|
# yield tuple()
|
||||||
|
|
||||||
|
|
||||||
|
def debug():
|
||||||
|
# render(
|
||||||
|
# 'outro.svg',
|
||||||
|
# '../outro.ts',
|
||||||
|
# outroFrames
|
||||||
|
# )
|
||||||
|
|
||||||
|
render(
|
||||||
|
'intro.svg',
|
||||||
|
'../intro.ts',
|
||||||
|
introFrames,
|
||||||
|
{
|
||||||
|
'$id': 904,
|
||||||
|
'$title': 'Was ist Open Source, wie funktioniert das?',
|
||||||
|
'$subtitle': 'Die Organisation der Open Geo- und GIS-Welt. Worauf man achten sollte.',
|
||||||
|
'$personnames': 'Arnulf Christl, Astrid Emde, Dominik Helle, Till Adams'
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
def tasks(queue, params):
|
||||||
|
# iterate over all events extracted from the schedule xml-export
|
||||||
|
for event in events(scheduleUrl, titlemap):
|
||||||
|
|
||||||
|
# generate a task description and put them into the queue
|
||||||
|
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']
|
||||||
|
}
|
||||||
|
))
|
||||||
|
|
||||||
|
# place a task for the outro into the queue
|
||||||
|
queue.put(Rendertask(
|
||||||
|
infile = 'outro.svg',
|
||||||
|
outfile = 'outro.ts',
|
||||||
|
sequence = outroFrames
|
||||||
|
))
|
189
mrmcd2017/artwork/intro.svg
Executable file
189
mrmcd2017/artwork/intro.svg
Executable file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 762 KiB |
10220
mrmcd2017/artwork/outro.svg
Executable file
10220
mrmcd2017/artwork/outro.svg
Executable file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 763 KiB |
Loading…
Add table
Reference in a new issue