diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts index bebe9c4d..7baa18cd 100644 --- a/electron/ipc/handlers.ts +++ b/electron/ipc/handlers.ts @@ -1589,7 +1589,7 @@ async function muxNativeVideoExportAudio( async function probeMediaDurationSeconds(filePath: string): Promise { const ffmpegPath = getFfmpegBinaryPath() try { - await execFileAsync(ffmpegPath, ['-i', filePath, '-f', 'null', '-'], { timeout: 30000, maxBuffer: 2 * 1024 * 1024 }) + await execFileAsync(ffmpegPath, ['-i', filePath], { timeout: 30000, maxBuffer: 2 * 1024 * 1024 }) } catch (error) { // ffmpeg reports info on stderr even on "success" — parse it from the error const stderr = (error as NodeJS.ErrnoException & { stderr?: string })?.stderr ?? ''