Skip to content

🎥 Make videos programmatically with React

path.resolve bug fix

Patric Salvisberg45bdabe178e9
diff --git a/packages/example/src/test/stills.test.ts b/packages/example/src/test/stills.test.ts
index 19ac313bc1..982a1d53cb 100644
--- a/packages/example/src/test/stills.test.ts
+++ b/packages/example/src/test/stills.test.ts
@@ -34,6 +34,7 @@ test('Can render a still using Node.JS APIs', async () => {
ffmpegExecutable: null,
ffprobeExecutable: null,
downloadMap: RenderInternals.makeDownloadMap(),
+ remotionRoot: process.cwd(),
});
const serveUrl = `http://localhost:${port}`;
diff --git a/packages/renderer/src/ffmpeg-flags.ts b/packages/renderer/src/ffmpeg-flags.ts
index 366e71eedb..6b22f8058a 100644
--- a/packages/renderer/src/ffmpeg-flags.ts
+++ b/packages/renderer/src/ffmpeg-flags.ts
@@ -46,8 +46,8 @@ export const getFfmpegAbsolutePath = (remotionRoot: string): string => {
const destinationPath =
os.platform() === 'win32'
- ? path.resolve(getFfmpegFolderName(remotionRoot), '/ffmpeg.exe')
- : path.resolve(getFfmpegFolderName(remotionRoot), '/ffmpeg');
+ ? path.resolve(getFfmpegFolderName(remotionRoot), 'ffmpeg.exe')
+ : path.resolve(getFfmpegFolderName(remotionRoot), 'ffmpeg');
return destinationPath;
};