mr-otcs
mr-otcs copied to clipboard
Automated video looping, streaming, and schedule generation
This would allow for a natural end to the stream without interrupting programming if immediate termination is not needed or desired.
This would allow very short video files like commercials to be automatically excluded from the schedule file without needing to add their file names to `SCHEDULE_EXCLUDE_FILE_PATTERN`.
Attempt to keep the stream alive while searching for a missing file.
Notify the user immediately if the stream is stopped for any reason using the `smtplib` module.
If the RTMP process exits due to loss of connectivity to the output server, the audio from the source stream will desynchronize until the program is restarted completely.
``` [Info] RTMP process started on 2024-05-20 15:46:22.413979. [Play] 20. /home/pi/videos/b.mp4 - Length: 0:18:05. [Info] 47:40:53 left before restart. [Notice] Not writing schedule for b: Name matches SCHEDULE_EXCLUDE_FILE_PATTERN. [Info] Encoding...
This pull request implements an e-mail daemon with a queue for alert messages. Configuration is done in config.ini with an option to use environment variables for credentials.
Manually aborting the stream should not trigger an alert, as it will disrupt the process of gathering exception information for further reports.
Now that I've been through this process a few times, here are some notes I've collected... First of all, the Raspberry Pi 5 8GB could not handle the streaming, likely...
On Raspberry Pi 4, the hardware encoder may fail spontaneously after several weeks of uptime, and the ffmpeg process accessing it cannot be killed. The only known remedy is to...