summaryrefslogtreecommitdiff
path: root/bin/recv-gst-rtsp-v-a
blob: 1426dc0c1c43f66bc9e1f03a493dde191ae3118d (plain)
  1. #!/bin/sh
  2. # Receive live video/audio media
  3. set -e
  4. URI=${URI:-${1:-rtsp://127.0.0.1:8554/cam0}}
  5. VSINK=${VSINK:-autovideosink}
  6. ASINK=${ASINK:-autoaudiosink}
  7. gst-launch-1.0 playbin -v uri="$URI" ${VSINK:+video-sink="$VSINK"} latency=0 ${ASINK:+audio-sink="$ASINK"}