From 5ea45178e395b31daf631455c31581ab85069c3f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 8 Mar 2017 01:11:44 +0100 Subject: Support custom video or audio sink through variables VSINK ASINK. --- bin/recv-gst-rtp-v-a | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/recv-gst-rtp-v-a') diff --git a/bin/recv-gst-rtp-v-a b/bin/recv-gst-rtp-v-a index d105afe..17cd16e 100755 --- a/bin/recv-gst-rtp-v-a +++ b/bin/recv-gst-rtp-v-a @@ -8,6 +8,8 @@ VCOUNT=${VCOUNT:-$2} # number of video stream(s) to display - default: 1 ACOUNT=${ACOUNT:-$3} # number of audio stream(s) to play - default: 0 VFORMAT=${VFORMAT:-$4} # H264 VP8 RAW - default: RAW AFORMAT=${AFORMAT:-$5} # AMR OPUS RAW - default: RAW +VSINK=${VSINK:-autovideosink} +ASINK=${ASINK:-autoaudiosink} set -u # set multicast groups (also for recorder host) if camera host is wildcard @@ -62,5 +64,5 @@ stream() { gst-launch-1.0 -v \ rtpbin name=rtpbin \ - $(for i in $(seq "${VCOUNT:-1}"); do stream "$i" "$VCAPS" "$VDEC ! autovideosink"; done) \ - $(for j in $(seq "${ACOUNT:-0}"); do stream $((VCOUNT+j)) "$ACAPS" "$ADEC ! autoaudiosink"; done) + $(for i in $(seq "${VCOUNT:-1}"); do stream "$i" "$VCAPS" "$VDEC ! $VSINK"; done) \ + $(for j in $(seq "${ACOUNT:-0}"); do stream $((VCOUNT+j)) "$ACAPS" "$ADEC ! $ASINK"; done) -- cgit v1.2.3