receiving multiple rtp audi streams
Mikkel Pihl
voks at vokskabinet.com
Tue Apr 30 08:00:28 UTC 2019
Dear all,
I am new to gstreamer and it is a bit overwhelming. I have a project i
would like some help with.
I have two devices each sending an rtp audio stream using the following
pipelines
gst-launch-1.0 -v rtpbin name=rtpbin alsasrc !
audio/x-raw,format=S32LE,rate=48000,width=32,depth=32,channels=2 !
audioconvert ! rtpL24pay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0
! udpsink host=192.168.0.1 port=5002 rtpbin.send_rtcp_src_0 ! udpsink
host=192.168.0.1 port=5003 sync=false async=false udpsrc port=5007 !
rtpbin.recv_rtcp_sink_0
gst-launch-1.0 -v rtpbin name=rtpbin alsasrc !
audio/x-raw,format=S32LE,rate=48000,width=32,depth=32,channels=2 !
audioconvert ! rtpL24pay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0
! udpsink host=192.168.0.1 port=5008 rtpbin.send_rtcp_src_0 ! udpsink
host=192.168.0.1 port=5009 sync=false async=false udpsrc port=5013 !
rtpbin.recv_rtcp_sink_0
I would like to receive the two audio streams on a third device. I can
receive and play one stream at a time but i am unsure how to receive and
play both. I naively tried the following which is not working and likely
does not make much sense.
gst-launch-1.0 -v rtpbin name=rtpbin udpsrc
caps="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)L24,encoding-params=(string)2,channels=(int)2,
payload=(int)96" port=5002 ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtpL24depay !
audioconvert ! audiomixer name=audiomix ! alsasink udpsrc port=5003 !
rtpbin.recv_rtcp_sink_0 rtpbin.send_rtcp_src_0 ! udpsink host=192.168.0.2
port=5007 sync=false async=false udpsrc
caps="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)L24,encoding-params=(string)2,channels=(int)2,
payload=(int)96" port=5008 ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtpL24depay !
audioconvert ! audiomix. udpsrc port=5009 ! rtpbin.recv_rtcp_sink_1
rtpbin.send_rtcp_src_1 ! udpsink host=192.168.0.3 port=5013 sync=false
async=false
I will be very grateful for any hints.
All the best,
Mikkel Pihl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190430/d1c9b49c/attachment-0001.html>
More information about the gstreamer-devel
mailing list