🎥 Make videos programmatically with React
Update ffmpeg-flags.ts
Jonny Burger6256c04c26dd
diff --git a/packages/renderer/src/ffmpeg-flags.ts b/packages/renderer/src/ffmpeg-flags.tsindex 7849f49a1b..6787a531d0 100644--- a/packages/renderer/src/ffmpeg-flags.ts+++ b/packages/renderer/src/ffmpeg-flags.ts@@ -19,15 +19,20 @@ export const getFfmpegBuildInfo = async (options: {return buildConfig;};-export const ffmpegHasFeature = async (-{ffmpegExecutable, feature, isLambda} :{ ffmpegExecutable: string | null;+export const ffmpegHasFeature = async ({+ ffmpegExecutable,+ feature,+ isLambda,+}: {+ ffmpegExecutable: string | null;feature: 'enable-gpl' | 'enable-libx265' | 'enable-libvpx';- isLambda: boolean;}-) => {+ isLambda: boolean;+}) => {if (isLambda) {// When rendering in the cloud, we don't need a local binary- return true+ return true;}+if (!(await binaryExists('ffmpeg'))) {return false;}