The original check was a bit hasty, this one should actually work properly.

This commit is contained in:
Erik Thuning 2024-02-06 14:15:33 +01:00
parent 8a0a9fbc33
commit 02341f0cd8

@ -47,9 +47,7 @@ class CatturaProcessor(Preprocessor):
'courses': [],
'thumb': '',
'tags': [],
'sources': {}
'generate_subtitles': {'Generated': {'type': 'whisper',
'source': 'camera'}}}
'sources': {}}
duration = None
outputs = mediapackage['outputs']
@ -72,9 +70,13 @@ class CatturaProcessor(Preprocessor):
# The source marked 'primary' in cattura doesn't get tagged
# with its configured name, but instead gets the presentation
# name. The camera is the primary, so we play the sound from
# there for sync purposes.
# there for sync purposes. We also generate the subtitles from
# there for the same reason.
elif srcname == presname:
source['playAudio'] = True
subtitlespec = {'Generated': {'type': 'whisper',
'source': srcname}}
outspec['generate_subtitles'] = subtitlespec
outspec['sources'][srcname] = source