# Record Metadata Only Node

RecordMetadataOnly host node is used for recording
[ImgFrame](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/img_frame.md),
[EncodedFrame](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/encodedframe.md),
[IMUData](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/imu_data.md) and
[PointCloudData](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/pointcloud_data.md) messages to mcap
files.

## How to place it

#### Python

```python
with dai.Pipeline() as pipeline:
    record = pipeline.create(dai.node.RecordMetadataOnly)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto record = pipeline.create<dai::node::RecordMetadataOnly>();
```

## Inputs and Outputs

## Usage

#### Python

```python
with dai.Pipeline() as pipeline:
    record = pipeline.create(dai.node.RecordMetadataOnly)
    record.setRecordFile("metadata.mcap")
```

#### C++

```cpp
dai::Pipeline pipeline;
auto record = pipeline.create<dai::node::RecordMetadataOnly>();
record->setRecordFile("metadata.mcap");
```

## Reference

### dai::node::RecordMetadataOnly

Kind: class

RecordMetadataOnly node, used to record a source stream to a file.

#### dai::RecordConfig::CompressionLevel CompressionLevel

Kind: enum

#### Input input

Kind: variable

Input IMU messages to be recorded (will support other types in the future) Default queue is blocking with size 8

#### void run()

Kind: function

#### std::filesystem::path getRecordFile()

Kind: function

#### CompressionLevel getCompressionLevel()

Kind: function

#### RecordMetadataOnly & setRecordFile(const std::filesystem::path & recordFile)

Kind: function

#### RecordMetadataOnly & setCompressionLevel(CompressionLevel compressionLevel)

Kind: function

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
