Skip to content

🎥 Make videos programmatically with React

Update call-ffmpeg.ts

Jonny Burger4896b9e5f195
diff --git a/packages/renderer/src/call-ffmpeg.ts b/packages/renderer/src/call-ffmpeg.ts
index 271d6c58c7..c8fb236728 100644
--- a/packages/renderer/src/call-ffmpeg.ts
+++ b/packages/renderer/src/call-ffmpeg.ts
@@ -8,10 +8,18 @@ export const callFfExtraOptions = () => {
env:
process.platform === 'darwin'
? {
- DYLD_LIBRARY_PATH: path.join(getExecutablePath('ffmpeg-cwd')),
+ DYLD_LIBRARY_PATH: path.join(
+ getExecutablePath('ffmpeg-cwd'),
+ 'remotion',
+ 'lib'
+ ),
}
: {
- LD_LIBRARY_PATH: path.join(getExecutablePath('ffmpeg-cwd'), 'lib'),
+ LD_LIBRARY_PATH: path.join(
+ getExecutablePath('ffmpeg-cwd'),
+ 'remotion',
+ 'lib'
+ ),
},
};
};