(name: "ffmpeg" | "ffprobe")
| 35 | : ["/opt/homebrew/bin", "/usr/local/bin", "/usr/bin", "/bin", "/snap/bin"]; |
| 36 | |
| 37 | function findInCommonDirs(name: "ffmpeg" | "ffprobe"): string | undefined { |
| 38 | for (const dir of COMMON_BIN_DIRS) { |
| 39 | const candidate = `${dir}/${name}`; |
| 40 | if (existsSync(candidate)) return candidate; |
| 41 | } |
| 42 | return undefined; |
| 43 | } |
| 44 | |
| 45 | function findConfiguredBinary( |
| 46 | envName: string, |
no outgoing calls
no test coverage detected