diff options
author | TheTroll <trolldev@gmail.com> | 2010-04-09 12:14:20 +0200 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-04-09 12:14:20 +0200 |
commit | ad1bef4dea8d283d57f5050bfa4003777043d905 (patch) | |
tree | 667d22a1edfcb5bca4ce91d4044bf4e2a0105345 /bin | |
parent | 71179178aef6e3a525373a99c249507a8400787c (diff) | |
download | istreamdev-ad1bef4dea8d283d57f5050bfa4003777043d905.tar.gz istreamdev-ad1bef4dea8d283d57f5050bfa4003777043d905.tar.bz2 |
Fixed PID creation
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/istream.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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" ] |