capsfilter = Gst.ElementFactory.make('capsfilter')
capsfilter.set_properties(Gst.Caps.from_string('video/x-h264,stream-format=(string)avc'))
flvmux = Gst.ElementFactory.make('flvmux')
+ flvmux.set_property('streamable', True)
sink = Gst.ElementFactory.make('rtmpsink')
sink.set_property('location', self.rtmp_uri)
assert q and conv and enc and capsfilter and flvmux and sink