()
| 68 | } |
| 69 | |
| 70 | function checkFFmpeg(): EnvironmentCheckOutcome { |
| 71 | const missingConfigured = configuredMissingDetail(FFMPEG_PATH_ENV); |
| 72 | if (missingConfigured) { |
| 73 | return { |
| 74 | name: "FFmpeg", |
| 75 | ok: false, |
| 76 | level: "error", |
| 77 | title: "FFmpeg not found", |
| 78 | detail: missingConfigured, |
| 79 | hint: getFFmpegInstallHint(), |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | const path = findFFmpeg(); |
| 84 | if (path) { |
| 85 | return { name: "FFmpeg", ok: true, level: "ok", detail: readToolVersion(path), path }; |
| 86 | } |
| 87 | |
| 88 | return { |
| 89 | name: "FFmpeg", |
| 90 | ok: false, |
| 91 | level: "error", |
| 92 | title: "FFmpeg not found", |
| 93 | detail: "FFmpeg is required to encode video. The render cannot proceed without it.", |
| 94 | hint: getFFmpegInstallHint(), |
| 95 | }; |
| 96 | } |
| 97 | |
| 98 | function checkFFprobe(): EnvironmentCheckOutcome { |
| 99 | const missingConfigured = configuredMissingDetail(FFPROBE_PATH_ENV); |
no test coverage detected