mcap-codec-support
High-performance decoder and encoder factories for robotics data in MCAP files. It supports regular ROS2 CDR messages, H.264/H.265/VP9/AV1 video, and Cloudini/Draco point clouds.
Install all decoding backends:
uv add "mcap-codec-support[all]"
The base package contains shared protocols and schema helpers and imports without loading any codec backend. Install only the capability needed:
| Extra | Enables |
|---|---|
ros2 |
Fast generic ROS 2 CDR decoding |
video |
Video/image codecs and VideoDecompressFactory |
pointcloud |
Cloudini point-cloud codecs and decoder factories |
draco |
Draco point-cloud codecs |
all |
Combined decoder factory and every backend |
Video, point-cloud, and Draco extras remain separate because their compiled dependencies account for most of the download and installed footprint.
Read every supported message type with small-mcap:
from mcap_codec_support import create_decoder_factories
from small_mcap import read_message_decoded
with open("input.mcap", "rb") as stream:
messages = read_message_decoded(
stream,
decoder_factories=create_decoder_factories(video_format="raw"),
)
for message in messages:
print(message.channel.topic, message.decoded_message)
video_format="raw" produces ROS2 Image-shaped dictionaries.
video_format="compressed" produces JPEG CompressedImage-shaped
dictionaries. Compressed point clouds are returned as PointCloud2-shaped
dictionaries. All other ROS2 messages use the fast CDR decoder.
For more control, compose the individual VideoDecompressFactory,
PointCloudDecompressFactory, and ROS2 DecoderFactory instances yourself.
Keep specialized factories before the general ROS2 factory.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcap_codec_support-0.16.0.tar.gz.
File metadata
- Download URL: mcap_codec_support-0.16.0.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d0bb480f20139d06884d190c8ca8d24ce6e1ee9eed327b5cf0de608b5dfbca
|
|
| MD5 |
033e578c53b613f237f9704522170fe9
|
|
| BLAKE2b-256 |
1fd5aed9259ff1cb6300460141b9c6cd01e56feab117b9abd121e8437838ed09
|
File details
Details for the file mcap_codec_support-0.16.0-py3-none-any.whl.
File metadata
- Download URL: mcap_codec_support-0.16.0-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
144868c030722ac91642509c5e75eda9f5f9d9676a3740e3269f56e8eea160c5
|
|
| MD5 |
1ee7024e138aa520d90ae4083dc5d612
|
|
| BLAKE2b-256 |
89ef68b406760394401465b84424fee2c439e3f6e483bf3703ed8ac8d0e448bf
|