mpeg-ps
MPEG-1/2 Program Stream parser — ISO/IEC 13818-1 (Rec. ITU-T H.222.0) §2.5.
Parses the .mpg/.vob framing that wraps PES packets: the pack header
(42-bit SCR + program_mux_rate), the optional system header (rate/audio/video
bounds + per-stream P-STD buffer bounds), and the program stream map (PSM).
#![no_std] + alloc; depends only on dvb-common and dvb-pes.
Quick start
use PackHeader;
use Parse;
let bytes = ;
let h = parse.unwrap;
assert_eq!;
use fs;
use program_stream;
let data = read.unwrap;
let = parse_all_packs.unwrap;
println!;
Examples
Features
| Feature | Default | Description |
|---|---|---|
std |
yes | Link the standard library. Without it the crate is #![no_std] + alloc. |
serde |
no | serde::Serialize derives on public types. |
Minimum Supported Rust Version
1.81
License
MIT OR Apache-2.0