From c1377e6de75d62be313cf2cbedfaef18c719b21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 30 Oct 2025 09:23:25 +0800 Subject: [PATCH] Remove 'bmp24' argument from getVideoInfo call Updated the extractThumbnail method to call addon.getVideoInfo without the 'bmp24' argument, aligning with the updated addon API. --- src/common/ffmpeg-addon-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ffmpeg-addon-adapter.ts b/src/common/ffmpeg-addon-adapter.ts index acf649d1..eb1b9973 100644 --- a/src/common/ffmpeg-addon-adapter.ts +++ b/src/common/ffmpeg-addon-adapter.ts @@ -129,7 +129,7 @@ export class FFmpegAddonAdapter implements IFFmpegAdapter { */ async extractThumbnail(videoPath: string, thumbnailPath: string): Promise { const addon = this.ensureAddon(); - const info = await addon.getVideoInfo(videoPath, 'bmp24'); + const info = await addon.getVideoInfo(videoPath); // 将缩略图写入文件 await writeFile(thumbnailPath, info.image);