diff --git a/app/support/media-files/process.ts b/app/support/media-files/process.ts index 4b241764..b47ee744 100644 --- a/app/support/media-files/process.ts +++ b/app/support/media-files/process.ts @@ -212,6 +212,7 @@ async function processAudio( await spawnAsync('ffmpeg', [ '-hide_banner', + ['-err_detect', 'explode', '-xerror'], // Fail on error ['-loglevel', 'error'], ['-i', localFilePath], '-y', // Overwrite existing file @@ -352,6 +353,7 @@ async function processVideo( await spawnAsync('ffmpeg', [ '-hide_banner', + ['-err_detect', 'explode', '-xerror'], // Fail on error ['-loglevel', 'error'], ['-i', localFilePath], ['-filter_complex', filters.join(';')],