- self.src2caps.set_property("caps", jpegcaps)
-
- # src2jpegdec
- self.src2jpegdec = Gst.ElementFactory.make("jpegdec", "src2jpegdec")
-
- # src2videoconvert
- self.src2videoconvert = Gst.ElementFactory.make("videoconvert", "src2videoconvert")
+ self.src2caps.set_property("caps", xrawcaps)
+ self.src2dec = Gst.ElementFactory.make("decodebin", "src2dec")
+
+ # src3
+ self.src3 = Gst.ElementFactory.make("rtmpsrc", "src3")
+ self.src3.set_property("location", stream1)
+ self.src3caps = Gst.ElementFactory.make("capsfilter", "src3caps")
+ self.src3caps.set_property("caps", xrawcaps)
+ self.src3dec = Gst.ElementFactory.make("decodebin", "src3dec")
+ self.src3crop = Gst.ElementFactory.make("aspectratiocrop", "src3crop")
+ self.src3crop.set_property("aspect-ratio", Gst.Fraction(16, 9))
+ self.src3crop.set_property("message-forward", True)
+ self.src3croppad = self.src3crop.get_static_pad("sink")
+ self.src3scale = Gst.ElementFactory.make("videoscale")
+ self.src3scalecaps = Gst.ElementFactory.make("capsfilter", "src3scalecaps")
+ self.src3scalecaps.set_property("caps", Gst.Caps.from_string("width=1280,height=720"))