diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-08 01:11:44 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-08 01:11:57 +0100 |
commit | 5ea45178e395b31daf631455c31581ab85069c3f (patch) | |
tree | 97ff233ca9edc49795bbe4d84ac453cfddf25b20 /bin/recv-gst-rtp-v-a | |
parent | 7a3a28bb6195f8309f87a588320ae109b1b0412c (diff) |
Support custom video or audio sink through variables VSINK ASINK.
Diffstat (limited to 'bin/recv-gst-rtp-v-a')
-rwxr-xr-x | bin/recv-gst-rtp-v-a | 6 |
1 files changed, 4 insertions, 2 deletions
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) |