🎥 Make videos programmatically with React
'ffmpeg' --> await getExecutableFfmpeg
Patric Salvisberg71b24a7c189a
diff --git a/packages/it-tests/src/rendering/frame-accuracy-gif.test.ts b/packages/it-tests/src/rendering/frame-accuracy-gif.test.tsindex 95a1f1ab49..e827084cc7 100644--- a/packages/it-tests/src/rendering/frame-accuracy-gif.test.ts+++ b/packages/it-tests/src/rendering/frame-accuracy-gif.test.ts@@ -5,6 +5,7 @@ import path from "path";import sharp from "sharp";import { random } from "remotion";import { expect, test } from "vitest";+import { getExecutableFfmpeg } from "@remotion/renderer/dist/ffmpeg-flags";function selectColor(color: string, frame: number) {return Math.floor((random(`${color}-${frame}`) * 255) % 255);@@ -37,7 +38,7 @@ const getMissedFramesforCodec = async () => {console.log(outputPath);- await execa("ffmpeg", [+ await execa(await getExecutableFfmpeg(null), ["-i",outputPath,"-f",diff --git a/packages/renderer/src/ensure-presentation-timestamp.ts b/packages/renderer/src/ensure-presentation-timestamp.tsindex ffd969fa9c..53f013345b 100644--- a/packages/renderer/src/ensure-presentation-timestamp.ts+++ b/packages/renderer/src/ensure-presentation-timestamp.ts@@ -1,6 +1,7 @@import execa from 'execa';import path from 'path';import type {DownloadMap} from './assets/download-map';+import {getExecutableFfmpeg} from './ffmpeg-flags';import {guessExtensionForVideo} from './guess-extension-for-media';import {truthy} from './truthy';@@ -55,7 +56,7 @@ export const ensurePresentationTimestamps = async (// If there is no file extension for the video, then we need to tempoaconst output = await getTemporaryOutputName(src);- await execa('ffmpeg', [+ await execa(await getExecutableFfmpeg(null), ['-i',src,'-fflags',