From d97c0ed73a4c53a07264b13f642cce966f8c1b64 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Tue, 24 Mar 2026 13:54:37 +0100 Subject: [PATCH] feat: Add Remotion video rendering endpoint with image upload, TTS generation, and dynamic word timings. --- server/routes/remotion.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes/remotion.ts b/server/routes/remotion.ts index 11cc133..87dfd1f 100644 --- a/server/routes/remotion.ts +++ b/server/routes/remotion.ts @@ -171,9 +171,9 @@ remotionRouter.post("/render", upload.array("images", 4), async (req, res) => { console.log("🎬 Rendering media...", effectiveDurationInFrames, "frames"); - // Standard Chromium path on Alpine - const systemChromiumPath = "/usr/bin/chromium-browser"; - const browserExecutable = fs.existsSync(systemChromiumPath) ? systemChromiumPath : undefined; + // Standard Chromium paths — Alpine installs at /usr/bin/chromium, Debian/Ubuntu at /usr/bin/chromium-browser + const chromiumPaths = ["/usr/bin/chromium", "/usr/bin/chromium-browser"]; + const browserExecutable = chromiumPaths.find(p => fs.existsSync(p)); await renderMedia({ composition: { ...composition, durationInFrames: effectiveDurationInFrames },