🎥 Make videos programmatically with React
fix
Jonny Burger356ff900404b
diff --git a/packages/it-tests/src/rendering/frame-accuracy-gif.test.ts b/packages/it-tests/src/rendering/frame-accuracy-gif.test.tsindex e827084cc7..0be39324bc 100644--- a/packages/it-tests/src/rendering/frame-accuracy-gif.test.ts+++ b/packages/it-tests/src/rendering/frame-accuracy-gif.test.ts@@ -5,7 +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";+import { RenderInternals } from "@remotion/renderer";function selectColor(color: string, frame: number) {return Math.floor((random(`${color}-${frame}`) * 255) % 255);@@ -38,7 +38,7 @@ const getMissedFramesforCodec = async () => {console.log(outputPath);- await execa(await getExecutableFfmpeg(null), [+ await execa(await RenderInternals.getExecutableFfmpeg(null, process.cwd()), ["-i",outputPath,"-f",diff --git a/packages/it-tests/src/rendering/frame-accuracy-video.test.ts b/packages/it-tests/src/rendering/frame-accuracy-video.test.tsindex 85baebdff1..704fc06bd4 100644--- a/packages/it-tests/src/rendering/frame-accuracy-video.test.ts+++ b/packages/it-tests/src/rendering/frame-accuracy-video.test.ts@@ -5,7 +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";+import { RenderInternals } from "@remotion/renderer";function selectColor(color: string, frame: number) {return Math.floor((random(`${color}-${frame}`) * 255) % 255);@@ -34,7 +34,7 @@ const getMissedFramesforCodec = async () => {});- await execa(await getExecutableFfmpeg(null), [+ await execa(await RenderInternals.getExecutableFfmpeg(null, process.cwd()), ["-i",outputPath,"-f",diff --git a/packages/renderer/src/index.ts b/packages/renderer/src/index.tsindex fbdefe5999..251f649cf3 100644--- a/packages/renderer/src/index.ts+++ b/packages/renderer/src/index.ts@@ -18,6 +18,7 @@ import {symbolicateError} from './error-handling/symbolicate-error';import {SymbolicateableError} from './error-handling/symbolicateable-error';import {ffmpegHasFeature,+ getExecutableFfmpeg,getFfmpegBuildInfo,getFfmpegVersion,} from './ffmpeg-flags';@@ -173,6 +174,7 @@ export const RenderInternals = {cleanDownloadMap,convertToPositiveFrameIndex,findRemotionRoot,+ getExecutableFfmpeg,};// Warn of potential performance issues with Apple Silicon (M1 chip under Rosetta)