short-twin-camera
Recut a finished vertical short with the creator’s trained HeyGen Avatar 6 twin below the demo. Use when replacing on-camera scenes, choosing a half, third or full camera layout, or preparing separate Instagram and Shorts/TikTok endings. Covers the script, layout mock, voice slots, render quote, composition and review.
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: short-twin-cameradescription: Recut a finished vertical short with the creator’s trained HeyGen Avatar 6 twin below the demo. Use when replacing on-camera scenes, choosing a half, third or full camera layout, or preparing separate Instagram and Shorts/TikTok endings. Covers the script, layout mock, voice slots, render quote, composition and review.Short with the twin as a camera
Keep the demo and the original room behind the twin. In the half layout, the demo fills the top 1080 × 960 and the twin fills the bottom 1080 × 960. Use one trained look throughout each short. The camera appears three times in each cut — at the opening, once in the middle and at the ending. Both versions share the opening and middle.
This is the workflow used for Greymourn, YAKŌ, Linen and Fable 5.2. It starts with an existing edit. For a new room short, start with room-short-9x16.
1. Map the scenes and rewrite the script
- List every camera scene with its in/out times, spoken line, demo footage and destination cut. Save the list as
redo-twin/inventory.md. Pick the middle line that benefits most from seeing the speaker. Cover the other lines with the demo they describe. - Rewrite the script as if explaining the demo to a friend. Keep the facts, order and sponsor wording. Aim for each paragraph to stay within 10% of its original spoken length. Write whole sentences for the camera. Use spoken numbers in the voice script and digits in the captions.
- Put the old and new paragraphs side by side in
redo-twin/script.md. Write both endings now. Instagram asks viewers to comment the agreed keyword. YouTube Shorts and TikTok point to the full video in the description.
2. Make a free layout mock
Use an existing twin clip and the actual demo. Run the examples from this skill’s directory, or use the script’s absolute path. The compositor needs Python 3, FFmpeg and ffprobe.
python3 scripts/half.py --twin sample-twin.mp4 --top demo.mp4 \
--layout half --frames 1 --out mock.mp4
- Half puts the seam at y = 960. Third gives the demo the top 1280 pixels and the twin the bottom 640. Full fills the vertical frame with the twin. A 1080p landscape source will look softer at that scale. Use half unless the creator chooses another layout.
- Place the short’s title card over the opening demo. Use the relevant demo frame in the middle and at each ending. Keep the mouth, hands and important UI in view. Use
--twin-x,--twin-yand--twin-zoomto adjust the camera crop, and--top-yto move the demo crop. Coordinates run from 0 to 1. - Show the script and a mock frame for each camera scene. Confirm the look, framing, wording and estimated voice and twin costs before spending. A change to a spoken line after rendering requires a new render of that line.
3. Record the voice and cut the camera slots
Record the approved script or use the creator’s approved voice. For the original reels, each paragraph had two takes. Pick the natural delivery, align its words and keep the new section timings in a separate edit plan. The long-video-to-short tools include word alignment and export checks.
Cut an MP3 from the final narration at the exact in/out times of each camera scene. Add 0.3 seconds of silence at the end of each slot so the final word has room. Make four slots per short when the endings differ. The same opening and middle renders serve both exports.
4. Quote and render the twin
Use the creator’s trained HeyGen Avatar 6 look and its original background for every slot in a short. Render at 1080p in landscape. For a poor take, show the issue, price the retake and get approval before regenerating it. Keep the face as rendered.
Record the slots in a local slots.json. Audio paths are relative to the manifest. The example reads the look ID from HEYGEN_LOOK_ID. For a multi-short batch, each manifest can set its own look. Give each look a distinct tag for the output filenames.
{
"video": "room-demo",
"tag": "studio",
"slots": [
{ "id": "opening", "audio": "slots/opening.mp3" },
{ "id": "middle", "audio": "slots/middle.mp3" },
{ "id": "instagram-end", "audio": "slots/instagram-end.mp3" },
{ "id": "shorts-end", "audio": "slots/shorts-end.mp3" }
]
}
Free quote. With Node.js and ffprobe installed, set HEYGEN_LOOK_ID to your trained look and TWIN_USD_PER_SECOND to your current 1080p rate. The helper measures the actual audio and totals the slots still missing.
node scripts/twin_batch.mjs --quote /path/to/slots.json
Rendering. You can render the four audio files with your own Avatar 6 account and use the resulting MP4s directly. The bundled batch renderer is the optional Fil integration. It requires a Fil backend checkout with its dependencies installed, its server-side HeyGen and Supabase configuration, and a private storage bucket named library. Set FIL_ROOT to that checkout. With Fil configured, the quote reads the backend’s configured rate. Keep the IDs, credentials, voice files and renders in your working project.
node --env-file=/path/to/fil/.env.local scripts/twin_batch.mjs --quote /path/to/slots.json
# Run only after the creator approves the quoted spend.
node --env-file=/path/to/fil/.env.local scripts/twin_batch.mjs --render /path/to/slots.json
Pass additional manifest paths to quote or render several shorts together. The renderer runs up to four slots at once, saves clips beside the manifest in out/<id>-<tag>.mp4, skips existing outputs and writes twin-ledger.md in the working directory. If a run times out, check the submitted run ID before retrying. For an approved retake, move the old clip aside and pass --only middle to quote and render that slot.
5. Compose both cuts
python3 scripts/half.py --twin out/opening-studio.mp4 --top demo.mp4 \
--layout half --top-ss 2.5 --frames 180 --out opening.mp4
This produces three seconds of silent 1080 × 1920 video at 60 fps. The compositor uses nearest frames for the twin and holds its last frame if the source ends early. Use the exact frame count from the edit plan. Changing the layout reuses the same twin render.
Retain the old edit, retime the demo footage to the final narration and lay the original voice track over the composed scenes. Refit the music and sound effects. Place camera captions near the seam and inside the vertical 3:4 safe area (y = 240–1680). Export one Instagram cut and one combined Shorts/TikTok cut.
6. Review before release
- Compare each twin clip’s audio against the source slot at its start. Target an offset near zero. Inspect the first and last words, mouth movement, eyes, hands and mic, then listen through both final exports.
- Verify 1080 × 1920, 60 fps, BT.709, under 30 MB per cut, about −14 LUFS and no unintended silence longer than one second. Check the first frame as a cover and watch each ending for its own call to action.
- Deliver both files, one before/after frame, the seconds rendered and the actual spend. Say which checks were measured, watched or heard. If nobody listened, say so.
- Release is a separate decision. Use short-release when the creator approves the specific cut, platform and time.