Multi rtp streams - thread issue

elio francesconi elio.francesconi at gmail.com
Thu Oct 31 10:40:27 CET 2013


Hi all,

I'm creating an app to send and receive RTP audio streams, below I
attached pipeline's schemas.

 I did these steps:


   1. I wrote a pipeline to *receive audio content* and I created a
thread to handle this stream.
   2. I wrote a second pipeline to send audio content and I created a
thread to handle this stream

These two pipelines work (I tested them separately) but in the same app no.


It seems a MultiThread issue, but I'm not aware how GStreamer works,
can someone give me some hints to handle this scenario?

Thanks Elio




This is a schema about the pipeline to *receive audio content*

#             .-------.      .----------.     .---------.   .-------.
 .-------------.
#  RTP        |udpsrc |      | rtpbin   |     |pcmadepay|   |alawdec|
 |autoaudiosink|
#  port=5002  |      src->recv_rtp recv_rtp->sink     src->sink
src->sink           |
#             '-------'      |          |     '---------'   '-------'
 '-------------'
#                            |          |
#                            |          |     .-------.
#                            |          |     |udpsink|  RTCP
#                            |    send_rtcp->sink     | port=5007
#             .-------.      |          |     '-------' sync=false
#  RTCP       |udpsrc |      |          |               async=false
#  port=5003  |     src->recv_rtcp      |
#             '-------'      '----------'


This is a schema about the pipeline to *send** audio content*

# .--------.    .-------.    .-------.      .----------.     .-------.
# |audiosrc|    |alawenc|    |pcmapay|      | rtpbin   |     |udpsink|  RTP
# |       src->sink    src->sink    src->send_rtp send_rtp->sink     | port=5002
# '--------'    '-------'    '-------'      |          |     '-------'
#                                           |          |
#                                           |          |     .-------.
#                                           |          |     |udpsink|  RTCP
#                                           |    send_rtcp->sink     | port=5003
#                            .-------.      |          |     '-------'
sync=false
#                 RTCP       |udpsrc |      |          |
async=false
#               port=5007    |     src->recv_rtcp      |
#                            '-------'      '----------'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131031/0453f52c/attachment.html>


More information about the gstreamer-devel mailing list