Error In Pipeline Porting Pygst Program From Gstreamer 0.10 To 1.0
I'm porting a program from pygst 0.10 to 1.0 and I've problems with the pipeline. The pipeline I use in the 0.10 version, and works well, is: udpsrc name=src ! tsparse ! tsdemux !
Solution 1:
do you have to use socket? cannot try port for starters? what about udpsrc caps.. I think you have to specify them otherwise it wont be linked (probably)..
I would do this(not accurate - you have to debug/tune it):
self.pipeline = Gst.Pipeline()
self.udpsrc = Gst.ElementFactory.make('udpsrc', 'src')
self.pipeline.add(self.udpsrc)
self.udpsrc.set_property("port", 1234)
self.udpsrc.set_property("caps", "your caps)
self.decodebin = Gst.ElementFactory.make("decodebin", None)
self.pipeline.add(self.decodebin)
self.imagesink = Gst.ElementFactory.make('xvimagesink', None)
self.pipeline.add(self.imagesink)
self.udpsrc.link(self.decodebin)
self.decodebin.link(self.imagesink)
Solution 2:
I think that following lines had errors:
self.udpsrc = Gst.ElementFactory.make('udpsrc', 'src')
self.pipeline.add(self.udpsrc)
self.udpsrc.set_property("socket",Gio.Socket().new_from_fd(self.videosocket.fileno()))
They should be:
self.udpsrc = Gst.ElementFactory.make('udpsrc', 'src')
self.udpsrc.set_property("socket",Gio.Socket().new_from_fd(self.videosocket.fileno()))
self.pipeline.add(self.udpsrc)
Post a Comment for "Error In Pipeline Porting Pygst Program From Gstreamer 0.10 To 1.0"