Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_cctv_stream-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_cctv_stream-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for flask_cctv_stream-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b3395e6248bb89209de4c5bdaf87ac7c7e94bceb2a91bfb2122584af76776dc9
MD5 0eb2b65e0d4ca2adecafa34868d35395
BLAKE2b-256 8bc4e0d9f43ac82745044c547b17c1bd07cd250761be66b4f956540fff226e2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for flask_cctv_stream-0.0.1.tar.gz:

Publisher: publish.yml on phoenixthrush/flask-cctv-stream

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flask_cctv_stream-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_cctv_stream-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df14fd4acbd8d814921b2b66c1e0a51291a13f48dab6e615c3ba28e9134f0bfc
MD5 83f9bf8f8415a7fe62d91aec05b7389e
BLAKE2b-256 4b3c24f64e86f7e7ee17a6beded973d42db6f3c187f3fdc7e9a7a79bb50c358b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page