ON THIS PAGE

  • Record Video Node
  • How to place it
  • Inputs and Outputs
  • Usage
  • Examples of functionality
  • Reference

Record Video Node

RecordVideo host node is used for recording ImgFrames and EncodedFrames to video and metadata files. Video is recorded using the mp4 format and metadata is recorded with mcap using protobuf serialization.

How to place it

Python
C++

Python

Python
1with dai.Pipeline() as pipeline:
2    record = pipeline.create(dai.node.RecordVideo)

Inputs and Outputs

Usage

Python
C++

Python

Python
1with dai.Pipeline() as pipeline:
2    record = pipeline.create(dai.node.RecordVideo)
3    record.setRecordVideoFile("video.mp4")
4    record.setRecordMetadataFile("metadata.mcap")

Examples of functionality

Reference

class

dai::node::RecordVideo

#include Record.hpp
variable
Input input
Input for ImgFrame or EncodedFrame messages to be recordedDefault queue is blocking with size 15
function
void run()
function
std::filesystem::path getRecordMetadataFile()
function
std::filesystem::path getRecordVideoFile()
function
CompressionLevel getCompressionLevel()
function
RecordVideo & setRecordMetadataFile(const std::filesystem::path & recordFile)
function
RecordVideo & setRecordVideoFile(const std::filesystem::path & recordFile)
function
RecordVideo & setCompressionLevel(CompressionLevel compressionLevel)
enum

dai::RecordConfig::CompressionLevel CompressionLevel

Need assistance?

Head over to Discussion Forum for technical support or any other questions you might have.