{"id":28637736,"url":"https://github.com/lsongdev/simple-nvr","last_synced_at":"2025-08-07T17:33:05.535Z","repository":{"id":270844419,"uuid":"560854420","full_name":"lsongdev/simple-nvr","owner":"lsongdev","description":"📹 simple nvr software","archived":false,"fork":false,"pushed_at":"2025-04-28T13:12:56.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T05:19:45.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2022-11-02T12:20:59.000Z","updated_at":"2025-06-23T04:30:17.000Z","dependencies_parsed_at":"2025-06-12T18:34:23.301Z","dependency_job_id":"df15b0a1-8bae-4ddd-876b-267149ebe828","html_url":"https://github.com/lsongdev/simple-nvr","commit_stats":null,"previous_names":["lsongdev/simple-nvr","lsongdev/opencv-face-detection.py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsongdev/simple-nvr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fsimple-nvr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fsimple-nvr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fsimple-nvr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fsimple-nvr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/simple-nvr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fsimple-nvr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269295096,"owners_count":24393029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-12T18:34:17.753Z","updated_at":"2025-08-07T17:33:05.527Z","avatar_url":"https://github.com/lsongdev.png","language":"Python","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":[],"sub_categories":[],"readme":"# Simple NVR\n\nA lightweight, web-based Network Video Recorder (NVR) system built with Python, Flask, and OpenCV. Simple NVR supports local, RTSP, and ONVIF cameras, providing live streaming, recording, and PTZ (Pan-Tilt-Zoom) control via a modern web interface.\n\n## Features\n\n- **Multi-camera support**: Add local, RTSP, or ONVIF cameras via configuration.\n- **Live streaming**: View real-time MJPEG streams from all cameras in your browser.\n- **Recording**: Automatically records video to disk, splitting files by duration.\n- **PTZ control**: Control ONVIF camera pan, tilt, and zoom from the web UI.\n- **Playback \u0026 download**: Browse and download recorded video files per camera.\n- **Modern web UI**: Clean, responsive interface for easy camera management.\n\n## Installation\n\n```bash\npip install -r requirements.txt\n```\n\n## Configuration\n\nEdit the `config.yaml` file to define your cameras and server settings. Example:\n\n```yaml\nhost: 0.0.0.0\nport: 8000\noutput_dir: recordings\n\ncameras:\n  - id: cam1\n    type: local\n    source: 0\n\n  - id: cam2\n    type: rtsp\n    source: rtsp://user:password@192.168.1.100/stream1\n    rotate: 0\n\n  - id: cam3\n    type: onvif\n    host: 192.168.1.101\n    port: 80\n    user: admin\n    password: yourpassword\n    rotate: 1\n```\n\n- `type`: `local`, `rtsp`, or `onvif`\n- `source`: Camera index (for local), RTSP URL, or ONVIF details\n- `rotate`: (optional) 0, 1, or 2 (number of 90-degree rotations)\n\n## Usage\n\nStart the NVR server:\n\n```bash\npython main.py\n```\n\nThe web interface will be available at `http://\u003chost\u003e:\u003cport\u003e/` (default: `http://localhost:8000/`).\n\n## Web Interface\n\n- **Index page**: Lists all cameras, their status, and live preview thumbnails.\n- **Camera page**: View live stream, control PTZ (if supported), and browse/download recordings.\n- **Start/Stop**: Start or stop individual camera streams and recordings.\n\n### PTZ Controls (ONVIF cameras)\n- Use the arrow buttons to move the camera left, right, up, or down.\n- Press the stop button to halt movement.\n\n## Recordings\n\n- Video files are saved in the `recordings/\u003ccamera_id\u003e/` directory as `.avi` files.\n- Files are split by duration (default: 1 hour per file).\n\n## Notes\n\n- `.avi` video files and the `recordings/` directory are ignored by git (see `.gitignore`).\n- For ONVIF cameras, ensure the camera supports ONVIF and the credentials are correct.\n- The web UI uses AJAX for PTZ and camera control actions.\n\n## License\n\nThis project is licensed under the [GPLv3 license and specific limitations](https://github.com/lsongdev/.github/blob/main/LICENSE.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fsimple-nvr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fsimple-nvr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fsimple-nvr/lists"}