Skip to main content

scratch_has_audio

Function scratch_has_audio 

Source
pub fn scratch_has_audio(input: &Path) -> bool
Expand description

Probe input for an audio track via gst-discoverer-1.0. Returns true only when an audio stream is reported; any failure (binary missing, probe error, no audio) returns false, so the transcode falls back to a video-only pipeline rather than hang on a decodebin audio pad that never fires.