#!/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' -c:v copy -threads 4 -f flv rtmp://a.rtmp.youtube.com/live2/{YOUR_STREAM_KEY}) fi