Skip to content

fix(stable-diffusion.ggml): force mp4 container in ffmpeg mux#9435

Merged
mudler merged 1 commit into
masterfrom
fix/stablediffusion-ggml-mp4-force-format
Apr 19, 2026
Merged

fix(stable-diffusion.ggml): force mp4 container in ffmpeg mux#9435
mudler merged 1 commit into
masterfrom
fix/stablediffusion-ggml-mp4-force-format

Conversation

@mudler
Copy link
Copy Markdown
Owner

@mudler mudler commented Apr 19, 2026

gen_video's ffmpeg subprocess was relying on the filename extension to choose the output container. Distributed LocalAI hands the backend a staging path (e.g. /staging/localai-output-NNN.tmp) that is renamed to .mp4 only after the backend returns, so ffmpeg saw a .tmp extension and bailed with "Unable to choose an output format". Inference had already completed and the frames were piped in, producing the cryptic "video inference failed (code 1)" at the API layer.

Pass -f mp4 explicitly so the container is selected by flag instead of by filename suffix.

gen_video's ffmpeg subprocess was relying on the filename extension to
choose the output container. Distributed LocalAI hands the backend a
staging path (e.g. /staging/localai-output-NNN.tmp) that is renamed to
.mp4 only after the backend returns, so ffmpeg saw a .tmp extension and
bailed with "Unable to choose an output format". Inference had already
completed and the frames were piped in, producing the cryptic
"video inference failed (code 1)" at the API layer.

Pass -f mp4 explicitly so the container is selected by flag instead of
by filename suffix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mudler mudler merged commit 60633c4 into master Apr 19, 2026
17 of 18 checks passed
@mudler mudler deleted the fix/stablediffusion-ggml-mp4-force-format branch April 19, 2026 22:41
@localai-bot localai-bot added the bug Something isn't working label May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants