MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / ffToolInfo

Function ffToolInfo

server.js:31–36  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

29const exportJobs = new Map();
30
31function ffToolInfo(command) {
32 const executable = String(command).split(/[\\/]/).pop().toLowerCase();
33 if (executable.startsWith("ffprobe")) return { name: "FFprobe", env: "FFPROBE_PATH" };
34 if (executable.startsWith("ffmpeg")) return { name: "FFmpeg", env: "FFMPEG_PATH" };
35 return null;
36}
37
38function explainMissingTool(error, command) {
39 if (error.code !== "ENOENT") return error.message;

Callers 1

explainMissingToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected