create pidfile and explain things more

このコミットが含まれているのは:
n9k 2021-04-12 09:36:52 +00:00
コミット 2c3ade626b
1個のファイルの変更4行の追加1行の削除

ファイルの表示

@ -19,6 +19,9 @@ HLS_LIST_SIZE=$(echo $DELETION_THRESHOLD / $HLS_TIME | bc)
mkdir -p stream
# This shell script's process ID, so we can tell if the stream is online or not
echo $$ > stream/pid.txt
# This exists so we can corrupt video streams of viewers who are too delayed
ffmpeg -f lavfi -i color=size="$BOX_WIDTH"x"$BOX_HEIGHT":rate=$FRAMERATE:color=black \
-f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 \
@ -30,7 +33,7 @@ ffmpeg -f lavfi -i color=size="$BOX_WIDTH"x"$BOX_HEIGHT":rate=$FRAMERATE:color=b
rm stream/corrupt.m3u8 stream/init.mp4
mv stream/corrupt0.m4s stream/corrupt.m4s
# The current time, so we know when the stream started
date +%s > stream/start.txt
# This is the command you should edit