From cb16fc17693be6f9d1108cae15e7f7f87726b487 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Mon, 27 Feb 2012 00:12:33 +0100 Subject: [PATCH] add historical "transogg" script --- transogg | 493 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 493 insertions(+) create mode 100755 transogg diff --git a/transogg b/transogg new file mode 100755 index 0000000..4a44dec --- /dev/null +++ b/transogg @@ -0,0 +1,493 @@ +#!/bin/bash + +source /etc/transogg.conf + +[ ! -d "$TEMPDIR" ] && mkdir -p "$TEMPDIR" + +# log errors +exec 2> $TEMPDIR/debug-$$.log + +set -E + +MyPID=$$ + +tty=$(who -m|awk '{print $2}') + +cleanup() { + pkill -t $tty find||true + unset files + export killed=1 +} + +export -f cleanup + +usage() { + cat <<-EOF + $0 [-D] [-n ] [-F] [-s ] [-t ] + + -n : run simultaneous processes (overrides config + file) + -l : Don't start transcoding if the load average reaches + -T