Skip to content

Commit

Permalink
Have audio device use the same as video
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Moscrop committed Dec 14, 2018
1 parent 25c8f88 commit b52d010
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brave/inputs/decklink.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ def permitted_props(self):
}

def create_elements(self):
#TODO: Audio is currently lcoked to HDI/HDMI mode may need to figure a btter way to auto select the best one
if not self.create_pipeline_from_string('decklinkvideosrc'
' device-number=' + str(self.props['device']) +
' connection=' + str(self.props['connection']) +
' mode=' + str(self.props['mode']) +
' ! videoconvert'
+ self.default_video_pipeline_string_end() +
' decklinkaudiosrc device-number=0 connection=1 ! audioconvert'
' decklinkaudiosrc device-number=' + str(self.props['device']) + ' connection=1 ! audioconvert'
+ self.default_audio_pipeline_string_end()):
return False

Expand Down

0 comments on commit b52d010

Please sign in to comment.