4. MCAP Convert¶
mcap-convert is a standalone command-line tool that converts an MCAP recording into the SQLite
.db format used by DDS Record & Replay.
Unlike DDS Replayer, this tool does not publish data back into a DDS domain. Instead, it reads an existing MCAP file and generates a SQLite output file for workflows that require SQL output.
4.1. Using MCAP Convert¶
After installing the standalone conversion tool, source the installation environment and run:
source install/setup.bash
mcap-convert -i /path/to/recording.mcap
If --sql-output is not provided, the tool writes the output next to the input file using the
same base name and the .db extension.
To write the converted output to a specific location, pass --sql-output:
source install/setup.bash
mcap-convert -i /path/to/recording.mcap --sql-output /path/to/recording.db
If the value given to --sql-output has no extension, .db is appended automatically.
4.2. Optional Configuration File¶
The converter accepts an optional YAML configuration file through --config-path.
This file uses the same structure as the DDS Replayer configuration file. See Replay configuration for the available settings.
If type information is not available for a topic in the input MCAP file, the converter still stores the CDR payload in the SQLite output, but deserialized type data cannot be generated for that topic.
4.3. MCAP Convert Command-Line Parameters¶
The mcap-convert application supports the following input arguments:
Command |
Description |
Option |
Possible Values |
Default Value |
|---|---|---|---|---|
Help |
It shows the usage information |
|
||
Version |
It shows the current version |
|
||
Input File |
Input MCAP file path. |
|
Readable file path |
Required |
Configuration File |
Optional YAML configuration |
|
Readable file path |
|
SQL Output |
Output SQLite file path. If the |
|
File path |
Input file path with |
Debug |
Enables the converter logs so the |
|
||
Log Verbosity |
Set the verbosity level so |
|
|
|
Log Filter |
Set a regex string as filter. |
|
String |
|