Expand description
Minimal MPEG-1/2 video probing.
Siglus titles sometimes ship MPEG-PS/MPEG-2 video alongside OMV. For now we only implement lightweight parsing of the sequence header (0x000001B3) to retrieve dimensions and frame-rate code.
Structs§
- Mpeg
SeqHeader - Video
Frame Rgba - A decoded video frame in interleaved RGBA8.
Functions§
- decode_
mpeg2_ to_ rgba_ frames - ensure_
mpeg_ like - Convenience: validate that a file looks like MPEG by finding a sequence header.
- find_
sequence_ header - fps_
from_ frame_ rate_ code - Convert MPEG frame_rate_code to nominal FPS.
- probe_
sequence_ header - Scan the first
max_scan_bytesbytes of a file for a MPEG sequence header.