mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-15 19:29:03 +02:00
feat: Add Remotion video rendering endpoint with image upload, TTS generation, and dynamic word timings.
This commit is contained in:
1 parent
297af0ab0d
commit
d97c0ed73a
1 file changed
+3
-3
@@ -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 },
|
||||
|
||||
Reference in new issue
Block a user