Skip to main content

demux_mp4_info

Function demux_mp4_info 

Source
pub fn demux_mp4_info(bytes: &[u8]) -> Result<VideoTrackInfo, CvError>
Expand description

Read the MP4 container and return metadata for the FIRST video track.

  • EmptyInput if bytes is empty.
  • InvalidParameter on any container parse failure, if the track timescale is zero, or if there is no video track (e.g. an audio-only container).

Never panics.