vcfb15
This commit is contained in:
parent
85b97dc0dd
commit
059dee84c7
4 changed files with 696 additions and 15 deletions
|
@ -257,27 +257,39 @@ def supersourceFrames(p):
|
||||||
def debug():
|
def debug():
|
||||||
render(
|
render(
|
||||||
'intro.svg',
|
'intro.svg',
|
||||||
'../intro.ts',
|
'../6983.ts',
|
||||||
introFrames,
|
introFrames,
|
||||||
parameters={
|
parameters={
|
||||||
'$id': 6543,
|
'$id': 6983,
|
||||||
'$title': 'NSA-Untersuchungsausschuss - Wer kontrolliert wen?',
|
'$title': 'Infrastructure Review',
|
||||||
'$subtitle': 'A Practical Introduction to Acoustic Cryptanalysis',
|
'$subtitle': '',
|
||||||
'$person': 'Frantisek Algoldor Apfelbeck'
|
'$personnames': 'Will, Arjen, MaZderMind, Fengel'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
render(
|
# render(
|
||||||
'outro.svg',
|
# 'intro.svg',
|
||||||
'../outro.ts',
|
# '../8.ts',
|
||||||
outroFrames
|
# introFrames,
|
||||||
)
|
# parameters={
|
||||||
|
# '$id': 8,
|
||||||
|
# '$title': 'The Incredible Herrengedeck',
|
||||||
|
# '$subtitle': 'Chanson-Punk aus Berlin',
|
||||||
|
# '$personnames': ''
|
||||||
|
# }
|
||||||
|
# )
|
||||||
|
|
||||||
render(
|
# render(
|
||||||
'supersource.svg',
|
# 'outro.svg',
|
||||||
'../supersource.ts',
|
# '../outro.ts',
|
||||||
supersourceFrames
|
# outroFrames
|
||||||
)
|
# )
|
||||||
|
|
||||||
|
# render(
|
||||||
|
# 'supersource.svg',
|
||||||
|
# '../supersource.ts',
|
||||||
|
# supersourceFrames
|
||||||
|
# )
|
||||||
|
|
||||||
def tasks(queue, args):
|
def tasks(queue, args):
|
||||||
# iterate over all events extracted from the schedule xml-export
|
# iterate over all events extracted from the schedule xml-export
|
||||||
|
|
115
vcfb/__init__.py
Normal file
115
vcfb/__init__.py
Normal file
|
@ -0,0 +1,115 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
from renderlib import *
|
||||||
|
from easing import *
|
||||||
|
|
||||||
|
# URL to Schedule-XML
|
||||||
|
scheduleUrl = 'http://vcfb.de/2015/schedule.xml'
|
||||||
|
|
||||||
|
# For (really) too long titles
|
||||||
|
titlemap = {
|
||||||
|
#708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick"
|
||||||
|
}
|
||||||
|
|
||||||
|
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),
|
||||||
|
)
|
||||||
|
|
||||||
|
# 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()
|
||||||
|
|
||||||
|
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 pauseFrames(params):
|
||||||
|
# 12 Sekunden
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def debug():
|
||||||
|
render(
|
||||||
|
'outro.svg',
|
||||||
|
'../outro.dv',
|
||||||
|
outroFrames
|
||||||
|
)
|
||||||
|
|
||||||
|
render(
|
||||||
|
'intro.svg',
|
||||||
|
'../intro.dv',
|
||||||
|
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):
|
||||||
|
# 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'])+".dv",
|
||||||
|
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.dv',
|
||||||
|
sequence = outroFrames
|
||||||
|
))
|
231
vcfb/artwork/intro.svg
Normal file
231
vcfb/artwork/intro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 53 KiB |
323
vcfb/artwork/outro.svg
Normal file
323
vcfb/artwork/outro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 65 KiB |
Loading…
Add table
Reference in a new issue