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

Function checkFFmpeg

packages/cli/src/browser/preflight.ts:70–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70function 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
98function checkFFprobe(): EnvironmentCheckOutcome {
99 const missingConfigured = configuredMissingDetail(FFPROBE_PATH_ENV);

Callers 1

runEnvironmentChecksFunction · 0.85

Calls 4

configuredMissingDetailFunction · 0.85
getFFmpegInstallHintFunction · 0.85
findFFmpegFunction · 0.85
readToolVersionFunction · 0.85

Tested by

no test coverage detected