summaryrefslogtreecommitdiff
path: root/voctocore/lib/commands.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-13 19:35:20 +0200
committerMaZderMind <github@mazdermind.de>2015-05-13 19:35:20 +0200
commit943ab31a0f32b7bb50fa1ff90c9ce8d72b232cfd (patch)
tree601c1b7b4261b544d413bb29e191286dc2688371 /voctocore/lib/commands.py
parent4ea86d040d7ee247af247e8388eedf975aaf1f54 (diff)
experiment with transporting uncompressed a/v together in a matroska stream
Diffstat (limited to 'voctocore/lib/commands.py')
-rw-r--r--voctocore/lib/commands.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/voctocore/lib/commands.py b/voctocore/lib/commands.py
index 9b35bf2..9673e57 100644
--- a/voctocore/lib/commands.py
+++ b/voctocore/lib/commands.py
@@ -2,7 +2,7 @@
import logging
from lib.config import Config
-from lib.video.mix import CompositeModes
+from lib.videomix import CompositeModes
class ControlServerCommands():
log = logging.getLogger('ControlServerCommands')
@@ -12,26 +12,26 @@ class ControlServerCommands():
def __init__(self, pipeline):
self.pipeline = pipeline
- self.vnames = Config.getlist('sources', 'video')
+ self.sources = Config.getlist('mix', 'sources')
- def decodeVideoSrcName(self, src_name_or_id):
+ def decodeSourceName(self, src_name_or_id):
if isinstance(src_name_or_id, str):
try:
- return self.vnames.index(src_name_or_id)
+ return self.sources.index(src_name_or_id)
except Exception as e:
- raise IndexError("video-source %s unknown" % src_name_or_id)
+ raise IndexError("source %s unknown" % src_name_or_id)
- if src_name_or_id < 0 or src_name_or_id >= len(self.vnames):
- raise IndexError("video-source %s unknown" % src_name_or_id)
+ if src_name_or_id < 0 or src_name_or_id >= len(self.sources):
+ raise IndexError("source %s unknown" % src_name_or_id)
def set_video_a(self, src_name_or_id):
- src_id = self.decodeVideoSrcName(src_name_or_id)
+ src_id = self.decodeSourceName(src_name_or_id)
self.pipeline.vmixer.setVideoA(src_id)
return True
def set_video_b(self, src_name_or_id):
- src_id = self.decodeVideoSrcName(src_name_or_id)
+ src_id = self.decodeSourceName(src_name_or_id)
self.pipeline.vmixer.setVideoB(src_id)
return True