From 09feb1eb6dc70e54f5028561676fe7465f2ec44b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 20 Feb 2018 23:21:42 +0100 Subject: remove old hls setup --- contrib/hls/create-runit-conf.sh | 48 --------------------------------- contrib/hls/install.sh | 18 ------------- contrib/hls/m3u8-segmenter-git-repo | 1 - contrib/hls/start-hls.sh | 53 ------------------------------------- 4 files changed, 120 deletions(-) delete mode 100755 contrib/hls/create-runit-conf.sh delete mode 100755 contrib/hls/install.sh delete mode 100644 contrib/hls/m3u8-segmenter-git-repo delete mode 100755 contrib/hls/start-hls.sh diff --git a/contrib/hls/create-runit-conf.sh b/contrib/hls/create-runit-conf.sh deleted file mode 100755 index a5f2f46..0000000 --- a/contrib/hls/create-runit-conf.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -SOURCES="av-orig av-en" -PROFILES="mini low medium high" - -if [ -z "$1" ]; then - echo "Usage $0 " - exit 1 -fi - -name=$1 -OUT_D=runit - -rm -rf "$OUT_D" -mkdir -p "$OUT_D" - -for src in $SOURCES; do - for profile in $PROFILES; do - echo "creating runit instance for $src - $profile" - DIR="$OUT_D/hls-$name-$src-$profile" - mkdir -p "$DIR/log" -cat >> "$DIR/run" <&1 -exec chpst -u flumotion:flumotion /usr/local/bin/start-hls.sh "$name" "$src" "$profile" -EOF - chmod +x "$DIR/run" - -cat >> "$DIR/log/run" < (high|medium|low|mini)" - exit 1 -fi - -name=$1 -quality=$3 -stream_name="$name/$2-hls-$quality" -src="http://localhost:8000/$2-flash-$quality.flv" -segmenter="/usr/local/bin/m3u8-segmenter" -len=3 -num=3 -url="http://live.spreadspace.org/" - -case "$3" in - high) - arate=160k - ;; - medium) - arate=128k - ;; - low) - arate=96k - ;; - mini) - arate=64k - ;; - *) - arate=128k - ;; -esac - -cd /var/www -ffmpeg -y -i "$src" -f mpegts -acodec libmp3lame -ar 44100 -ab "$arate" -vcodec copy -vbsf h264_mp4toannexb -async 2 - | $segmenter -i - -d $len -n $num -p "$stream_name" -m "$stream_name.m3u8" -u "$url" -rm -f "$stream_name"-*.ts -rm -f "$stream_name".m3u8 - -exit 0 -- cgit v1.2.3