🎥 Make videos programmatically with React
Update ffmpeg-flags.ts
Jonny Burgera518519cd9ad
diff --git a/packages/renderer/src/ffmpeg-flags.ts b/packages/renderer/src/ffmpeg-flags.tsindex f158fbc9dc..d81300b4e4 100644--- a/packages/renderer/src/ffmpeg-flags.ts+++ b/packages/renderer/src/ffmpeg-flags.ts@@ -156,6 +156,7 @@ export const downloadFfmpeg = async (): Promise<string> => {const destinationPath = getFfmpegAbsolutePath(remotionRoot);+ console.log('DOWNLOAD', Math.random());isDownloading[url] = true;const totalBytes = await _downloadFile(url, destinationPath, onProgress);onProgress(totalBytes, totalBytes);@@ -171,6 +172,11 @@ export const downloadFfmpeg = async (listeners[url].forEach((listener) => listener(destinationPath));listeners[url] = [];+ console.log({+ destinationPath,+ perm: fs.accessSync(destinationPath, fs.constants.X_OK),+ });+return destinationPath;};