fix: ffmpeg works without ffmpeg_args

issue #212
This commit is contained in:
C4illin 2025-01-21 23:24:53 +01:00
parent 59310c095d
commit 3b7ea88b73

View file

@ -700,7 +700,7 @@ export async function convert(
message = "Done: resized to 256x256"; message = "Done: resized to 256x256";
} }
const command = `ffmpeg ${process.env.FFMPEG_ARGS} -i "${filePath}" ${extra} "${targetPath}"`; const command = `ffmpeg ${process.env.FFMPEG_ARGS || ""} -i "${filePath}" ${extra} "${targetPath}"`;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
exec(command, (error, stdout, stderr) => { exec(command, (error, stdout, stderr) => {