Minimal Flask app for CCTV streaming.
Project description
flask-cctv-stream
A minimal Flask-based MJPEG video streaming server with fullscreen responsive client UI, camera auto-open/close logic, frame limiting, and resolution scaling.
Quick start
pip install flask-cctv-stream
# then open http://localhost:8080/
Configuration
You can configure via CLI args (highest priority) or environment variables (fallback). Defaults are shown below.
CLI flags
--camera-index int Camera index (default 0)
--width int Frame width (default 1280)
--height int Frame height (default 720)
--fps int FPS limit (default 15)
--timeout int Inactivity timeout seconds (default 2)
--host str Bind host (default 0.0.0.0)
--port int Bind port (default 8080)
--log-level str Logging level (default INFO)
Environment variables (used when the corresponding flag is not provided)
CAMERA_INDEX FRAME_WIDTH FRAME_HEIGHT
FPS_LIMIT INACTIVITY_TIMEOUT
HOST PORT LOG_LEVEL
Running with overrides
flask-cctv-stream \
--camera-index 0 --width 1280 --height 720 \
--fps 15 --timeout 2 --host 0.0.0.0 --port 8080 --log-level DEBUG
# or via env vars
CAMERA_INDEX=0 FRAME_WIDTH=1280 FRAME_HEIGHT=720 \
FPS_LIMIT=15 INACTIVITY_TIMEOUT=2 PORT=8080 LOG_LEVEL=DEBUG \
flask-cctv-stream
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_cctv_stream-0.0.1.tar.gz.
File metadata
- Download URL: flask_cctv_stream-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3395e6248bb89209de4c5bdaf87ac7c7e94bceb2a91bfb2122584af76776dc9
|
|
| MD5 |
0eb2b65e0d4ca2adecafa34868d35395
|
|
| BLAKE2b-256 |
8bc4e0d9f43ac82745044c547b17c1bd07cd250761be66b4f956540fff226e2a
|
Provenance
The following attestation bundles were made for flask_cctv_stream-0.0.1.tar.gz:
Publisher:
publish.yml on phoenixthrush/flask-cctv-stream
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flask_cctv_stream-0.0.1.tar.gz -
Subject digest:
b3395e6248bb89209de4c5bdaf87ac7c7e94bceb2a91bfb2122584af76776dc9 - Sigstore transparency entry: 895930188
- Sigstore integration time:
-
Permalink:
phoenixthrush/flask-cctv-stream@d0f6bc01b1a97767558dd792cf66f156ee622b6a -
Branch / Tag:
refs/tags/v.0.0.1 - Owner: https://github.com/phoenixthrush
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d0f6bc01b1a97767558dd792cf66f156ee622b6a -
Trigger Event:
release
-
Statement type:
File details
Details for the file flask_cctv_stream-0.0.1-py3-none-any.whl.
File metadata
- Download URL: flask_cctv_stream-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df14fd4acbd8d814921b2b66c1e0a51291a13f48dab6e615c3ba28e9134f0bfc
|
|
| MD5 |
83f9bf8f8415a7fe62d91aec05b7389e
|
|
| BLAKE2b-256 |
4b3c24f64e86f7e7ee17a6beded973d42db6f3c187f3fdc7e9a7a79bb50c358b
|
Provenance
The following attestation bundles were made for flask_cctv_stream-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on phoenixthrush/flask-cctv-stream
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flask_cctv_stream-0.0.1-py3-none-any.whl -
Subject digest:
df14fd4acbd8d814921b2b66c1e0a51291a13f48dab6e615c3ba28e9134f0bfc - Sigstore transparency entry: 895930230
- Sigstore integration time:
-
Permalink:
phoenixthrush/flask-cctv-stream@d0f6bc01b1a97767558dd792cf66f156ee622b6a -
Branch / Tag:
refs/tags/v.0.0.1 - Owner: https://github.com/phoenixthrush
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d0f6bc01b1a97767558dd792cf66f156ee622b6a -
Trigger Event:
release
-
Statement type: