Run ffmpeg in a separate screen.
screen -S streamThen run the streaming script.
Use Ctrl+A,D to detach the stream screen.
Then you can exit your shell.
| ffconcat version 1.0 | |
| file dirtrhodes.mp3 | |
| file ddgrove.mp3 | |
| file hustle.mp3 | |
| file mapoftexas.mp3 | |
| file nothingmuch.mp3 | |
| file slowburn.mp3 | |
| file wildyou.mp3 | |
| file audiofiles.txt |
| start_stream() | |
| { | |
| ffmpeg \ | |
| -stream_loop -1 \ | |
| -re \ | |
| -i car.mp4 \ | |
| -re \ | |
| -f concat -i audiofiles.txt \ | |
| -c:v libx264 -preset superfast -r 24 \ | |
| -c:a aac -b:a 128k \ | |
| -strict \ | |
| -2 \ | |
| -f flv "${target_rtmp}${stream_key}" | |
| } |