refactor renderlib to allow for single frame rendering

This commit is contained in:
Daniel Molkentin 2019-08-01 23:20:32 +02:00
parent af9531c108
commit 8eeca3485d
2 changed files with 117 additions and 82 deletions

View file

@ -124,28 +124,35 @@ def tasks(queue, args, idlist, skiplist):
queue.put(Rendertask(
infile = 'intro.svg',
outfile = str(event['id'])+".ts",
sequence = introFrames,
parameters = {
'$ID': event['id'],
'$TITLE': event['title'],
'$SUBTITLE': event['subtitle'],
'$SPEAKER': event['personnames']
}
))
).animated(introFrames))
# 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
))
outfile = 'outro.ts'
).animated(outroFrames))
for person in persons(scheduleUrl, personmap, taglinemap):
queue.put(Rendertask(
infile = 'insert.svg',
outfile = "insert_{}.mkv".format(person['person'].replace("/", "_")),
sequence = bbFrames,
parameters = {
'$PERSON': person['person'],
'$TAGLINE': person['tagline'],
}
).animated(bbFrames))
for person in persons(scheduleUrl, personmap, taglinemap):
queue.put(Rendertask(
infile = 'insert.svg',
outfile = "insert_{}.png".format(person['person'].replace("/", "_")),
parameters = {
'$PERSON': person['person'],
'$TAGLINE': person['tagline'],