From 81baafd295c829ca9ff6df20b07f565d93da64bd Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Thu, 22 Jan 2026 16:37:09 +0100 Subject: [PATCH] fix ffmpeg --- ffmpeg-service/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ffmpeg-service/main.py b/ffmpeg-service/main.py index fa33401..0880c1e 100644 --- a/ffmpeg-service/main.py +++ b/ffmpeg-service/main.py @@ -203,6 +203,12 @@ async def process_reel(request: ReelRequest, x_api_key: str = Header(None)): filter_complex_parts = [] mix_inputs = 0 + if has_music: + cmd.extend(["-i", str(input_audio_path)]) + + if has_tts: + cmd.extend(["-i", str(tts_audio_path)]) + # Prepare inputs for mixing if has_original_audio: # Original audio usually needs to be lowered if there is music/voice