The two pipelines now successfully communicate via intervideosink/src.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 16 Sep 2020 20:02:44 +0000 (22:02 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 16 Sep 2020 20:02:44 +0000 (22:02 +0200)
lagarde.py

index b8cd22bd5a76cb8bd216680d297918053f9f88e9..9cb9945e96c388c25c6e9341827ac5c5de03c29e 100755 (executable)
@@ -32,7 +32,7 @@ class GstreamerRtspServer():
         server.set_address("::")
         server.set_service('8554')  # port as string
         factory = GstRtspServer.RTSPMediaFactory()
-        factory.set_launch("videotestsrc ! decodebin ! theoraenc ! queue ! rtptheorapay name=pay0")
+        factory.set_launch("intervideosrc ! decodebin ! theoraenc ! queue ! rtptheorapay name=pay0")
         factory.set_shared(True)
         mountPoints = server.get_mount_points()
         mountPoints.add_factory("/cug", factory)
@@ -83,8 +83,7 @@ class Lagarde:
             if name.startswith('video'):
                 q = Gst.ElementFactory.make('queue')
                 conv = Gst.ElementFactory.make('videoconvert')
-                # sink = Gst.ElementFactory.make('autovideosink') # needs XDG_RUNTIME_DIR
-                sink = Gst.ElementFactory.make('xvimagesink')
+                sink = Gst.ElementFactory.make('intervideosink')
                 self.pipe.add(q)
                 self.pipe.add(conv)
                 self.pipe.add(sink)