Skip to main content

File Output

Writes video with bounding box overlays to a file.

Single output

One file with all streams tiled together:

- type: "file"
path: "/recordings/output.mp4"
codec: "h264"
container: "mp4"
bitrate: 4000000
encoder: "gpu"

Per-stream output

Separate file per input stream:

- type: "file"
mode: "multi"
codec: "h264"
container: "mp4"
bitrate: 4000000
encoder: "gpu"
streams:
- source_id: 0
path: "/recordings/cam0.mp4"
- source_id: 1
path: "/recordings/cam1.mp4"

Fields

FieldTypeDefaultDescription
pathstringOutput file path (required when mode is single)
modestring"single""single" = one tiled file, "multi" = per-stream files
codecstring"h264"Video codec: h264 or h265
containerstring"mp4"Container format: mp4 or mkv
bitrateinteger4000000Target bitrate in bits/sec (4 Mbps)
encoderstring"gpu"Encoder backend: gpu (NVIDIA hardware) or cpu (software)
streamslistPer-stream output mappings (required when mode is multi)