Skip to main content

probe_video_metadata

Function probe_video_metadata 

Source
pub fn probe_video_metadata(src: &str) -> Result<VideoProbe>
Expand description

Probes a local video file’s metadata via ffprobe -show_streams -show_format -of json, a single subprocess call (no frame decode, no download): the first video stream’s width/height/frame rate, and a duration that prefers the stream’s own duration field but falls back to the container’s format.duration (some containers — notably ones produced by streaming muxers — only populate the latter).