Recording & Playback
Applies to MiBeeNvr v0.15.0
MiBee NVR captures camera video streams as MP4 segments and saves them to disk. A built-in web interface lets you browse, search, and download recordings.
How Recording Works
- Frame capture: fetches video frames from cameras via RTSP / ONVIF / SRT / RTMP / libcamera
- Muxing: wraps frames in an MP4 container (H.264 / H.265)
- Segmentation: splits the stream into MP4 files at a configurable interval
- Indexing: stores metadata for each segment (timestamp, camera, file path, etc.) in SQLite
- Cleanup: automatically deletes expired segments based on the retention policy
Defaults
| Setting | Default | Description |
|---|---|---|
| Recording directory | /var/lib/mibee-nvr (storage.root_dir) |
The data volume (/data) in Docker |
| Segment duration | 30 seconds | storage.segment_duration (10s – 5m) |
| Retention | 30 days | cleanup.retention_days; older segments are deleted |
| Disk usage | ~1 GB/day/camera | Estimate for 1080p H.264; adaptive mode cuts it by 75%+ |
Configuration
Recording Settings
storage:
root_dir: "/var/lib/mibee-nvr" # recording root path
segment_duration: "30s" # segment length (10s – 5m)
cleanup:
retention_days: 30 # days to keep
Recording Density
Every camera picks one recording mode (recording_mode):
| Mode | Behavior | Best for |
|---|---|---|
continuous (default) |
Full-rate recording | General surveillance |
adaptive |
Motion-aware — calm spans drop to timelapse-grade sparse writing; activity / audio / external triggers instantly restore full rate | Doors, hallways, warehouses that sit empty most of the day — 75%+ less disk |
Tuning knobs, the audio trigger, the ambient-audio layer and activity retrieval live in the dedicated Adaptive Recording guide.
Choosing a Segment Duration
| Duration | Pros | Cons |
|---|---|---|
| 10s–30s | Fast loading, low memory | Many files, high I/O |
| 1 m (recommended) | Balanced performance and resources | — |
| 2m–5m | Fewer files | Higher memory usage, slower loading |
Retention Policy
- By days:
max_days: 30keeps the most recent 30 days - By disk: monitors disk usage and deletes the oldest segments first
- Manual: delete individual segments from the web UI, or bulk-clean by date / orphan files with
mibee-nvr cleanup
Web UI Playback
Accessing Recordings
- Open the web interface and go to the Recordings page.
- Use the toolbar to filter by type (All / Video / Timelapse / MJPEG), by camera, by AI detection (person / vehicle), by activity (motion / static / scene-cut, plus a minimum activity score), or search by keyword.
- Pick a day using the month switcher and calendar.
- In Timeline view, click or drag the timeline to position playback; in List view, click a segment's View to open it.
Timeline View
The Recordings page defaults to a per-camera timeline of the day's coverage, with AI detection events overlaid as markers on the tracks:

- Track fill: that time range has recordings; tracks use three legend types — Video, Timelapse samples (sparse raw timelapse segments), and Timelapse (merged timelapse footage)
- Timelapse bar playback: click a merged timelapse bar to play it directly
- AI markers: hover to see the event summary (category, target, hit count); click to jump to that moment
- now indicator: the current time position
List View
Switch to List for a paginated table showing camera, format (MP4 (HEVC) / JPEG, etc.), duration, size, start time, and merge status, with multi-select batch delete:

Consecutive segments are automatically merged (marked "Merged") and load as one unit during playback.
Playback Detail
Click View in the list to open the playback page: seek by dragging the progress bar, change playback speed, take snapshots, and download the file:

Merged timelapse footage plays in the same place:
- In Timelapse playback view, switch between frame browsing (seekable, continuous across segments) and the original realtime stream (keeps audio, not seekable)
- Un-merged timelapse segments offer Merge & Play — live merge progress and ETA, with playback starting automatically once ready; the job can be cancelled and retried on failure
- Preview frames thumbnails help you locate a moment quickly
Searching Recordings
Search by time range:
- Select a camera.
- Set the start and end times.
- Click Search.
- Choose a segment from the results to play.
Downloading Recordings
Single Segment
In the web UI:
- Locate the segment.
- Click the Download button.
- Save the MP4 file.
Batch Download
# Download via WebDAV
rclone copy nvr:/recordings/camera-id/2026-08-18/ ./local-folder/
# Download via FTP
wget -r ftp://admin:[email protected]:2121/recordings/camera-id/
Export by Time Range
There is no single "export a time range" endpoint; locate the segments in the range and download them one by one (a merged long segment is often a whole day):
# List recordings in a time range, then download each
curl -u admin:password \
"http://192.168.1.50:9090/api/recordings?camera_id=front-door&start=2026-08-18T00:00:00Z&end=2026-08-18T12:00:00Z"
curl -u admin:password \
-o segment.mp4 \
"http://192.168.1.50:9090/api/recordings/{id}/download"
Storage Statistics
Two places to look:
- Dashboard → Storage trend: per-camera usage / segment counts / share, plus a stacked daily-write chart (clickable legend)
- Settings → Storage: root path, candidate volumes & migration

| Metric | Description |
|---|---|
| Total usage | Disk space consumed by all recordings |
| Today's additions | Data recorded today |
| Per-camera breakdown | Disk usage per camera |
| Trend chart | Storage trends over the past 7 / 30 days |
Recording Status
Healthy Recording
In the web UI, the camera status indicator should show green (recording).
Recording Errors
Common errors and fixes:
| Error | Cause | Fix |
|---|---|---|
| Camera offline | Network issue or powered off | Check network connectivity |
| Permission denied | Recording directory not writable | Check directory permissions |
| Disk full | Insufficient storage space | Add disk or adjust the retention policy |
| Encoding unsupported | Camera codec not in the supported list | Check the encoding field configuration |
Recording Logs
The NVR logs to stdout (journald under systemd):
# systemd deployments
journalctl -u mibee-nvr -f | grep -i record
# Docker deployments
docker compose logs -f mibee-nvr | grep -i record
Advanced Features
Adaptive Recording
Calm spans drop to sparse keyframe writing; activity instantly restores full rate — see the dedicated Adaptive Recording guide.
cameras:
- id: "front-door"
recording_mode: "adaptive" # default "continuous"
Recording Schedule
Restrict recording to specific time windows (e.g. daytime only); nothing is written outside the window:
cameras:
- id: "office-cam"
recording_schedule:
time_ranges:
- start: "09:00"
end: "18:00"
days_of_week: [1, 2, 3, 4, 5] # 0=Sunday … 6=Saturday; empty = every day
Different hours per day and overnight windows — each range can carry its own days_of_week, and an end at or before the start runs into the next day (the Web UI edits these per range):
cameras:
- id: "study-cam"
recording_schedule:
time_ranges:
- { start: "15:00", end: "23:00", days_of_week: [1, 2, 3, 4, 5] } # weekdays
- { start: "07:00", end: "23:00", days_of_week: [0, 6] } # weekends
- { start: "22:00", end: "06:00", days_of_week: [5] } # Fri night → Sat 06:00
External-Event Triggered Recording
MQTT messages, scripts or an AI backend can pull a camera back to full rate (paired with adaptive mode = event-driven recording):
curl -u admin:password -X POST \
http://192.168.1.50:9090/api/cameras/front-door/adaptive/trigger \
-H "Content-Type: application/json" \
-d '{"source": "automation", "hold": "30s"}'
See MQTT Integration.
FAQ
Recording Won't Play
- Make sure your player supports H.265 (VLC recommended).
- Try converting the codec:
ffmpeg -i input.mp4 -c:v libx264 output.mp4
Corrupted Recording Files
- Segment writes use "temp file + atomic rename" — an abnormal shutdown mid-recording cannot corrupt segments already on disk.
- If an individual file still won't play, it is usually source-stream reference-frame loss at a disconnect instant — verify in the NVR web player (the frontend decodes with tolerance); to salvage, try
ffmpeg -i input.mp4 -c copy output.mp4.
Next Steps
- Audio — audio recording and two-way talk
- Timelapse — timelapse recording
- Transcoding — video transcoding