So, it automatically turns off at 12 hours? I have many YouTube live streams running and have never noticed that happening. You can set up a bash or Python script that uses the IFSTAT utility that will monitor the bandwidth and restart your streaming script when the bandwidth decreases. If you do that, make sure your script kills the existing ffmpeg process using pkill or you will have multiple ffmpeg processes running. Or you can just do a cron job to kill ffmpeg and start your streaming script again every 11 hours.