Skip to main content

"file" Sink

Creates an MP4 video file for each channel by taking the original source video and compositing annotations (such as bounding boxes) as an overlay.

note

The video file is created with the name specified in the address property appended with the channel ID that produced the metadata (before the extension).

Example: tmp.mp4 will be named tmp-0.mp4 for channel 0, tmp-1.mp4 for channel 1, etc.

caution

This sink is mostly used for internal debugging and may not be able to render annotations for custom elements, especially if they don't follow Megh-standardized metadata formats.

Examples

REST API

Create Sink:

{
"type": "file",
"address": "output.mp4",
"filter": []
}

Configuration File

Sample:

sinks:
- type: file
address: output.mp4
filter: []