Record Video Node
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
variable
Input input
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.