File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ export async function getFfmpegVersionFromExecutable(executablePath: string): Pr
14
14
15
15
// Extract the FFmpeg version from the output, it supports the following patterns:
16
16
// "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"
17
18
// "ffmpeg version 4.3.1 Copyright" => 4.3.1
18
19
// "ffmpeg version 2025-05-05-git-f4e72eb5a3-full_build-www.gyan.dev"
19
20
const results =
20
- / f f m p e g v e r s i o n (?: n ) ? ( [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + | [ 0 - 9 ] { 4 } - [ 0 - 9 ] { 2 } - [ 0 - 9 ] { 2 } - g i t - [ a - z 0 - 9 ] + ) (?: - [ ^ - \s ] + ) ? / . exec (
21
+ / f f m p e g v e r s i o n (?: n ) ? ( [ 0 - 9 ] + \. [ 0 - 9 ] + (?: \. [ 0 - 9 ] + ) ? | [ 0 - 9 ] { 4 } - [ 0 - 9 ] { 2 } - [ 0 - 9 ] { 2 } - g i t - [ a - z 0 - 9 ] + ) (?: - [ ^ - \s ] + ) ? / . exec (
21
22
stdout ,
22
23
) ;
23
24
if ( results !== null && results . length >= 2 ) {
You can’t perform that action at this time.
0 commit comments