FileSink
Creates a video file for each source
with the annotated metadata.
This module contains the video sink
. It is responsible for creating a video file
for each source
with the annotated metadata. The video file is created with the
name specified in the configuration appended with the channel that produced before
the extension. For example: tmp.mp4
will be named tmp-0.mp4
for channel 0,
tmp-1.mp4
for channel 1 and so on and so forth.
Examples:
REST API:
WIP
Configuration File:
sink:
- address: ./tmp.mp4
- filter: []
- type: file
FileSink Objects
class FileSink(SinkNode)
Creates a video file for each source
with the annotated metadata.
Attributes:
sink_address
str - The location of the output file(s).sink_filter
function - A function that filters the metadata.
Examples:
sink = FileSink("./tmp.mp4", lambda x: True)