Skip to content

cang

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