summaryrefslogtreecommitdiff
path: root/scripts/sydra-sender.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sydra-sender.sh')
-rwxr-xr-xscripts/sydra-sender.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/scripts/sydra-sender.sh b/scripts/sydra-sender.sh
deleted file mode 100755
index bf6a5dd..0000000
--- a/scripts/sydra-sender.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-############################
-
-ROOT_D="$1"
-
-SYDRA_RTP="/home/equinox/spreadspace/sydra/src/sydra-rtp"
-SYDRA_LAUNCH="/home/equinox/spreadspace/sydra/src/sydra-launch"
-
-############################
-
-printUsage() {
- echo "Usage: $0 <basedir>"
-}
-
-if [ -z "$ROOT_D" ]; then
- printUsage
- exit 1
-fi
-if [ ! -d "$ROOT_D" ]; then
- echo "ERROR: can't change to non-existent directory: $ROOT_D"
- exit 2
-fi
-
-. ./include.sh
-
-start_rtp() {
- PORT_BASE=8000
- RECORD_D="$ROOT_D/recordings/sender"
- mkdir -p "$RECORD_D"
-
- herbstclient rule once title="sender" tag="control"
- exec $SYDRA_RTP -n "sender" -D --log stdout:3 --mode sender -O $PORT_BASE \
- --previewsink "textoverlay text=\"local\" shaded-background=true font-desc=\"Sans 18\" ! videoscale add-borders=true ! xvimagesink" \
- --rec-mux matroskamux --rec-name-format "$RECORD_D/%Y-%m-%d_%H-%M-%S.mkv" --rec-video-encoder jpegenc \
- --rec-audio-encoder "audioconvert ! vorbisenc"
-}
-
-start_test() {
- herbstclient rule once title="sender" tag="control"
- exec $SYDRA_LAUNCH -n "sender" -D --log stdout:3 -p "videotestsrc ! video/x-raw,width=864,height=480,framerate=25/1 ! textoverlay text=\"local\" shaded-background=true font-desc=\"Sans 18\" ! videoscale add-borders=true ! xvimagesink"
-}
-
-cd $ROOT_D
-[ -n "$SYDRA_TEST" ] || start_rtp
-[ -n "$SYDRA_TEST" ] && start_test