#!/bin/bash if pgrep ffmpeg ; then echo "running" else sudo killall ffmpeg bash <(wget -q https://bibletalk.tv/nebs/assets.txt -O /root/assets.txt) bash <(ffmpeg -stream_loop -1 -re -f concat -safe 0 -nostdin -i 'assets.txt' -r 29.97 -g 59.94 -c:v libx264 -preset superfast -b:v 1M -maxrate 1M -bufsize 2M -threads 4 -movflags +faststart -f flv rtmp://jfk.contribute.live-video.net/app/{YOUR_STREAM_KEY} 2> /root/ffmpeg_log.txt) fi