MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getConfiguredBinary

Function getConfiguredBinary

packages/engine/src/utils/ffmpegBinaries.ts:33–37  ·  view source on GitHub ↗
(envName: string, binaryName: "ffmpeg" | "ffprobe")

Source from the content-addressed store, hash-verified

31}
32
33function getConfiguredBinary(envName: string, binaryName: "ffmpeg" | "ffprobe"): string {
34 const configured = process.env[envName]?.trim();
35 if (configured) return resolve(configured);
36 return findOnPath(binaryName) ?? binaryName;
37}
38
39export function getFfmpegBinary(): string {
40 return getConfiguredBinary(FFMPEG_PATH_ENV, "ffmpeg");

Callers 2

getFfmpegBinaryFunction · 0.85
getFfprobeBinaryFunction · 0.85

Calls 2

resolveFunction · 0.85
findOnPathFunction · 0.70

Tested by

no test coverage detected