diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-15 00:34:19 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-15 00:34:19 +0100 |
commit | e15ed7596332db8d84422342d318d26d0f6e7dda (patch) | |
tree | 600010aa1deca2486920405793f4ae6c8fe08f5d /bin/recv-gst-rtsp-v-a | |
parent | b62f7b9330cac68a8bdfafaf004720fe0560da5d (diff) |
Initial RTSP scripts.
Diffstat (limited to 'bin/recv-gst-rtsp-v-a')
-rwxr-xr-x | bin/recv-gst-rtsp-v-a | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/recv-gst-rtsp-v-a b/bin/recv-gst-rtsp-v-a new file mode 100755 index 0000000..1426dc0 --- /dev/null +++ b/bin/recv-gst-rtsp-v-a @@ -0,0 +1,11 @@ +#!/bin/sh + +# Receive live video/audio media + +set -e + +URI=${URI:-${1:-rtsp://127.0.0.1:8554/cam0}} +VSINK=${VSINK:-autovideosink} +ASINK=${ASINK:-autoaudiosink} + +gst-launch-1.0 playbin -v uri="$URI" ${VSINK:+video-sink="$VSINK"} latency=0 ${ASINK:+audio-sink="$ASINK"} |