summaryrefslogtreecommitdiff
path: root/voctocore/lib/audiomix.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-14 13:15:52 +0200
committerMaZderMind <github@mazdermind.de>2015-05-14 13:15:52 +0200
commit421ae902167ec993afe5b0c54909e22c245dfe6a (patch)
treeb284c8c3534017fc2796f272bec9b616009b4056 /voctocore/lib/audiomix.py
parentc4bf8ce0adc72596db66528aa2f1fc573186fefc (diff)
Re-Enable Video-Mixing capabilities and implement dummy Audio-Mixer
Diffstat (limited to 'voctocore/lib/audiomix.py')
-rw-r--r--voctocore/lib/audiomix.py17
1 files changed, 15 insertions, 2 deletions
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)