summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Alberto <lucasa@gmail.com>2010-07-11 15:23:54 (GMT)
committerLuciana Fujii Pontello <luciana@fujii.eti.br>2010-07-13 23:39:53 (GMT)
commit8d7e15a06e8553665d11551a3d48662e16db2e61 (patch)
treecd528677bf5ab40d56bed39a717b27bd85459a74
parent13f899b0b61a66dd8cb46b993c2b25221f26dfd1 (diff)
downloadsltv-8d7e15a06e8553665d11551a3d48662e16db2e61.tar.gz
sltv-8d7e15a06e8553665d11551a3d48662e16db2e61.tar.xz
sltv: Add colorspace between cairoimageoverlay and videobalance
Add a colorspace conversion between the gstreamer elements cairoimageoverlay and videobalance, since videobalance only supports yuv in older GStreamer versions.
-rw-r--r--sltv/sltv.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sltv/sltv.py b/sltv/sltv.py
index acfb794..597436a 100644
--- a/sltv/sltv.py
+++ b/sltv/sltv.py
@@ -314,6 +314,11 @@ class Sltv(gobject.GObject):
)
self.player.add(self.watermark)
+ self.colorspace = gst.element_factory_make(
+ "ffmpegcolorspace", "colorspace-imageoverlay-videobalance"
+ )
+ self.player.add(self.colorspace)
+
self.videobalance = gst.element_factory_make(
"videobalance", "videobalance"
)
@@ -336,7 +341,8 @@ class Sltv(gobject.GObject):
)
gst.element_link_many(
- self.pip, self.watermark, self.videobalance, self.queue_video
+ self.pip, self.watermark, self.colorspace, self.videobalance,
+ self.queue_video
)
self._switch_source()