#!/bin/sh set -e sudo aptitude install git build-essential ffmpeg pkg-config libavformat-dev runit git clone `cat m3u8-segmenter-git-repo` cd m3u8-segmenter ./configure make sudo cp m3u8-segmenter /usr/local/bin cd .. sudo cp start-hls.sh /usr/local/bin echo "For improved performance add following to /etc/fstab" echo "tmpfs /var/www/live tmpfs size=1G,mode=755,uid=flumotion,gid=flumotion 0 0"