You can still stop and start the stream with cron. The timeout is more than a couple hours.
The underwater stream runs 24/7 but I do a pi reboot with cron every night to break up the YouTube recordings. I also wrote a simple bash script that uses ifstat to monitor the input and output bandwidth. If the bandwidth falls below a minimum it kills ffmpeg and runs the RTMP script again. The underwater camera runs on a LTE cellular modem so occasionally the internet will momentarily go away.
The underwater stream runs 24/7 but I do a pi reboot with cron every night to break up the YouTube recordings. I also wrote a simple bash script that uses ifstat to monitor the input and output bandwidth. If the bandwidth falls below a minimum it kills ffmpeg and runs the RTMP script again. The underwater camera runs on a LTE cellular modem so occasionally the internet will momentarily go away.