+ enc = Gst.ElementFactory.make('x264enc')
+ enc.set_property('bitrate', 1000)
+ enc.set_property('tune', 'zerolatency')
+ capsfilter = Gst.ElementFactory.make('capsfilter')
+ capsfilter.set_properties(Gst.Caps.from_string('video/x-h264,stream-format=(string)avc'))
+ flmux = Gst.ElementFactory.make('flvmux')
+ sink = Gst.ElementFactory.make('rtmpsink')
+ sink.set_property('location', 'rtmp://192.168.1.46:1935/gregoa')
+ # sink.set_property('location', 'rtmp://bla:1936/gregoa')
+ print(sink.props.location, dir(sink.props))
+ assert q and conv and enc and capsfilter and flmux and sink
+