Add outro task, cleanup __init__.py
Signed-off-by: Dennis Morhardt <info@dennismorhardt.de>
This commit is contained in:
parent
65f3e71fd6
commit
a2ba02c04f
2 changed files with 1071 additions and 47 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import subprocess
|
||||
import os.path
|
||||
from renderlib import *
|
||||
|
@ -7,23 +6,17 @@ from renderlib import *
|
|||
# URL to Schedule-XML
|
||||
scheduleUrl = 'https://frab.sendegate.de/de/ppw15b/public/schedule.xml'
|
||||
|
||||
# For (really) too long titles
|
||||
titlemap = {
|
||||
}
|
||||
|
||||
def easeOutCubic(t, b, c, d):
|
||||
t=float(t)/d-1
|
||||
return c*((t)*t*t + 1) + b
|
||||
|
||||
def introFrames(parameters):
|
||||
# 8 Sekunden
|
||||
|
||||
# 1 Sekunden stehen bleiben
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('flowRoot3405', 'style', 'opacity', "0.0"),
|
||||
('logo', 'style', 'opacity', "1"),
|
||||
('flowRoot3405', 'style', 'opacity', "0.0")
|
||||
)
|
||||
|
||||
# 2 Sekunden Fade-in
|
||||
|
@ -35,10 +28,14 @@ def introFrames(parameters):
|
|||
)
|
||||
|
||||
# 5 Sekunden stehen bleiben
|
||||
frames = 8*fps
|
||||
frames = 5*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
)
|
||||
yield ()
|
||||
|
||||
def outroFrames(parameters):
|
||||
frames = 5*fps
|
||||
for i in range(0, frames):
|
||||
yield ()
|
||||
|
||||
def debug():
|
||||
render(
|
||||
|
@ -52,9 +49,19 @@ def debug():
|
|||
}
|
||||
)
|
||||
|
||||
render(
|
||||
'outro.svg',
|
||||
'../outro.ts',
|
||||
outroFrames
|
||||
)
|
||||
|
||||
def tasks(queue, parameters):
|
||||
# iterate over all events extracted from the schedule xml-export
|
||||
for event in events(scheduleUrl):
|
||||
# HACK: only render event 49
|
||||
#if event['id'] != 49:
|
||||
# continue
|
||||
|
||||
# generate a task description and put it into the queue
|
||||
queue.put(Rendertask(
|
||||
infile = 'intro.svg',
|
||||
|
@ -66,3 +73,9 @@ def tasks(queue, parameters):
|
|||
'$personnames': event['personnames']
|
||||
}
|
||||
))
|
||||
|
||||
queue.put(Rendertask(
|
||||
infile = 'outro.svg',
|
||||
outfile = 'outro.ts',
|
||||
sequence = outroFrames
|
||||
))
|
||||
|
|
1011
ppw15b/artwork/outro.svg
Normal file
1011
ppw15b/artwork/outro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 90 KiB |
Loading…
Add table
Reference in a new issue