Quick start
CCNVR is a network video recorder that does everything in a single process: device onboarding, live view, recording storage and playback.
Pick one of the four deployment methods below. The first visit always opens the setup wizard — set the language, local addresses and admin password there.
| Method | Best for | Artifact |
|---|---|---|
| Windows | Desktops, industrial PCs | ccnvr-windows-amd64-<version>.zip |
| Linux | Production, auto-start on boot | ccnvr-linux-amd64-<version>.zip |
| Docker | Servers, NAS, quick trials | Image ccnvr/ccnvr:latest |
| Feiniu fnOS | x86_64 NAS, native app lifecycle | Manual-install ccnvr-v<version>-x86.fpk |
Windows deployment
- Extract
ccnvr-windows-amd64-<version>.zipto any directory. - Double-click
start.bat. - Open
http://127.0.0.1:16188.
To stop: double-click stop.bat.
- Use
start.bat, do not double-clickccnvr.exedirectly.start.batalso launches the watchdog process, which restarts the service after a crash. - Do not kill
ccnvr.exealone from Task Manager — the watchdog will bring it back. Always stop withstop.bat, which terminates both the watchdog and MediaServer. - Windows Firewall prompts on first start — you must allow it, otherwise other machines on the LAN cannot reach it.
- Only Windows system DLLs are required; no .NET or VC++ runtime needed.
Linux deployment
1. Extract and start
unzip ccnvr-linux-amd64-<version>.zip -d ccnvr-linux-amd64
cd ccnvr-linux-amd64
chmod +x ccnvr ffmpeg start.sh stop.sh MediaServer/MediaServer ai/bin/ccai
sudo ./start.sh
The start script prints the access address of every NIC on the machine. Open http://<ip>:16188.
2. Common commands
./start.sh # Start in background (survives terminal close)
./stop.sh # Stop
./start.sh status # Process status and health check
sudo ./start.sh service # Install systemd service: auto-start + auto-restart
Upgrades are done in the web console under System info → Version & upgrade — no need to extract the package over the existing files.
- No root needed by default. All default ports are above 1024. Only if you change a distribution port to a privileged port (<1024, e.g. RTSP 554) do you need
sudo, orsudo setcap 'cap_net_bind_service=+ep' ./MediaServer/MediaServer. - Do not mix sudo and a normal user. Once started with sudo,
configs/config.tomlis owned by root and a normal-user start can no longer read it. Always use sudo, or fix it withsudo chown -R $(id -un):$(id -gn) .. - Requires glibc ≥ 2.31: Ubuntu 20.04+ / Debian 11+ / CentOS Stream 9+.
- A static ffmpeg ships in the package — nothing to install.
Docker deployment
CCNVR publishes a Linux/amd64 image. Choose where Docker runs, then choose an online or offline package. The four paths below are complete; follow only the one that matches your host.
| Host | Online package | Offline package |
|---|---|---|
| Windows + Docker Desktop | Windows online | Windows offline |
| Linux + Docker Engine | Linux online | Linux offline |
Before you start
- Windows: install Docker Desktop and switch to Linux containers.
- Linux: install Docker Engine and the Compose plugin.
- Both: allow TCP
16188in the host firewall and keep the/datavolume mounted. - Windows uses
compose.bridge.yamland bridge networking. Linux usescompose.yamlwith host networking.
Windows + online package
- Download
ccnvr-docker-online-v<version>.zipfrom the download page. - Extract it and open PowerShell in the extracted folder.
- Pull the image and start CCNVR:
docker compose -f compose.bridge.yaml up -d
- Open
http://localhost:16188and complete the setup wizard.
Windows + offline package
- Download
ccnvr-docker-offline-v<version>.zipfrom the download page. - Extract it and open PowerShell in the extracted folder.
- Load the bundled image:
Get-ChildItem .\image\*.tar.gz | ForEach-Object { docker load -i $_.FullName }
- Start CCNVR:
docker compose -f compose.bridge.yaml up -d
- Open
http://localhost:16188and complete the setup wizard.
Docker Desktop cannot use host networking. ONVIF auto-discovery does not work across the bridge network; add cameras with their RTSP URLs.
Linux + online package
- Download
ccnvr-docker-online-v<version>.zipfrom the download page. - Extract it and enter the folder:
cd /path/to/ccnvr-docker-online-v<version>
- Pull the image and start CCNVR with host networking:
docker compose -f compose.yaml up -d
- Open
http://<server-ip>:16188and complete the setup wizard.
Linux + offline package
- Download
ccnvr-docker-offline-v<version>.zipfrom the download page. - Extract it and enter the folder:
cd /path/to/ccnvr-docker-offline-v<version>
- Load the bundled image:
for f in image/*.tar.gz; do docker load -i "$f"; done
- Start CCNVR with host networking:
docker compose -f compose.yaml up -d
- Open
http://<server-ip>:16188and complete the setup wizard.
Host networking keeps SIP/RTP and ONVIF multicast discovery working. Allow TCP
16188, UDP15060, and the RTP port range required by your deployment. When GB28181 cascade is enabled, also allow TCP + UDP15061.
fnOS deployment
The native fnOS package targets x86_64 devices and does not require Docker. CCNVR and its bundled CCAI analysis service run as processes managed by the fnOS application lifecycle.
- On the download page, select fnOS and download the manual-install
ccnvr-v<version>-x86.fpk. - Open App Center on the fnOS desktop, choose Manual installation, and upload the
.fpkfile. - After installation, open CCNVR from the fnOS desktop. The CCNVR setup wizard opens in a new browser tab.
- Allow TCP
16188on the LAN firewall. Add the other ports only when you use the corresponding protocols.
CLI alternative:
appcenter-cli install-fpk ccnvr-v<version>-x86.fpk
- Use the
.fpkdistributed for manual fnOS installation. Standard Linux ZIP packages and Docker images do not install the desktop entry or fnOS lifecycle scripts. - fnOS currently distributes this release through manual installation rather than the public App Center listing.
- Upgrade from fnOS App Center. In-app self-upgrade is disabled for the native package so that fnOS remains the owner of the application lifecycle.
- Ports
16198and18090are internal services. Keep them on loopback and do not expose them through port forwarding or a reverse proxy. - Configuration, the database and recordings are preserved during a package upgrade. The first uninstall keeps user data; remove it explicitly only after confirming that it is no longer needed.
First-run setup
The first visit opens the setup wizard:
- Language
- Network — GB28181 SIP advertised IP (LAN IP for local deployments, public IP for internet-facing ones), media server IP (
127.0.0.1is fine for a local install) - Product name
- Admin password — default account
admin, passwordadmin; the default password cannot be kept
The wizard does not appear again.
Upload the .lic file under System info → License; it takes effect immediately without a restart. Without a license, CCNVR runs as the free edition (5 channels by default). Channels beyond the licensed count can still be managed and deleted, but not previewed or played back.
Xiaomi / Mi Home cameras
Choose Xiaomi / Mi Home when adding a camera, then scan the displayed QR code with the Mi Home app and confirm on your phone. CCNVR encrypts the account token and keeps it on the server inside the /data volume; it is never sent to the browser.
You can add multiple Xiaomi accounts without a fixed account limit. Each device keeps its source account, so playback and reconnects continue to use the correct credentials after switching accounts in the UI.
If QR login is unavailable, use the account and password fallback and select the matching region. The camera and CCNVR must be on the same LAN, and the server must be able to reach Xiaomi cloud services. Linux Docker deployments must use host networking; Docker Desktop bridge networking cannot provide the required camera P2P connection.
On C700, pan/tilt controls are available while live video is active. Two-way audio is experimental and uses 48 kHz stereo Opus; microphone access requires HTTPS or the documented local-address exception.
Channel folders
Open a channel card’s action menu and choose New folder to create a personal folder containing that channel. Drag a channel onto a folder or choose Move to folder from its action menu. Deleting a folder returns its channels to their default grouping.
Dropping onto an automatic device folder prompts you to create a custom folder with the same name and move the displayed channels into it.
Folders support two levels. Creating a folder from a channel in a top-level folder places it inside that folder. You can also drag a channel directly onto a subfolder in the same view.
On the video wall, click a folder to expand it. Drop a folder onto the wall to replace the current view with its direct channels, starting from the first pane. Unused panes stay empty. On narrow screens, open the channel list from the toolbar and tap a channel to place it in an available pane.
Ports
On a cloud server, open these in the provider's security group as well as the host firewall — the security group is the most commonly missed step.
| Purpose | Port | Protocol | Required |
|---|---|---|---|
| Web console + ONVIF SOAP | 16188 | TCP | Yes |
| GB28181 SIP signaling | 15060 | TCP + UDP | For GB28181 |
| GB28181 cascade signaling (optional) | 15061 | TCP + UDP | Only when cascade is enabled |
| GB28181 media | 31100-31200 | TCP + UDP | For GB28181 |
| RTSP distribution | 25540 | TCP | Optional (enable in Settings) |
| RTMP push / distribution | 19350 | TCP | Optional (enable in Settings) |
| WebRTC media | 31300 | TCP + UDP | Optional (enable in Settings) |
| ONVIF WS-Discovery | 3702 | UDP | Optional (LAN discovery) |
If you use Cloudflare or another CDN: only HTTP(S) can be proxied (orange cloud). RTSP, RTMP, WebRTC and GB28181 need a DNS-only (grey cloud) hostname or a direct connection to the origin IP.
Optional ports are off by default; enable them under Settings → Stream distribution. Web playback, snapshots and recording do not depend on them.
Upper platforms are added under Settings → GB28181 Cascade; nodes are stored in the local database. Cascade supports catalog subscription, live playback and recording playback/download. When adding an upper platform, use the Local Cascade ID assigned by that platform or start with the suggested ID and edit it before saving.
After setup, saving a new GB28181 host address or SIP port restarts CCNVR. A warning icon appears if the host IP is missing from the server’s network interfaces.
Fresh installs with bundled CCAI enable the analysis service by default. Configure channel rules on the AI video analysis page. See Use built-in AI video analysis.
Troubleshooting
| Symptom | Cause |
|---|---|
| GB28181 devices keep timing out and the server logs no SIP traffic at all | UDP 15060 is not open in the security group / firewall |
| ONVIF devices are not discovered on the LAN | Docker is on a bridge network; switch to --network host |
| Device registers but shows no video | RTP range (31100-31200) UDP is blocked, or Sip.Host / Media.SDPIP is not set to the public IP |
License upload returns invalid | No license public key built into the server, or the license does not match this device code |
Linux start says it cannot read config.toml | A previous sudo start changed the file owner to root |
See FAQ, Contact and the API reference for more.
The built-in continuous recording plan and new recording plans default to 30 days of retention.