Remove 'bmp24' argument from getVideoInfo call
Updated the extractThumbnail method to call addon.getVideoInfo without the 'bmp24' argument, aligning with the updated addon API.
This commit is contained in:
1 parent
d2c4f425c7
commit
c1377e6de7
1 file changed
+1
-1
@@ -129,7 +129,7 @@ export class FFmpegAddonAdapter implements IFFmpegAdapter {
|
|||||||
*/
|
*/
|
||||||
async extractThumbnail(videoPath: string, thumbnailPath: string): Promise<void> {
|
async extractThumbnail(videoPath: string, thumbnailPath: string): Promise<void> {
|
||||||
const addon = this.ensureAddon();
|
const addon = this.ensureAddon();
|
||||||
const info = await addon.getVideoInfo(videoPath, 'bmp24');
|
const info = await addon.getVideoInfo(videoPath);
|
||||||
|
|
||||||
// 将缩略图写入文件
|
// 将缩略图写入文件
|
||||||
await writeFile(thumbnailPath, info.image);
|
await writeFile(thumbnailPath, info.image);
|
||||||
|
|||||||
Reference in new issue
Block a user