feat: Add Remotion video rendering endpoint with image upload, TTS generation, and dynamic word timings.

This commit is contained in:
Michael committed 2026-03-24 13:54:37 +01:00
1 parent 297af0ab0d
commit d97c0ed73a
1 file changed
+3 -3
+3 -3
View File
@@ -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 },