tonhowtf/omniget · error
FFmpeg download_direct falhou com status
Error message
FFmpeg download_direct falhou com status {} What it means
FFmpeg wrapper failure in download_direct: ffmpeg was invoked as the downloader (headers/URL args then '-c copy' to output) and exited non-zero — the URL was unreachable, unsupported, or the server rejected the request, so no output was produced.
Solutions
- Verify the URL is directly downloadable (not DRM'd or cookie-gated)
- Pass correct referer/UA headers in the ffmpeg args
- Test the URL with curl/ffmpeg CLI to see the underlying protocol error
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src-tauri/omniget-core/src/core/media_processor.rs:128 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tonhowtf/omniget@8600b91f42 (2026-09-12).
Data as JSON: /api/errors/50104db83fe6f834.
Report an issue: GitHub.
Appendix: source
Thrown at src-tauri/omniget-core/src/core/media_processor.rs:128
}
args.extend([
"-i".to_string(),
url.to_string(),
"-c".to_string(),
"copy".to_string(),
output.to_string(),
]);
let status = crate::core::process::command("ffmpeg")
.args(&args)
.stdout(std::process::Stdio::null())
.stderr(std::process::Stdio::piped())
.status()
.await?;
if !status.success() {
anyhow::bail!("FFmpeg download_direct falhou com status {}", status);
}
Ok(())
}
}
pub fn check_ffmpeg() -> bool {
crate::core::process::std_command("ffmpeg")
.arg("-version")
.stdout(std::process::Stdio::null())
.stderr(std::process::Stdio::null())
.status()
.map(|s| s.success())
.unwrap_or(false)
}
pub fn check_ytdlp() -> bool {
crate::core::process::std_command("yt-dlp")View on GitHub (pinned to 8600b91f42)