[gst-devel] rtp streams stop unexpectedly

Dirk Griffioen dirk.griffioen at barcelonamedia.org
Thu Sep 17 10:06:17 CEST 2009


Hi,

I have the following 2 pipelines for streaming (send/receive) audio:

*producer:*
gst-launch -v gstrtpbin name=rtpbin \
filesrc location=filesrc location=~/Desktop/video.mp4 ! decodebin name=dec \
dec. ! queue ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! 
rtpbin.send_rtp_sink_1 \
rtpbin.send_rtp_src_1 ! udpsink port=5002 host=127.0.0.1 ts-offset=0  \
rtpbin.send_rtcp_src_1 ! udpsink port=5003 host=127.0.0.1 sync=false 
async=false  \
udpsrc port=5007 ! rtpbin.recv_rtcp_sink_1

*consumer:*
gst-launch -v gstrtpbin name=rtpbin latency=200 \
udpsrc 
caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA" 
port=5002 ! rtpbin.recv_rtp_sink_1 \
rtpbin. ! rtppcmadepay ! decodebin ! audioconvert ! audioresample ! 
alsasink \
udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 \
rtpbin.send_rtcp_src_1 ! udpsink port=5007 host=127.0.0.1 sync=false 
async=false

If I start the consumer and then the producer, the stream if fine. But 
if I then restart the producer, the consumer drops with the following 
message:

/GstPipeline:pipeline0/GstRtpBin:rtpbin/GstRtpJitterBuffer:rtpjitterbuffer1.GstPad:src: 
caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, 
encoding-name=(string)PCMA
/GstPipeline:pipeline0/GstRtpBin:rtpbin/GstRtpJitterBuffer:rtpjitterbuffer1.GstPad:sink: 
caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, 
encoding-name=(string)PCMA
/GstPipeline:pipeline0/GstRtpBin:rtpbin/GstRtpPtDemux:rtpptdemux1.GstPad:sink: 
caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, 
encoding-name=(string)PCMA
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:recv_rtp_src_1_1517622516_8: 
caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, 
encoding-name=(string)PCMA, payload=(int)8
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:recv_rtp_src_1_1517622516_8.GstProxyPad:proxypad6: 
caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, 
encoding-name=(string)PCMA, payload=(int)8
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal 
data flow error.
Additional debug info:
gstbasesrc.c(2330): gst_base_src_loop (): 
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 31686734760 ns.

Is this expected behaviour?

Can I somehow fix this, so I can start/stop the producer?

Help is very much appreciated!

Best, Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090917/1bc9a8c4/attachment.htm>


More information about the gstreamer-devel mailing list