()
| 60 | } |
| 61 | |
| 62 | export function getFFmpegInstallHint(): string { |
| 63 | switch (process.platform) { |
| 64 | case "darwin": |
| 65 | return "brew install ffmpeg"; |
| 66 | case "linux": { |
| 67 | // Distro-aware so WSL/Fedora/Arch/Alpine users get a command that |
| 68 | // actually works instead of a Debian-only `apt` line. |
| 69 | const distro = detectLinuxDistro(); |
| 70 | return ffmpegInstallCommand(distro.family); |
| 71 | } |
| 72 | case "win32": |
| 73 | return "Download the 64-bit Windows build from https://ffmpeg.org/download.html#build-windows and add its bin/ directory to PATH."; |
| 74 | default: |
| 75 | return "https://ffmpeg.org/download.html"; |
| 76 | } |
| 77 | } |
no test coverage detected