This is a python script for a raspberry Pi 2/3/4 or other single board computer with composite out to help create a linear TV station on an old CRT TV over an RF modulator. Please do not set up a linear station using a set of rabbit ears and a RF amplifier as this is an FCC violation. This script intends to create an hour-by-hour episode block consisting of two 30 minute segments using "commercials" (create some yourself or grab some off youtube) to help fill in the gaps in the hour schedule. Episodes should ideally conform to the 30 minute or 1 hour episode length standard. Episodes longer than 1 hour would break the timing of the channel (assuming you care). Commercials should be either 15, 30, 45 or 60 seconds, and no longer than 5 minutes.
Prerequisites: Python3, cv2 python library (sudo pip install opencv2-python), VideoLAN(VLC) (Media player command can be subbed in the sh script)