🎥 Make videos programmatically with React
add quote around paths to take into account if there are spaces in file paths
Sven Elmendorp5a475446174f
diff --git a/packages/template-tiktok/sub.mjs b/packages/template-tiktok/sub.mjsindex 96216fc636..43b85e5d4b 100644--- a/packages/template-tiktok/sub.mjs+++ b/packages/template-tiktok/sub.mjs@@ -24,7 +24,7 @@ import {const extractToTempAudioFile = (fileToTranscribe, tempOutFile) => {// Extracting audio from mp4 and save it as 16khz wav fileexecSync(- `npx remotion ffmpeg -i ${fileToTranscribe} -ar 16000 ${tempOutFile} -y`,+ `npx remotion ffmpeg -i "${fileToTranscribe}" -ar 16000 "${tempOutFile}" -y`,{ stdio: ["ignore", "inherit"] },);};