ON THIS PAGE

  • 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

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

C++

C++
1dai::Pipeline pipeline;
2auto record = pipeline.create<dai::node::RecordVideo>();

Inputs and Outputs

Usage

Python

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

C++

C++
1dai::Pipeline pipeline;
2auto record = pipeline.create<dai::node::RecordVideo>();
3record->setRecordVideoFile("video.mp4");
4record->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)
function
RecordVideo & setFps(unsigned int fps)
enum

dai::RecordConfig::CompressionLevel CompressionLevel

Need assistance?

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