jbilcke-hf HF Staff commited on
Commit
6402478
·
1 Parent(s): fab3624

use stream_loop and not loop

Browse files
Files changed (1) hide show
  1. scripts/stream.sh +1 -1
scripts/stream.sh CHANGED
@@ -4,7 +4,7 @@ echo "starting final stream loop.."
4
  while true; do
5
  sleep 1
6
  echo "trying to create the final stream.."
7
- ffmpeg -fflags +discardcorrupt -re -i video.pipe -loglevel panic -loop 1 -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv
8
 
9
  echo "final stream got interrupted, will try again in 1 sec"
10
  done
 
4
  while true; do
5
  sleep 1
6
  echo "trying to create the final stream.."
7
+ ffmpeg -fflags +discardcorrupt -re -i video.pipe -loglevel panic -stream_loop 1 -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv
8
 
9
  echo "final stream got interrupted, will try again in 1 sec"
10
  done