Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(yt-dlp): add DASH fallback in format selector when ffmpeg is unavailable

InstaZDLL2221452c213f
diff --git a/src-tauri/src/core/ytdlp.rs b/src-tauri/src/core/ytdlp.rs
index 60133dda..f2f636a3 100644
--- a/src-tauri/src/core/ytdlp.rs
+++ b/src-tauri/src/core/ytdlp.rs
@@ -850,8 +850,11 @@ pub async fn download_video(
} else {
tracing::warn!("[yt-dlp] ffmpeg not available, using single-stream format");
match quality_height {
- Some(h) if h > 0 => format!("b[height<={}]/b", h),
- _ => "b".to_string(),
+ Some(h) if h > 0 => format!(
+ "b[height<={}]/bv*[height<={}]+ba/b",
+ h, h
+ ),
+ _ => "b/bv*+ba".to_string(),
}
}
}