This is a Flask server designed to stream two MP4s:
/vid/door_closed.mp4
(default)/vid/door_open.mp4
(streamed for a set time)
The server has the ability to receive API calls to:
- Switch the default
door_closed.mp4
feed todoor_open.mp4
when/switch
is called. - Freeze the stream when
/frz
is called
Python Version: 3.8.10
APT Extras:
sudo apt-get update && sudo apt-get install libgl1 ffmpeg libsm6 libxext6 -y
PIP Packages:
pip install requirements.txt
vid
- folder containing two .mp4 files
python3 stream.py