{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "karuvanan-minimax-h3-director-cut-studio--swap-cast-member-in-source-video",
 "repo": "karuvanan/MiniMax-H3-Director-Cut-Studio",
 "repo_url": "https://github.com/karuvanan/MiniMax-H3-Director-Cut-Studio",
 "repo_slug": "karuvanan-minimax-h3-director-cut-studio",
 "title": "Swap a cast member in an existing source video",
 "page_title": "How to swap a cast member in an existing source video with Mini Max H3 Director Cut Studio",
 "summary": "Replace a person in a source video shot by shot using the Character-Swap LoRA, the H3 Relay and SAM3.1 masks.",
 "who": "A video editor or creator who has a source clip and needs to replace one actor with a reference image, and has the Character-Swap models installed.",
 "problem": "Re-shooting a scene to change one performer is costly, and simple masking leaves ghosting or edge artifacts when the new person has a different body or pose.",
 "outcome": "A shot-level cast remake of the source video where the selected roles are swapped and the rest of the frame is kept, with dirty segments regenerated.",
 "steps": [
  "Install the `akatz-ai/h3-relay` custom node into `ComfyUI/custom_nodes/h3-relay/` and place every Character-Swap model listed in the README, including `sam3.1_multiplex_fp16.safetensors` for multi-character swaps.",
  "Confirm ffmpeg and ffprobe run from the PATH on the server.",
  "Optionally run `install_h3_cache_status_server.bat` on the ComfyUI host to show cache, VRAM and GPU status in Studio and the Windows Tray. (inferred, check the README)",
  "Start the studio with `.\\run_h3_prompt_studio.bat`, choose `Source Video Cast Remake H3`, and open the Shot Visual Editor.",
  "Check the roles to swap, choose a P Picture for each, leave other people on `KEEP V1`, click `SAVE SHOT`, then click `REGENERATE DIRTY`."
 ],
 "agent_prompt": "Using the repo karuvanan/MiniMax-H3-Director-Cut-Studio, set up the Source Video Cast Remake H3 path for the source clip <source video path> and swap the role named <role name> with the reference image <P picture path>. Expected output: a regenerated shot in the studio with the swap applied to that role only. Verify that LabsH3PrepareVideo, H3RelayWindowedEdit, SAM3_VideoTrack and SAM3_TrackToMask appear in ComfyUI without IMPORT FAILED.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "4 hours",
 "basis": "readme",
 "caveat": "The README lists many separate model files, a custom node and system ffmpeg that must all be in place before the Character-Swap path runs, and the source footage license must be checked separately.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "python",
 "requirements": [
  "A Windows PC with ComfyUI installed, plus a high-VRAM machine if you want to run the local server roles described in the README",
  "Completed Step 1 deployment (Studio Runtime, Qwen3-TTS and VoxCPM2) from the README's step1.md",
  "The model files listed in the README, saved under the exact file names it gives",
  "Model and source-footage licenses checked by you; the README says weights are not included in the source code"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "voice-cloning",
   "notice": "The swap replaces a real person's appearance in footage, so you need permission from the performer and the source video owner before using the output."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/karuvanan-minimax-h3-director-cut-studio/swap-cast-member-in-source-video/",
 "md": "https://dedupedai.com/use-cases/karuvanan-minimax-h3-director-cut-studio/swap-cast-member-in-source-video/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/karuvanan-minimax-h3-director-cut-studio--swap-cast-member-in-source-video.json",
 "api_version": "v1"
}
