Extend rectangle so that Impress does not show text above border.
[toast/stream2beamer.git] / rtmp_test.py
index 446088705e69448c23ccc75de592a675ac42caf6..473c24b8ff6278c6cd73515d6ee2d6256eed886b 100644 (file)
@@ -41,8 +41,12 @@ def main():
     pipeline.add(idk)
 
     # Queue Data
-    queueRTMP = Gst.ElementFactory.make("queue") # queue
-    pipeline.add(queueRTMP)
+    #queueRTMP = Gst.ElementFactory.make("queue") # queue
+    #pipeline.add(queueRTMP)
+
+    capsfilter = Gst.ElementFactory.make('capsfilter')
+    capsfilter.set_properties(Gst.Caps.from_string('video/x-h264,stream-format=(string)avc'))
+    pipeline.add(capsfilter)
 
     # Convert to Mux
     flvmux = Gst.ElementFactory.make("flvmux", "mux") # flvmux name=mux
@@ -57,9 +61,11 @@ def main():
     assert ok
     ok = videoconvert.link(idk)
     assert ok
-    ok = idk.link(queueRTMP)
+    ok = idk.link(capsfilter)
+    assert ok
+    ok = capsfilter.link(flvmux)
     assert ok
-    ok = queueRTMP.link(flvmux)
+    #ok = queueRTMP.link(flvmux)
     assert ok
     ok = flvmux.link(rtmpsink)
     assert ok