🎥 Make videos programmatically with React
remotionroot
Jonny Burgerd74187bce583
diff --git a/packages/renderer/src/ffmpeg-flags.ts b/packages/renderer/src/ffmpeg-flags.tsindex 9f8a879776..50bf8b3068 100644--- a/packages/renderer/src/ffmpeg-flags.ts+++ b/packages/renderer/src/ffmpeg-flags.ts@@ -12,12 +12,10 @@ const isDownloading: Record<string, boolean> = {};export type FfmpegVersion = [number, number, number] | null;-export const getFfmpegBuildInfo = async (- options: {- ffmpegExecutable: string | null;- },- remotionRoot: string-) => {+export const getFfmpegBuildInfo = async (options: {+ ffmpegExecutable: string | null;+ remotionRoot: string;+}) => {if (buildConfig !== null) {return buildConfig;}@@ -109,7 +107,7 @@ export const ffmpegHasFeature = async ({return false;}- const config = await getFfmpegBuildInfo({ffmpegExecutable}, remotionRoot);+ const config = await getFfmpegBuildInfo({ffmpegExecutable, remotionRoot});return config.includes(feature);};@@ -128,12 +126,10 @@ export const getFfmpegVersion = async (options: {ffmpegExecutable: string | null;remotionRoot: string;}): Promise<FfmpegVersion> => {- const buildInfo = await getFfmpegBuildInfo(- {- ffmpegExecutable: options.ffmpegExecutable,- },- options.remotionRoot- );+ const buildInfo = await getFfmpegBuildInfo({+ ffmpegExecutable: options.ffmpegExecutable,+ remotionRoot: options.remotionRoot,+ });return parseFfmpegVersion(buildInfo);};diff --git a/packages/renderer/src/validate-ffmpeg.ts b/packages/renderer/src/validate-ffmpeg.tsindex 92f7eef4eb..7d1e083bbc 100644--- a/packages/renderer/src/validate-ffmpeg.ts+++ b/packages/renderer/src/validate-ffmpeg.ts@@ -55,12 +55,10 @@ export const checkAndValidateFfmpegVersion = async (options: {ffmpegExecutable: options.ffmpegExecutable,remotionRoot: options.remotionRoot,});- const buildConf = await getFfmpegBuildInfo(- {- ffmpegExecutable: options.ffmpegExecutable,- },- options.remotionRoot- );+ const buildConf = await getFfmpegBuildInfo({+ ffmpegExecutable: options.ffmpegExecutable,+ remotionRoot: options.remotionRoot,+ });warnAboutFfmpegVersion({ffmpegVersion, buildConf});};