Skip to main content

Lightweight NVR: watches folders, transcodes to H.264/MP4, serves a FastAPI web UI.

Project description

Cang (藏) — Minimal Python Network Video Recorder

Licence: AGPL-3.0-or-later Status: Idea phase Woodpecker CI

Cang (藏, cáng, roughly "tsang" with a rising tone) — Chinese for "to store / to archive". Secondary meaning: "hidden", quietly apt for security footage. The name reflects the project's philosophy: cameras do all the clever work; Cang just keeps what they send.

A lightweight NVR that does as little as possible: cameras handle motion detection and object recognition themselves, deposit video clips and snapshot images into a watched folder, and Cang transcodes, indexes, and serves them through a clean web UI grouped by day and hour.

Inspired by LazyNVR, written in Python.

What it does

  • Watches incoming/<camera>/ directories for clips deposited by cameras
  • Transcodes to H.264/MP4 with -movflags +faststart (browser-seekable)
  • Indexes clips in SQLite: camera, timestamp, duration, thumbnail
  • Serves a FastAPI + Jinja2 web UI: day → hour view, click-to-play
  • Keeps clips marked as important; auto-expires the rest after configurable days
  • Runs as a single Podman container; storage is a bind-mounted volume

What it does not do

  • No RTSP / live-stream pulling
  • No motion detection or object recognition (delegated to cameras)
  • No multi-user roles or cloud sync

Status

Idea phase. See concept.md for the full design specification.

Licence

Copyright (C) 2026 contributors

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

See LICENCE for the full text.

Project details


Download files

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

Source Distribution

cang-0.1.0.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

cang-0.1.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file cang-0.1.0.tar.gz.

File metadata

  • Download URL: cang-0.1.0.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"25.11","id":"xantusia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cang-0.1.0.tar.gz
Algorithm Hash digest
SHA256 759e9a4d4acbd4384031cc94b7461c9a138ce0a0b6bd96639732303723b3497f
MD5 8997cab8c0669d9cce6a36ddb654f7e1
BLAKE2b-256 1d30443c1e703b2472db094c1331480a96f9389d32df9ed608b87743b7c543a7

See more details on using hashes here.

File details

Details for the file cang-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cang-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"25.11","id":"xantusia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cang-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37e908fbda7103d127e0af23c0f44851d4e9df7994e49dad2480fe41124f6952
MD5 3922033f5a8bd6bebd5e47ca1d525f73
BLAKE2b-256 4ea57064b640e050ab680af0fd6ef20f834ff363d4f858f1ff789030faf371f5

See more details on using hashes here.

Supported by

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