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
需要帮助?
请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。