From ad1bef4dea8d283d57f5050bfa4003777043d905 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 9 Apr 2010 12:14:20 +0200 Subject: Fixed PID creation --- bin/istream.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/istream.sh b/bin/istream.sh index 41520af..eb835e4 100755 --- a/bin/istream.sh +++ b/bin/istream.sh @@ -57,6 +57,8 @@ fi -sc_threshold 40 -i_qfactor 0.71 -bt $VRATE -maxrate $VRATE -bufsize $VRATE -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 \ -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 -threads 4 - 2>$FFMPEGLOG 1>./fifo) & +sleep 1 + # Store ffmpeg pid FFPID=$! if [ ! -z "$FFPID" ] @@ -71,6 +73,8 @@ fi # Now start segmenter (trap "rm -f ./segmenter.pid; cat ./fifo" EXIT HUP INT TERM ABRT; $SEGMENTERPATH ./fifo $SEGDUR stream stream.m3u8 $HTTP_PATH$SESSION/ $SEGWIN) & +sleep 1 + # Store segmenter pid SEGPID=$! if [ ! -z "$SEGPID" ] -- cgit v1.2.3