use new variable for escaped command

This commit is contained in:
Abhinav 2023-01-06 12:38:33 +05:30
parent d8b81028b3
commit 9117926b67

View file

@ -37,9 +37,9 @@ export async function runFFmpegCmd(
return cmdPart;
}
});
cmd = shellescape(cmd);
log.info('running ffmpeg command', cmd);
await execAsync(cmd);
const escapedCmd = shellescape(cmd);
log.info('running ffmpeg command', escapedCmd);
await execAsync(escapedCmd);
if (!existsSync(tempOutputFilePath)) {
throw new Error('ffmpeg output file not found');
}