pub fn media_duration( file: &Path, ffmpeg: Option<&Path>, ) -> Result<f64, ExportError>
Duration of a media file in seconds (via ffmpeg’s decoder).
If ffmpeg is missing or cannot decode the file.