Rebuild missing MessageIndex / Summary / ChunkIndex for local MCAP files
Project description
mcapfixindex
为缺少 MessageIndex 的本地 MCAP 文件补全索引(同时重建 Summary / ChunkIndex),生成新的 MCAP。消息内容不变。
安装
pip install mcapfixindex
环境要求:Python 3.10+,macOS / Linux / Windows。
快速开始
检查索引:
mcapfixindex inspect --input /path/to/bag.mcap
补全单个文件:
mcapfixindex fix --input /path/to/bag.mcap --output /path/to/fixed.mcap
批量处理目录:
mcapfixindex fix --input /path/to/mcap_dir --output ./output
常用参数
| 参数 | 默认值 | 说明 |
|---|---|---|
--input |
必填 | .mcap 文件路径,或包含多个 .mcap 的目录 |
--output |
<stem>_indexed.mcap |
输出文件或目录 |
--compression |
preserve |
chunk 压缩:preserve / zstd / lz4 / none |
--force |
关闭 | 即使已有 MessageIndex 也强制重写 |
说明
- 典型输入:已有 Summary / ChunkIndex,但
ChunkIndex.message_index_offsets为空 - 输出为新文件,不原地覆盖
- 消息 payload、schema、channel、attachment、metadata 保持不变
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcapfixindex-0.1.0.tar.gz
(11.0 kB
view details)
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 mcapfixindex-0.1.0.tar.gz.
File metadata
- Download URL: mcapfixindex-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a3a03b7de8808cdb342d638823ec73e84138909dde27a9145743176e9a84058
|
|
| MD5 |
555ec545d37fd6355da52d6415f32a5f
|
|
| BLAKE2b-256 |
52dd199197d8bbbbfefebfc4aa672b52b28fb8b3c0e5de428a3cae0da42336b5
|
File details
Details for the file mcapfixindex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcapfixindex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec115a040b98dbeece3b889997dc0f4e4fbca21ca314315cfc8ec016beedbcd6
|
|
| MD5 |
235b133aee88a46116efb66e0cbeaf78
|
|
| BLAKE2b-256 |
0e541ea3f317282a455729c8064b20ea944f8f43e5aef0d0b4294ca8db6bd166
|