Skip to main content

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

mcap_codec_support-0.13.0.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcap_codec_support-0.13.0-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

Details for the file mcap_codec_support-0.13.0.tar.gz.

File metadata

  • Download URL: mcap_codec_support-0.13.0.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","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

Hashes for mcap_codec_support-0.13.0.tar.gz
Algorithm Hash digest
SHA256 f34c5fb7b465a736060fb3129d914da6cdbadf8576ecda54dc3598884fee08fe
MD5 2d6bb1c565894ec6cf89a1a9d8ae6b10
BLAKE2b-256 d01620abd1f81cb9553cbb58a2a4cb283f0da518a4d6186c4307b5a240c8f1df

See more details on using hashes here.

File details

Details for the file mcap_codec_support-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: mcap_codec_support-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 50.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","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

Hashes for mcap_codec_support-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb78273bcdc412a03e932f4b7e38ebdd5ce58e846cba35f0789898ff5042e5b
MD5 1666b9681edabcc9d9f38d37abdb01c7
BLAKE2b-256 d54d18553a3c8bfa8a3ba9c62f1a9d4b5bb25310617d86c1c339fbe5b31cae8e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.17.0

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

This release

0.13.0 This release

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page