mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
bd8c40c014
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_combine_flows): Fix typo in comments. * tests/examples/rtp/client-H263p-PCMA.sdp: * tests/examples/rtp/client-H263p-PCMA.sh: * tests/examples/rtp/client-H264-PCMA.sdp: * tests/examples/rtp/client-H264-PCMA.sh: * tests/examples/rtp/client-H264.sdp: * tests/examples/rtp/client-H264.sh: * tests/examples/rtp/client-PCMA.sdp: * tests/examples/rtp/client-PCMA.sh: * tests/examples/rtp/server-alsasrc-PCMA.sh: * tests/examples/rtp/server-v4l2-H263p-alsasrc-AMR.sh: * tests/examples/rtp/server-v4l2-H264-alsasrc-PCMA.sh: Add some more docs and fix examples.
35 lines
1.6 KiB
Bash
Executable file
35 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# A simple RTP server
|
|
# sends the output of alsasrc as alaw encoded RTP on port 5002, RTCP is sent on
|
|
# port 5003. The destination is 127.0.0.1.
|
|
# the receiver RTCP reports are received on port 5007
|
|
#
|
|
# .-------. .-------. .-------. .----------. .-------.
|
|
# |alsasrc| |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 |
|
|
# '-------' '----------'
|
|
|
|
# change this to send the RTP data and RTCP to another host
|
|
DEST=127.0.0.1
|
|
|
|
#AELEM=alsasrc
|
|
AELEM=audiotestsrc
|
|
|
|
# PCMA encode from an the source
|
|
ASOURCE="$AELEM ! audioconvert"
|
|
AENC="alawenc ! rtppcmapay"
|
|
|
|
gst-launch -v gstrtpbin name=rtpbin \
|
|
$ASOURCE ! $AENC ! rtpbin.send_rtp_sink_0 \
|
|
rtpbin.send_rtp_src_0 ! udpsink port=5002 host=$DEST \
|
|
rtpbin.send_rtcp_src_0 ! udpsink port=5003 host=$DEST sync=false async=false \
|
|
udpsrc port=5007 ! rtpbin.recv_rtcp_sink_0
|