updated fusoin18
This commit is contained in:
parent
8dad0c4957
commit
1f08847010
2 changed files with 66 additions and 48 deletions
|
@ -6,67 +6,85 @@ from easing import *
|
||||||
# URL to Schedule-XML
|
# URL to Schedule-XML
|
||||||
scheduleUrl = 'https://talks.kulturkosmos.de/content18/schedule/export?exporter=core-frab-xml'
|
scheduleUrl = 'https://talks.kulturkosmos.de/content18/schedule/export?exporter=core-frab-xml'
|
||||||
|
|
||||||
|
|
||||||
def bounce(i, min, max, frames):
|
def bounce(i, min, max, frames):
|
||||||
if i == frames - 1:
|
if i == frames - 1:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
if i <= frames/2:
|
if i <= frames / 2:
|
||||||
return easeInOutQuad(i, min, max, frames/2)
|
return easeInOutQuad(i, min, max, frames / 2)
|
||||||
else:
|
else:
|
||||||
return max - easeInOutQuad(i - frames/2, min, max, frames/2)
|
return max - easeInOutQuad(i - frames / 2, min, max, frames / 2)
|
||||||
|
|
||||||
|
|
||||||
def introFrames(parameters):
|
def introFrames(parameters):
|
||||||
# 1 Sekunde Text Fadein
|
# 1 Sekunde Text Fadein
|
||||||
frames = 1*fps
|
frames = 1 * fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield (
|
yield (
|
||||||
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames)),
|
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames)),
|
||||||
)
|
)
|
||||||
|
|
||||||
# 4 Sekunden stehen lassen
|
# 4 Sekunden stehen lassen
|
||||||
frames = 4*fps
|
frames = 4 * fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield ()
|
yield ()
|
||||||
|
|
||||||
|
# 3 Sekunde Text Fadeout
|
||||||
|
frames = 1 * fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)),
|
||||||
|
)
|
||||||
|
|
||||||
|
# two final frames
|
||||||
|
for i in range(0, 2):
|
||||||
|
yield (
|
||||||
|
('text', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
# ('text', 'attr', 'transform', 'translate(%.4f, 0)' % move),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def outroFrames(p):
|
def outroFrames(p):
|
||||||
# 5 Sekunden stehen bleiben
|
# 5 Sekunden stehen bleiben
|
||||||
frames = 5*fps
|
frames = 5 * fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield []
|
yield []
|
||||||
|
|
||||||
|
|
||||||
def debug():
|
def debug():
|
||||||
render(
|
render(
|
||||||
'intro.svg',
|
'intro.svg',
|
||||||
'../intro.ts',
|
'../intro.ts',
|
||||||
introFrames,
|
introFrames,
|
||||||
{
|
{
|
||||||
'$ID': 4711,
|
'$ID': 4711,
|
||||||
'$TITLE': "Long Long Long title is LONG",
|
'$TITLE': "Long Long Long title is LONG",
|
||||||
'$SUBTITLE': 'Long Long Long Long subtitle is LONGER',
|
'$SUBTITLE': 'Long Long Long Long subtitle is LONGER',
|
||||||
'$SPEAKER': 'Long Name of Dr. Dr. Prof. Dr. Long Long'
|
'$SPEAKER': 'Long Name of Dr. Dr. Prof. Dr. Long Long'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
# render(
|
# render(
|
||||||
# 'pause.svg',
|
# 'pause.svg',
|
||||||
# '../pause.ts',
|
# '../pause.ts',
|
||||||
# pauseFrames
|
# pauseFrames
|
||||||
# )
|
# )
|
||||||
#
|
#
|
||||||
render(
|
render(
|
||||||
'outro.svg',
|
'outro.svg',
|
||||||
'../outro.ts',
|
'../outro.ts',
|
||||||
outroFrames
|
outroFrames
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def tasks(queue, args, idlist, skiplist):
|
def tasks(queue, args, idlist, skiplist):
|
||||||
# iterate over all events extracted from the schedule xml-export
|
# iterate over all events extracted from the schedule xml-export
|
||||||
for event in events(scheduleUrl):
|
for event in events(scheduleUrl):
|
||||||
if event['room'] not in ('ConTent'):
|
if event['room'] not in ('ConTent'):
|
||||||
print("skipping room %s (%s [%s])" % (event['room'], event['title'], event['id']))
|
print("skipping room %s (%s [%s])" % (event['room'], event['title'], event['id']))
|
||||||
continue
|
continue
|
||||||
if not (idlist==[]):
|
if not (idlist == []):
|
||||||
if 000000 in idlist:
|
if 000000 in idlist:
|
||||||
print("skipping id (%s [%s])" % (event['title'], event['id']))
|
print("skipping id (%s [%s])" % (event['title'], event['id']))
|
||||||
continue
|
continue
|
||||||
|
@ -74,31 +92,31 @@ def tasks(queue, args, idlist, skiplist):
|
||||||
print("skipping id (%s [%s])" % (event['title'], event['id']))
|
print("skipping id (%s [%s])" % (event['title'], event['id']))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# generate a task description and put it into the queue
|
# generate a task description and put it into the queue
|
||||||
queue.put(Rendertask(
|
queue.put(Rendertask(
|
||||||
infile = 'intro.svg',
|
infile='intro.svg',
|
||||||
outfile = str(event['id'])+".ts",
|
outfile=str(event['id']) + ".ts",
|
||||||
sequence = introFrames,
|
sequence=introFrames,
|
||||||
parameters = {
|
parameters={
|
||||||
'$ID': event['id'],
|
'$ID': event['id'],
|
||||||
'$TITLE': event['title'],
|
'$TITLE': event['title'],
|
||||||
'$SUBTITLE': event['subtitle'],
|
'$SUBTITLE': event['subtitle'],
|
||||||
'$SPEAKER': event['personnames']
|
'$SPEAKER': event['personnames']
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
|
|
||||||
# place a task for the outro into the queue
|
# place a task for the outro into the queue
|
||||||
if not "out" in skiplist:
|
if not "out" in skiplist:
|
||||||
queue.put(Rendertask(
|
queue.put(Rendertask(
|
||||||
infile = 'outro.svg',
|
infile='outro.svg',
|
||||||
outfile = 'outro.ts',
|
outfile='outro.ts',
|
||||||
sequence = outroFrames
|
sequence=outroFrames
|
||||||
))
|
))
|
||||||
|
|
||||||
# place the pause-sequence into the queue
|
# place the pause-sequence into the queue
|
||||||
if not "pause" in skiplist:
|
if not "pause" in skiplist:
|
||||||
queue.put(Rendertask(
|
queue.put(Rendertask(
|
||||||
infile = 'pause.svg',
|
infile='pause.svg',
|
||||||
outfile = 'pause.ts',
|
outfile='pause.ts',
|
||||||
sequence = pauseFrames
|
sequence=pauseFrames
|
||||||
))
|
))
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"><metadata
|
inkscape:version="0.92.3 (2405546, 2018-03-11)"><metadata
|
||||||
id="metadata20229"><rdf:RDF><cc:Work
|
id="metadata20229"><rdf:RDF><cc:Work
|
||||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
|
||||||
id="defs20227" /><sodipodi:namedview
|
id="defs20227" /><sodipodi:namedview
|
||||||
pagecolor="#ffffff"
|
pagecolor="#ffffff"
|
||||||
bordercolor="#666666"
|
bordercolor="#666666"
|
||||||
|
@ -33,15 +33,15 @@
|
||||||
guidetolerance="10"
|
guidetolerance="10"
|
||||||
inkscape:pageopacity="0"
|
inkscape:pageopacity="0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:window-width="1920"
|
inkscape:window-width="1916"
|
||||||
inkscape:window-height="1080"
|
inkscape:window-height="1023"
|
||||||
id="namedview20225"
|
id="namedview20225"
|
||||||
showgrid="false"
|
showgrid="false"
|
||||||
inkscape:zoom="0.69583333"
|
inkscape:zoom="0.69583333"
|
||||||
inkscape:cx="987.68705"
|
inkscape:cx="1277.5668"
|
||||||
inkscape:cy="561.81359"
|
inkscape:cy="561.81359"
|
||||||
inkscape:window-x="0"
|
inkscape:window-x="0"
|
||||||
inkscape:window-y="0"
|
inkscape:window-y="36"
|
||||||
inkscape:window-maximized="0"
|
inkscape:window-maximized="0"
|
||||||
inkscape:current-layer="svg20223" />
|
inkscape:current-layer="svg20223" />
|
||||||
<pattern
|
<pattern
|
||||||
|
@ -55974,12 +55974,12 @@
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#ffffff" /></flowRegion><flowPara
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#ffffff" /></flowRegion><flowPara
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#ffffff"
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#ffffff"
|
||||||
id="flowPara4714" /><flowPara
|
id="flowPara4714" /><flowPara
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff"
|
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:78.66666667px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr;text-anchor:end;fill:#ffffff"
|
||||||
id="flowPara4718">$TITLE</flowPara><flowPara
|
id="flowPara4718">$TITLE</flowPara><flowPara
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff"
|
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:66.66666667px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr;text-anchor:end;fill:#ffffff"
|
||||||
id="flowPara64">$SUBTITLE</flowPara><flowPara
|
id="flowPara64">$SUBTITLE</flowPara><flowPara
|
||||||
id="flowPara3039"
|
id="flowPara3039"
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff">$SPEAKER</flowPara><flowPara
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr;text-anchor:end;fill:#ffffff">$SPEAKER</flowPara><flowPara
|
||||||
id="flowPara4762"
|
id="flowPara4762"
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff"> </flowPara><flowPara
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff"> </flowPara><flowPara
|
||||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff"
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666794px;line-height:125%;font-family:'Codec Cold';-inkscape-font-specification:'Codec Cold, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:end;writing-mode:lr-tb;text-anchor:end;fill:#ffffff"
|
||||||
|
|
Before Width: | Height: | Size: 3.7 MiB After Width: | Height: | Size: 3.7 MiB |
Loading…
Add table
Reference in a new issue