mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tests/examples/rtp/: Add some more H263p server and client examples.
Original commit message from CVS: * tests/examples/rtp/client-H263p.sdp: * tests/examples/rtp/client-H263p.sh: * tests/examples/rtp/server-VTS-H263p.sh: Add some more H263p server and client examples.
This commit is contained in:
parent
927bf5c8e8
commit
a3dd91a4ae
5 changed files with 84 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-10-07 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* tests/examples/rtp/client-H263p.sdp:
|
||||
* tests/examples/rtp/client-H263p.sh:
|
||||
* tests/examples/rtp/server-VTS-H263p.sh:
|
||||
Add some more H263p server and client examples.
|
||||
|
||||
2008-10-03 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||
|
||||
* configure.ac::
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 1ff63d8f92c36bf207434436f4ce75f2a4ea11a4
|
||||
Subproject commit ea93f2ed580bcc19322e4c07f677eda980c821eb
|
10
tests/examples/rtp/client-H263p.sdp
Normal file
10
tests/examples/rtp/client-H263p.sdp
Normal file
|
@ -0,0 +1,10 @@
|
|||
v=0
|
||||
o=- 1188340656180883 1 IN IP4 127.0.0.1
|
||||
s=Session streamed by GStreamer
|
||||
i=server.sh
|
||||
t=0 0
|
||||
a=tool:GStreamer
|
||||
a=type:broadcast
|
||||
m=video 5000 RTP/AVP 96
|
||||
c=IN IP4 127.0.0.1
|
||||
a=rtpmap:96 H263-1998/90000
|
17
tests/examples/rtp/client-H263p.sh
Executable file
17
tests/examples/rtp/client-H263p.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# A simple RTP receiver
|
||||
#
|
||||
|
||||
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998"
|
||||
|
||||
#DEST=192.168.1.126
|
||||
DEST=localhost
|
||||
|
||||
LATENCY=100
|
||||
|
||||
gst-launch -v gstrtpbin name=rtpbin latency=$LATENCY \
|
||||
udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \
|
||||
rtpbin. ! rtph263pdepay ! ffdec_h263 ! xvimagesink \
|
||||
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \
|
||||
rtpbin.send_rtcp_src_0 ! udpsink host=$DEST port=5005 sync=false async=false
|
49
tests/examples/rtp/server-VTS-H263p.sh
Executable file
49
tests/examples/rtp/server-VTS-H263p.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# A simple RTP server
|
||||
# sends the output of videotestsrc as h263+ encoded RTP on port 5000, RTCP is sent on
|
||||
# port 5001. The destination is 127.0.0.1.
|
||||
# the video receiver RTCP reports are received on port 5005
|
||||
#
|
||||
# .-------. .-------. .-------. .----------. .-------.
|
||||
# |vts | |h263enc| |h263pay| | rtpbin | |udpsink| RTP
|
||||
# | src->sink src->sink src->send_rtp send_rtp->sink | port=5000
|
||||
# '-------' '-------' '-------' | | '-------'
|
||||
# | |
|
||||
# | | .-------.
|
||||
# | | |udpsink| RTCP
|
||||
# | send_rtcp->sink | port=5001
|
||||
# .-------. | | '-------' sync=false
|
||||
# RTCP |udpsrc | | | async=false
|
||||
# port=5005 | src->recv_rtcp |
|
||||
# '-------' '----------'
|
||||
#
|
||||
|
||||
# change this to send the RTP data and RTCP to another host
|
||||
DEST=127.0.0.1
|
||||
|
||||
# tuning parameters to make the sender send the streams out of sync. Can be used
|
||||
# ot test the client RTCP synchronisation.
|
||||
#VOFFSET=900000000
|
||||
VOFFSET=0
|
||||
AOFFSET=0
|
||||
|
||||
# H263+ encode from the source
|
||||
VELEM="videotestsrc is-live=1"
|
||||
VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
|
||||
VSOURCE="$VELEM ! $VCAPS"
|
||||
VENC="ffenc_h263p ! rtph263ppay"
|
||||
|
||||
VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink"
|
||||
VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink"
|
||||
VRTCPSRC="udpsrc port=5005 name=vrtpsrc"
|
||||
|
||||
PIPELINE="gstrtpbin name=rtpbin
|
||||
$VSOURCE ! $VENC ! rtpbin.send_rtp_sink_2
|
||||
rtpbin.send_rtp_src_2 ! $VRTPSINK
|
||||
rtpbin.send_rtcp_src_2 ! $VRTCPSINK
|
||||
$VRTCPSRC ! rtpbin.recv_rtcp_sink_2"
|
||||
|
||||
echo $PIPELINE
|
||||
|
||||
gst-launch -v $PIPELINE
|
Loading…
Reference in a new issue