Skip to content

🎥 Make videos programmatically with React

add -shortest to ffmpeg option

yuta0801216c97004cea
diff --git a/packages/renderer/src/stitcher.ts b/packages/renderer/src/stitcher.ts
index 2da8c16316..7f3d117395 100644
--- a/packages/renderer/src/stitcher.ts
+++ b/packages/renderer/src/stitcher.ts
@@ -106,6 +106,7 @@ export const stitchFramesToVideo = async (options: {
},dynaudnorm`,
].join(';'),
],
+ '-shortest',
options.force ? '-y' : null,
options.outputLocation,
]