Skip to content

armgit / hypit

Public Imported from GitHub
0

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.

fix(media): use FFmpeg default autorotation across supported releases

kashorin126e73c169d7
diff --git a/packages/media-execution/src/execute.ts b/packages/media-execution/src/execute.ts
index 4cc9e042..0ac7d05a 100644
--- a/packages/media-execution/src/execute.ts
+++ b/packages/media-execution/src/execute.ts
@@ -676,8 +676,10 @@ export async function executeNormalizeMedia(
"scale=trunc(iw*max(sar\\,1)/2)*2:trunc(ih*max(1/sar\\,1)/2)*2",
"setsar=1",
].join(",");
+ // FFmpeg enables autorotation by default. Its positive boolean option changed
+ // syntax across releases; no override is needed to materialize source rotation.
const visualInput = animation === undefined
- ? [...encoding.inputArgs, "-autorotate", "1", "-i", input, "-map", `0:${plan.video.index}`]
+ ? [...encoding.inputArgs, "-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.