Permalink
Browse files

add configurable video format to decklinkavsource

  • Loading branch information...
Sophie Schiller
Sophie Schiller committed Jun 8, 2018
1 parent f7685da commit 978cbf604b2ea7f65135fa8e923cb1603af6f83e
Showing with 7 additions and 1 deletion.
  1. +1 −0 voctocore/default-config.ini
  2. +6 −1 voctocore/lib/sources/decklinkavsource.py
@@ -24,6 +24,7 @@ deinterlace = assume-progressive
;devicenumber = 0
;video_connection = SDI
;video_mode = 1080i50
;video_format = auto
;audio_connection = embedded
;volume=0.5
@@ -27,6 +27,9 @@ def __init__(self, name, outputs=None, has_audio=True, has_video=True):
# Video mode, default: 1080i50
self.vmode = Config.get(section, 'video_mode', fallback='1080i50')
# Video format, default: auto
self.vfmt = Config.get(section, 'video_format', fallback='auto')
self.audiostream_map = self._parse_audiostream_map(section)
self.log.info("audiostream_map: %s", self.audiostream_map)
@@ -130,11 +133,13 @@ def launch_pipeline(self):
decklinkvideosrc
device-number={device}
connection={conn}
video-format={fmt}
mode={mode} !
""".format(
device=self.device,
conn=self.vconn,
mode=self.vmode
mode=self.vmode,
fmt=self.vfmt
)
if self.has_video:

0 comments on commit 978cbf6

Please sign in to comment.