aboutsummaryrefslogtreecommitdiffstats
path: root/encode-gst.sh
diff options
context:
space:
mode:
authorYoann QUERET <yoann@queret.net>2016-02-09 16:29:25 +0100
committerYoann QUERET <yoann@queret.net>2016-02-09 16:29:25 +0100
commita153cb1e281357300ae43454cba593b9cf0c3bde (patch)
tree4430d0a1019e0f6cbe0e7935f3faaf613ffe343b /encode-gst.sh
parentbcd51f68047854efc73f53463e0091bae14b7ad9 (diff)
downloaddab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.tar.gz
dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.tar.bz2
dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.zip
Bye bye old script, welcome supervisor
Diffstat (limited to 'encode-gst.sh')
-rwxr-xr-xencode-gst.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/encode-gst.sh b/encode-gst.sh
deleted file mode 100755
index 255b4be..0000000
--- a/encode-gst.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-#
-# Encode one programme using gstreamer.
-#
-# Status: Experimental
-
-URL=$1
-ID=$2
-DST=$3
-
-QUEUEDELAY=400000 #400ms
-
-BITRATE=80
-RATE=32000
-
-if [[ "$DST" == "" ]]
-then
- echo "Usage $0 url id destination"
- exit 1
-fi
-
-while true
-do
-
- gst-launch -q \
- uridecodebin uri=$URL ! \
- queue "max-size-time=$QUEUEDELAY" ! \
- audioresample quality=8 ! \
- audioconvert ! \
- audio/x-raw-int, "rate=$RATE,format=S16LE,channels=2" ! \
- filesink location="/dev/stdout" | \
- dabplus-enc -i /dev/stdin -b $BITRATE -r $RATE -f raw -a -o $DST
-
- R=$?
-
- NOW=$(date)
-
- mail -s "Encoder $ID restart $URL" matthias+odrge1@mpb.li << EOF
-The encoder id:$ID
-encoding $URL -> $DST with gstreamer was restarted at
-$NOW
-
-The return code was $R
-
-EOF
-
- sleep 5
-done