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
perf(media): encode lossless alpha Normalize at libvpx's fastest speed (#383)
Sharky Wang06daf6f7600f
diff --git a/packages/media-execution/src/execute.ts b/packages/media-execution/src/execute.tsindex a4d69604..049b4d70 100644--- a/packages/media-execution/src/execute.ts+++ b/packages/media-execution/src/execute.ts@@ -683,8 +683,11 @@ export async function executeNormalizeMedia(: ["-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.+ // Lossless VP9 decodes to the same pixels at every speed setting, so the+ // alpha encode uses libvpx's fastest one.const encoderArgs = encoding.alpha- ? ["-c:v", "libvpx-vp9", "-pix_fmt", "yuva420p", "-lossless", "1", "-auto-alt-ref", "0"]+ ? ["-c:v", "libvpx-vp9", "-pix_fmt", "yuva420p", "-lossless", "1", "-auto-alt-ref", "0",+ "-row-mt", "1", "-deadline", "realtime", "-cpu-used", "8"]: ["-c:v", "libx264", "-preset", "veryfast", "-pix_fmt", "yuv420p", "-movflags", "+faststart"];await runProcess({executable: env.ffmpegPath,