use xvimagesink (some X11 video sink) instead of the presumably simpler autovideosink
authorgregor herrmann <gregor@toastfreeware.priv.at>
Thu, 9 Jul 2020 18:20:38 +0000 (20:20 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Thu, 9 Jul 2020 18:22:42 +0000 (20:22 +0200)
the latter fails if XDG_RUNTIME_DIR is not set.

(in the end we want a different sink anyway, this is just for debugging)

lagarde.py

index 29cb085482c26c795614113e59ce4812ba77e064..1b08355694707acdc2db7d6721d4ce4c899e6899 100755 (executable)
@@ -72,7 +72,8 @@ class Lagarde:
             if name.startswith('video'):
                 q = Gst.ElementFactory.make('queue')
                 conv = Gst.ElementFactory.make('videoconvert')
-                sink = Gst.ElementFactory.make('autovideosink')
+                # sink = Gst.ElementFactory.make('autovideosink') # needs XDG_RUNTIME_DIR
+                sink = Gst.ElementFactory.make('xvimagesink')
                 self.pipe.add(q)
                 self.pipe.add(conv)
                 self.pipe.add(sink)