(binaryPath: string)
| 56 | } |
| 57 | |
| 58 | function readToolVersion(binaryPath: string): string { |
| 59 | try { |
| 60 | const raw = |
| 61 | execFileSync(binaryPath, ["-version"], { encoding: "utf-8", timeout: 5000 }).split("\n")[0] ?? |
| 62 | ""; |
| 63 | const version = parseToolVersion(raw); |
| 64 | return version ? `${version} at ${binaryPath}` : binaryPath; |
| 65 | } catch { |
| 66 | return binaryPath; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | function checkFFmpeg(): EnvironmentCheckOutcome { |
| 71 | const missingConfigured = configuredMissingDetail(FFMPEG_PATH_ENV); |
no test coverage detected