Expand description
Core mp4-to-chunk loading logic for Rerun.
Reads any .mp4 file (or its in-memory bytes) and emits an iterator of
re_chunk::Chunks ready to be sent to a recording or chunk store.
Two output modes are supported via Mode:
Mode::Asset— emit anre_sdk_types::archetypes::AssetVideoblob chunk plus are_sdk_types::archetypes::VideoFrameReferenceindex chunk.Mode::Stream— demux the mp4 withre_videoand emit a staticre_sdk_types::archetypes::VideoStreamcodec chunk followed by per-GOP (or per-sample)VideoSample/IsKeyframechunks.
The entry point is load_mp4_from_bytes, with a native-only load_mp4
convenience wrapper that reads the bytes from a path on disk.
Structs§
- Mp4Config
- Configuration for
crate::load_mp4_from_bytes.
Enums§
- Mode
- Output mode for
crate::load_mp4_from_bytes. - Mp4Error
- Errors produced by the mp4 reader.
Functions§
- load_
mp4 - Load an mp4 file from disk and return an iterator of chunks.
- load_
mp4_ from_ bytes - Load mp4 bytes from memory and return an iterator of chunks.