Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix(render): resolve FFmpeg compatibility and capture review findings
kashorine367e7f7b4f6
diff --git a/packages/media-execution/src/execute.ts b/packages/media-execution/src/execute.tsindex 668699ae..4cc9e042 100644--- a/packages/media-execution/src/execute.ts+++ b/packages/media-execution/src/execute.ts@@ -677,7 +677,7 @@ export async function executeNormalizeMedia("setsar=1",].join(",");const visualInput = animation === undefined- ? [...encoding.inputArgs, "-autorotate", "-i", input, "-map", `0:${plan.video.index}`]+ ? [...encoding.inputArgs, "-autorotate", "1", "-i", input, "-map", `0:${plan.video.index}`]: ["-f", "concat", "-safe", "0", "-i", await animatedWebpConcat(env, animation, work), "-map", "0:v:0"];// The execution format must retain the source's alpha while materializing// the program clock. Both encodings publish the same SynchronizedMedia type.diff --git a/packages/provider-hyperframes-local/src/opaque-capture.ts b/packages/provider-hyperframes-local/src/opaque-capture.tsindex bf18f55f..2b2f2a63 100644--- a/packages/provider-hyperframes-local/src/opaque-capture.ts+++ b/packages/provider-hyperframes-local/src/opaque-capture.ts@@ -40,7 +40,7 @@ export async function createOpaqueFrameCapture(session: CaptureSession) {return ready;},background(value: string, pending: Promise<unknown>[]) {- for (const match of value.matchAll(/url\(\s*(?:"((?:\\.|[^"])*)"|'((?:\\.|[^'])*)'|([^)]*))\s*\)/gu)) {+ for (const match of value.matchAll(/url\(\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|([^\s"'()]+))\s*\)/gu)) {const url = (match[1] ?? match[2] ?? match[3] ?? "").trim();if (url) pending.push(this.load(url));}diff --git a/packages/provider-hyperframes-local/test/browser.test.ts b/packages/provider-hyperframes-local/test/browser.test.tsindex 018f219e..dc463e44 100644--- a/packages/provider-hyperframes-local/test/browser.test.ts+++ b/packages/provider-hyperframes-local/test/browser.test.ts@@ -49,7 +49,7 @@ test("browser selection rejects ambiguous choices and floating versions", () =>assert.throws(() => browserExecutablePath({ chromePath: process.execPath, browserVersion: recommendedBrowserVersion }), /mutually exclusive/u);assert.throws(() => browserExecutablePath({ browserVersion: "latest" }), /exact four-part/u);assert.throws(() => browserExecutablePath({ chromePath: "" }), /must not be empty/u);- const chosen = { browserVersion: "151.0.7922.71", browserCacheDirectory: "/tmp/explicit-browser-cache" };+ const chosen = { browserVersion: "151.0.7922.71", browserCacheDirectory: join(tmpdir(), "explicit-browser-cache") };const program = localHyperframesBrowserProgram({ ...chosen, id: "render", nodePath: process.execPath, ffprobePath: "ffprobe" });assert.equal(program.installation!.commands[0]!.args.at(-1), chosen.browserVersion);assert.equal(program.installation!.commands[0]!.args.at(-2), chosen.browserCacheDirectory);