Skip to content

Commit dcb4a62

Browse files
committed
fix(video): support FFmpeg 8
ref #1194
1 parent 11377f5 commit dcb4a62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/video/ffmpeg/get-ffmpeg-version-from-executable.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ export async function getFfmpegVersionFromExecutable(executablePath: string): Pr
1414

1515
// Extract the FFmpeg version from the output, it supports the following patterns:
1616
// "ffmpeg version n4.3.1-11-g2c887141b8-20211231 Copyright" => 4.3.1
17+
// "ffmpeg version n8.0-3-g08a81b090b-20250904 Copyright (c) 2000-2025 the FFmpeg developers"
1718
// "ffmpeg version 4.3.1 Copyright" => 4.3.1
1819
// "ffmpeg version 2025-05-05-git-f4e72eb5a3-full_build-www.gyan.dev"
1920
const results =
20-
/ffmpeg version (?:n)?([0-9]+\.[0-9]+\.[0-9]+|[0-9]{4}-[0-9]{2}-[0-9]{2}-git-[a-z0-9]+)(?:-[^-\s]+)?/.exec(
21+
/ffmpeg version (?:n)?([0-9]+\.[0-9]+(?:\.[0-9]+)?|[0-9]{4}-[0-9]{2}-[0-9]{2}-git-[a-z0-9]+)(?:-[^-\s]+)?/.exec(
2122
stdout,
2223
);
2324
if (results !== null && results.length >= 2) {

0 commit comments

Comments
 (0)