summaryrefslogtreecommitdiff
path: root/tests/examples/rtp/client-H264-PCMA.sh
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-11-15 10:52:31 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2010-12-02 19:16:47 +0100
commitfdfe76ac535dbb8166a9f0da93d01c7bd8acdc83 (patch)
tree8253e694be5e76fcd5c6b516bb3cf35db85eb6f5 /tests/examples/rtp/client-H264-PCMA.sh
parent7ed250c7932047361a57e6e6ca96dc89aed60f7e (diff)
examples: improve RTP examples
Make the examples use autovideosink and ffmpegcolorspace for better compàtibility. Make some more variables for the sink and the decoders. Set zerolatency tuning on x264enc for better realtime results.
Diffstat (limited to 'tests/examples/rtp/client-H264-PCMA.sh')
-rwxr-xr-xtests/examples/rtp/client-H264-PCMA.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/examples/rtp/client-H264-PCMA.sh b/tests/examples/rtp/client-H264-PCMA.sh
index bebeae861..600cefe93 100755
--- a/tests/examples/rtp/client-H264-PCMA.sh
+++ b/tests/examples/rtp/client-H264-PCMA.sh
@@ -47,12 +47,18 @@ LATENCY=200
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA"
+VIDEO_DEC="rtph264depay ! ffdec_h264"
+AUDIO_DEC="rtppcmadepay ! alawdec"
+
+VIDEO_SINK="ffmpegcolorspace ! autovideosink"
+AUDIO_SINK="audioconvert ! audioresample ! autoaudisink"
+
gst-launch -v gstrtpbin name=rtpbin latency=$LATENCY \
udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \
- rtpbin. ! rtph264depay ! ffdec_h264 ! xvimagesink \
+ rtpbin. ! $VIDEO_DEC ! $VIDEO_SINK \
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \
rtpbin.send_rtcp_src_0 ! udpsink port=5005 host=$DEST sync=false async=false \
udpsrc caps=$AUDIO_CAPS port=5002 ! rtpbin.recv_rtp_sink_1 \
- rtpbin. ! rtppcmadepay ! alawdec ! audioconvert ! audioresample ! autoaudiosink \
+ rtpbin. ! $AUDIO_DEC ! $AUDIO_SINK \
udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 \
rtpbin.send_rtcp_src_1 ! udpsink port=5007 host=$DEST sync=false async=false