Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 750 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 750 Bytes

Physical Protection System (PPS) Camera Feed

Description and Purpose

This is a Flask server designed to stream two MP4s:

  1. /vid/door_closed.mp4 (default)
  2. /vid/door_open.mp4 (streamed for a set time)

The server has the ability to receive API calls to:

  1. Switch the default door_closed.mp4 feed to door_open.mp4 when /switch is called.
  2. Freeze the stream when /frz is called

Installation Instructions

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

Directory Structure

vid - folder containing two .mp4 files

Starting the Server

python3 stream.py