rtph264pay udpsink

troywang troywang123 at gmail.com
Thu Feb 27 22:24:00 PST 2014


Hi all:
I am using gstreamer to transmit h.264 video stream,My pipeline is:

filesrc(test.264) --> rh264parse --> rtph264pay --> udpsink

the Python code is as follow.I use an player to accept the video,But about
1-3S after PLAYING,it stopped.I catch the packet by wireshark, It show that
after 1-3S,it stop send packets,What is the problem????? Please help me!!!

PYTHON CODE:


class exchange_stream(threading.Thread):
    def __init__(self,port_v):
        threading.Thread.__init__(self)

        self.pipeline = Gst.Pipeline()

        self.filesrc =  Gst.ElementFactory.make('filesrc', 'filesrc')
        self.pipeline.add(self.filesrc)
        self.filesrc.set_property('location','es.264')

        self.queue = Gst.ElementFactory.make('queue','queue')
        self.pipeline.add(self.queue)

        self.h264parse  = Gst.ElementFactory.make('h264parse','h264parse')
        self.pipeline.add(self.h264parse)

        self.rtph264pay  =
Gst.ElementFactory.make('rtph264pay','rtph264pay')
        self.rtph264pay.set_property('pt',111)
        self.pipeline.add(self.rtph264pay)

        self.udpsink = Gst.ElementFactory.make('udpsink','appsink')
        self.pipeline.add(self.udpsink)
        self.udpsink.set_property('host','10.10.1.151')
        self.udpsink.set_property('port',port_v)
        self.udpsink.set_property('sync',False)
        self.filesrc.link(self.queue)
        self.queue.link(self.h264parse)
        self.h264parse.link(self.rtph264pay)
        self.rtph264pay.link(self.udpsink)

        self.pipeline.set_state(Gst.State.PLAYING)
        self.mainloop = GObject.MainLoop()
        self.mainloop.run()















--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtph264pay-udpsink-tp4665589.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list