diff --git a/wikidatacon2017/__init__.py b/wikidatacon2017/__init__.py new file mode 100644 index 0000000..8b4af0e --- /dev/null +++ b/wikidatacon2017/__init__.py @@ -0,0 +1,114 @@ +#!/usr/bin/python3 + +from renderlib import * +from easing import * + +# URL to Schedule-XML +scheduleUrl = 'http://live.ber.c3voc.de/releases/public/wikidatacon2017.xml' + + +def introFrames(args): + # fade in title, subtitle, persons and id + frames = 2 * fps + for i in range(0, frames): + yield ( + ('persons', 'style', 'opacity', easeOutQuart(i, 0, 1, frames)), + ('title', 'style', 'opacity', 0), + ) + + frames = 2 * fps + for i in range(0, frames): + yield ( + ('persons', 'style', 'opacity', 1), + ('title', 'style', 'opacity', easeOutQuart(i, 0, 1, frames)), + ) + frames = 2 * fps + for i in range(0, frames): + yield ( + ('persons', 'style', 'opacity', 1), + ('title', 'style', 'opacity', 1), + ) + + +def backgroundFrames(parameters): + pass + +def outroFrames(args): + # fadein outro graphics + frames = 1 * fps + for i in range(0, frames): + yield ( + ('fadetoblack', 'style', 'opacity', easeInQuart(i, 1, -1, frames)), + ) + frames = 5 * fps + for i in range(0, frames): + yield [] + + +def pauseFrames(args): + pass + +def debug(): + render('intro.svg', + '../intro.ts', + introFrames, + { + '$id': 7776, + '$title': 'StageWar live!', + '$subtitle': 'Metal Konzert', + '$persons': 'www.stagewar.de' + } + ) + + 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 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 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'], + '$persons': 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 + )) + + # place the pause-sequence into the queue + if not "pause" in skiplist: + queue.put(Rendertask( + infile='pause.svg', + outfile='pause.ts', + sequence=pauseFrames + )) + + # place the background-sequence into the queue + if not "bg" in skiplist: + queue.put(Rendertask( + infile='background.svg', + outfile='background.ts', + sequence=backgroundFrames + )) diff --git a/wikidatacon2017/artwork/background.png b/wikidatacon2017/artwork/background.png new file mode 100644 index 0000000..8c941e9 Binary files /dev/null and b/wikidatacon2017/artwork/background.png differ diff --git a/wikidatacon2017/artwork/background.svg b/wikidatacon2017/artwork/background.svg new file mode 100644 index 0000000..057de0a --- /dev/null +++ b/wikidatacon2017/artwork/background.svg @@ -0,0 +1,438 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + WIKI + + DATA + + CON + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Berlin - 28&29 October 2017 + + + diff --git a/wikidatacon2017/artwork/intro.svg b/wikidatacon2017/artwork/intro.svg new file mode 100644 index 0000000..a15350f --- /dev/null +++ b/wikidatacon2017/artwork/intro.svg @@ -0,0 +1,2722 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + WIKI + + DATA + + CON + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Berlin - 28&29 October 2017 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + open + + + + + + + + + + + free + + + + + + + + + + + structured + + + + + + + + + + + linked + + + + + + + + + + + collaborative + + + + + + + + + + + multilingual + + + + + + + + + + + + $title $persons + diff --git a/wikidatacon2017/artwork/outro.svg b/wikidatacon2017/artwork/outro.svg new file mode 100644 index 0000000..b6a1e4a --- /dev/null +++ b/wikidatacon2017/artwork/outro.svg @@ -0,0 +1,2837 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + WIKI + + DATA + + CON + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Berlin - 28&29 October 2017 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + open + + + + + + + + + + + free + + + + + + + + + + + structured + + + + + + + + + + + linked + + + + + + + + + + + collaborative + + + + + + + + + + + multilingual + + + + + + + + + + + More Recordings available on media.ccc.de + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +