From 3b7ea88b7382f7c21b120bdc9bda5bb10547f55d Mon Sep 17 00:00:00 2001 From: C4illin Date: Tue, 21 Jan 2025 23:24:53 +0100 Subject: [PATCH] fix: ffmpeg works without ffmpeg_args issue #212 --- src/converters/ffmpeg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converters/ffmpeg.ts b/src/converters/ffmpeg.ts index 744f416..5154dab 100644 --- a/src/converters/ffmpeg.ts +++ b/src/converters/ffmpeg.ts @@ -700,7 +700,7 @@ export async function convert( 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) => { exec(command, (error, stdout, stderr) => {