mp4 格式录制,元数据使用 mcap 格式通过 protobuf 序列化进行录制。如何放置
Python
Python
1with dai.Pipeline() as pipeline:
2 record = pipeline.create(dai.node.RecordVideo)输入与输出
使用方式
Python
Python
1with dai.Pipeline() as pipeline:
2 record = pipeline.create(dai.node.RecordVideo)
3 record.setRecordVideoFile("video.mp4")
4 record.setRecordMetadataFile("metadata.mcap")功能示例
参考
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
需要帮助?
请前往 OAKChina 官网 获取技术支持或解答您的任何疑问。