Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

704 B
Raw Blame
import { probeMediaToolchain } from "./toolchain.js";
import type { ManagedProgram } from "@hypit/runtime-local/extension";

/** A system/custom FFmpeg deployment is external: programs up probes it but never mutates a package manager. */
export function localMediaToolchainProgram(input: {
  readonly id: string;
  readonly ffmpegPath: string;
  readonly ffprobePath: string;
}): ManagedProgram {
  return {
    id: input.id,
    async probe() {
      const state = await probeMediaToolchain({ ffmpegPath: input.ffmpegPath, ffprobePath: input.ffprobePath });
      return state.state === "ready"
        ? { state: "ready" as const }
        : { state: state.state, detail: state.detail };
    },
  };
}