{"record":{"id":"50104db83fe6f834","repo":"tonhowtf/omniget","slug":"ffmpeg-download-direct-falhou-com-status","errorCode":null,"errorMessage":"FFmpeg download_direct falhou com status {}","messagePattern":"FFmpeg download_direct falhou com status (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-tauri/omniget-core/src/core/media_processor.rs","lineNumber":128,"sourceCode":"        }\n\n        args.extend([\n            \"-i\".to_string(),\n            url.to_string(),\n            \"-c\".to_string(),\n            \"copy\".to_string(),\n            output.to_string(),\n        ]);\n\n        let status = crate::core::process::command(\"ffmpeg\")\n            .args(&args)\n            .stdout(std::process::Stdio::null())\n            .stderr(std::process::Stdio::piped())\n            .status()\n            .await?;\n\n        if !status.success() {\n            anyhow::bail!(\"FFmpeg download_direct falhou com status {}\", status);\n        }\n\n        Ok(())\n    }\n}\n\npub fn check_ffmpeg() -> bool {\n    crate::core::process::std_command(\"ffmpeg\")\n        .arg(\"-version\")\n        .stdout(std::process::Stdio::null())\n        .stderr(std::process::Stdio::null())\n        .status()\n        .map(|s| s.success())\n        .unwrap_or(false)\n}\n\npub fn check_ytdlp() -> bool {\n    crate::core::process::std_command(\"yt-dlp\")","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/tonhowtf/omniget/blob/8600b91f4246848bac346874daa9e61c1fc5677a/src-tauri/omniget-core/src/core/media_processor.rs#L110-L146","documentation":"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.","triggerScenarios":"Thrown at src-tauri/omniget-core/src/core/media_processor.rs:128 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8600b91f4246848bac346874daa9e61c1fc5677a","analyzedAt":"2026-09-12T14:29:19.317Z","contentChangedAt":"2026-09-12T14:29:19.317Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}