Skip to main content

Module demux

Module demux 

Source

Structs§

AudioTrack
Audio track extracted for passthrough or transcode. Supports two codec families today (Squad-18 + Squad-23):
DemuxResult
MkvStreamingDemuxer
MKV / WebM streaming demuxer. Wraps MatroskaFile whose next_frame API is already pull-shaped, so the streaming impl is a thin wrapper: pull next frame, filter to the video track, AVCC→Annex-B convert if AVC/HEVC, surface as a Sample.
Mp4StreamingDemuxer

Functions§

demux
Dispatch to the right demuxer based on container magic bytes.
demux_mkv
demux_mp4
probe_mkv_color_info
Re-open an MKV container solely to extract the extended Colour sub-elements that don’t fit on StreamInfo.color_metadata (MaxCLL / MaxFALL / SMPTE-2086 mastering primaries / bits_per_channel / chroma siting). Intended for downstream paths that need HDR10 side data for muxing; returns None when the file has no video track, no Colour element, or isn’t a well-formed MKV.