Skip to main content

Module container

Module container 

Source
Expand description

Container detection and capability discovery across MP4 and WebM.

Functions§

container_capabilities
Every container zvidlib reads and writes, each named as Container::name spells it. Both are portable Rust and need no platform support, so each reports Support::Available on every target; whether a track inside can be decoded is a separate codec capability.
probe_container
Identifies a source’s container from its leading bytes, never from a file name: an EBML header with a webm or matroska DocType is Container::WebM, and an ftyp or moov box is Container::Mp4. None when neither matches.