From e2969b87441a46fe0c017f1f29bb7ec3f4fce585 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 5 Jan 2016 19:36:02 +0100 Subject: allow selecting different video-modes via config --- voctogui/lib/videodisplay.py | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'voctogui/lib/videodisplay.py') diff --git a/voctogui/lib/videodisplay.py b/voctogui/lib/videodisplay.py index c75f65e..b6eab6b 100644 --- a/voctogui/lib/videodisplay.py +++ b/voctogui/lib/videodisplay.py @@ -46,11 +46,31 @@ class VideoDisplay(object): """ # Video Display - pipeline += """ - glupload ! - glcolorconvert ! - glimagesinkelement - """ + videosystem = Config.get('videodisplay', 'system') + self.log.debug('Configuring for Video-System %s', videosystem) + if videosystem == 'gl': + pipeline += """ + glupload ! + glcolorconvert ! + glimagesinkelement + """ + + elif videosystem == 'xv': + pipeline += """ + xvimagesink + """ + + elif videosystem == 'x': + pipeline += """ + videoconvert ! + videoscale ! + ximagesink + """ + + else: + raise Exception('Invalid Videodisplay-System configured: %s'. system) + + # If an Audio-Path is required, add an Audio-Path through a level-Element if self.level_callback or play_audio: -- cgit v1.2.3