Skip to content

cang

Development paused

Active development is on hold while the project maintainer's Dahua camera is producing glitchy recordings. Testing new features is not practical until the hardware issue is resolved. The existing release remains usable.

cang is a lightweight NVR (network video recorder) that watches camera recording folders, transcodes footage to H.264/MP4, and serves it through a FastAPI web UI.

Features

  • Dahua camera adapter — reads .dav footage directly from the camera's folder structure
  • Watchdog-based file monitoring — picks up new recordings without polling
  • ffmpeg transcoding pipeline — re-encodes .dav to H.264/MP4 with faststart
  • FastAPI web UI — browse recordings by day with thumbnail previews
  • Periodic re-scan — catches any files missed during downtime