Skip to main content

Module program_stream

Module program_stream 

Source
Expand description

Program Stream walker — ISO/IEC 13818-1 §2.5.3.1–2.5.3.3 (Tables 2-37, 2-38).

Iterates through a Program Stream, yielding each Pack, which itself carries a PackHeader, an optional SystemHeader, and parsed PES packets (via mpeg-pes).

The stream terminates with the MPEG_program_end_code 0x000001B9.

Structs§

Pack
A single pack within a Program Stream: a pack_header(), optionally a system_header(), followed by zero or more PES packets.

Functions§

parse_all_packs
Iterate over all packs in a Program Stream buffer.
parse_pack
Parses a single pack from the start of b.