mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 19:36:38 +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.
36 lines
1.9 KiB
Bash
Executable file
36 lines
1.9 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# A simple RTP receiver
|
|
#
|
|
# receives H264 encoded RTP video on port 5000, RTCP is received on port 5001.
|
|
# the receiver RTCP reports are sent to port 5006
|
|
#
|
|
# .-------. .----------. .---------. .-------. .-----------.
|
|
# RTP |udpsrc | | rtpbin | |h264depay| |h264dec| |xvimagesink|
|
|
# port=5000 | src->recv_rtp recv_rtp->sink src->sink src->sink |
|
|
# '-------' | | '---------' '-------' '-----------'
|
|
# | |
|
|
# | | .-------.
|
|
# | | |udpsink| RTCP
|
|
# | send_rtcp->sink | port=5005
|
|
# .-------. | | '-------' sync=false
|
|
# RTCP |udpsrc | | | async=false
|
|
# port=5001 | src->recv_rtcp |
|
|
# '-------' '----------'
|
|
|
|
|
|
# the caps of the sender RTP stream. This is usually negotiated out of band with
|
|
# SDP or RTSP. normally these caps will also include SPS and PPS but we don't
|
|
# have a mechanism to get this from the sender with a -launch line.
|
|
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
|
|
|
|
# the destination machine to send RTCP to. This is the address of the sender and
|
|
# is used to send back the RTCP reports of this receiver. If the data is sent
|
|
# from another machine, change this address.
|
|
DEST=127.0.0.1
|
|
|
|
gst-launch -v gstrtpbin name=rtpbin \
|
|
udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \
|
|
rtpbin. ! rtph264depay ! ffdec_h264 ! xvimagesink \
|
|
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \
|
|
rtpbin.send_rtcp_src_0 ! udpsink port=5005 host=$DEST sync=false async=false
|