Skip to main content

Module keyframe

Module keyframe 

Source
Expand description

Keyframe and Group of Pictures analysis.

This module provides KeyFrameMetadata and GroupOfPicturesInfo for inspecting the keyframe distribution and Group of Pictures structure of a video stream without full-frame decoding.

§Example

use unbundle::{MediaFile, UnbundleError};

let mut unbundler = MediaFile::open("input.mp4")?;
let group_of_pictures = unbundler.video().analyze_group_of_pictures()?;
println!("Total keyframes: {}", group_of_pictures.keyframes.len());
println!("Average Group of Pictures size: {:.1}", group_of_pictures.average_group_of_pictures_size);
println!("Max Group of Pictures size: {}", group_of_pictures.max_group_of_pictures_size);

Structs§

GroupOfPicturesInfo
Summary of the Group of Pictures structure.
KeyFrameMetadata
Information about a single keyframe (sync point).