🎥 Make videos programmatically with React
Merge branch 'ffmpeg-autoinstall' of https://github.com/remotion-dev/remotion into ffmpeg-autoinstall
Jonny Burger1f710fbebbf2
diff --cc packages/renderer/src/assets/download-and-map-assets-to-file.tsindex 64afbde3c1,c343ad93f0..a6c36588ba--- a/packages/renderer/src/assets/download-and-map-assets-to-file.ts+++ b/packages/renderer/src/assets/download-and-map-assets-to-file.ts@@@ -210,16 -217,8 +210,16 @@@ export const downloadAsset = async (validateMimeType(mimeType, src);validateBufferEncoding(encoding, src);+ const output = getSanitizedFilenameForAssetUrl({+ contentDisposition: null,+ downloadDir,+ src,+ contentType: mimeType,+ });+ ensureOutputDirectory(output);+const buff = Buffer.from(assetData, encoding);- fs.writeFileSync(output, buff);+ await fs.promises.writeFile(output, buff);notifyAssetIsDownloaded({src, downloadMap, downloadDir, to: output});return output;}