{"record":{"id":"cada7c88b39e8fd5","repo":"tonhowtf/omniget","slug":"ffmpeg-remux-falhou-com-status","errorCode":null,"errorMessage":"FFmpeg remux falhou com status {}","messagePattern":"FFmpeg remux falhou com status (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src-tauri/omniget-core/src/core/media_processor.rs","lineNumber":74,"sourceCode":"                bytes_tx,\n                cancel_token,\n                max_concurrent,\n                max_retries,\n                max_height,\n            )\n            .await\n    }\n\n    pub async fn remux(input: &str, output: &str) -> anyhow::Result<()> {\n        let status = crate::core::process::command(\"ffmpeg\")\n            .args([\"-y\", \"-i\", input, \"-c\", \"copy\", output])\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 remux falhou com status {}\", status);\n        }\n\n        Ok(())\n    }\n\n    pub async fn merge_audio_video(video: &str, audio: &str, output: &str) -> anyhow::Result<()> {\n        let status = crate::core::process::command(\"ffmpeg\")\n            .args([\n                \"-y\", \"-i\", video, \"-i\", audio, \"-map\", \"0:v\", \"-map\", \"1:a\", \"-c\", \"copy\", output,\n            ])\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 merge falhou com status {}\", status);\n        }","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/tonhowtf/omniget/blob/8600b91f4246848bac346874daa9e61c1fc5677a/src-tauri/omniget-core/src/core/media_processor.rs#L56-L92","documentation":"FFmpeg wrapper failure in remux: the ffmpeg child process ran '-c copy' remuxing but exited with a non-success status, so the container transfer did not complete and the output file cannot be trusted.","triggerScenarios":"Thrown at src-tauri/omniget-core/src/core/media_processor.rs:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run with ffmpeg stderr captured to see the exact codec/container mismatch","Verify ffmpeg is installed and on PATH for the app environment","Check input file integrity; a corrupt or truncated input will fail stream copy"],"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"}