diff options
-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" ] |