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.