From 421ae902167ec993afe5b0c54909e22c245dfe6a Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Thu, 14 May 2015 13:15:52 +0200 Subject: Re-Enable Video-Mixing capabilities and implement dummy Audio-Mixer --- voctocore/lib/audiomix.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'voctocore/lib/audiomix.py') diff --git a/voctocore/lib/audiomix.py b/voctocore/lib/audiomix.py index bd803b2..24c34a9 100644 --- a/voctocore/lib/audiomix.py +++ b/voctocore/lib/audiomix.py @@ -6,7 +6,7 @@ from enum import Enum from lib.config import Config class AudioMix(object): - log = logging.getLogger('VideoMix') + log = logging.getLogger('AudioMix') mixingPipeline = None @@ -16,4 +16,17 @@ class AudioMix(object): selectedSource = 0 def __init__(self): - pass + self.caps = Config.get('mix', 'audiocaps') + + pipeline = """ + interaudiosrc channel=audio_cam1_mixer ! + {caps} ! + queue ! + interaudiosink channel=audio_mix + """.format( + caps=self.caps + ) + + self.log.debug('Creating Mixing-Pipeline:\n%s', pipeline) + self.mixingPipeline = Gst.parse_launch(pipeline) + self.mixingPipeline.set_state(Gst.State.PLAYING) -- cgit v1.2.3