Ai video editing

From theheavenlyd3mon/hermes-profiles · View interactive version

Ai video editing is an AI agent skill from the GitHub repository theheavenlyd3mon/hermes-profiles. Use when assembling AI clips into an edited video.

How to use this skill

Skill file

AI Video Editing & Assembly

Trigger

Any request to cut, assemble, re-time, or finish a set of (usually AI-generated)

video clips into an edited piece — especially syncing clips to a music track,

adding camera moves, or doing a QA review pass on generated footage. This is the

POST-PRODUCTION phase: it starts after clips exist on disk.

Companions (other phases live elsewhere)

This skill owns: inventory → beat grid → trim → moves → concat → audio mix → QA → deliver.

The pipeline

  1. Inventory. List every clip; note which are originals vs generated takes.

Where a shot was regenerated, keep BOTH takes and mark the chosen one FINAL.

  1. Probe before you plan. NEVER assume a clip's duration — generated clips are

often 5.04s, not the round 5/6s you expect. Probe every source (recipe in

references/ffmpeg-recipes.md). Build the beat grid on REAL durations or

slow-mo/trim math will overshoot.

  1. Map the music. Run an RMS energy envelope over the track to find drops and

breakdowns; snap the key visuals to them (the drop hit, the breakdown's

suspended moment). See references/ffmpeg-recipes.md for the analyze pattern.

  1. Trim + apply moves per shot (Ken Burns push-in/out — recipe below).
  2. Concat the segments (-c copy once they share codec/res/fps).
  3. Mix audio — atrim the track to video length + a fade-out tail.
  4. QA the assembled cut with video_analyze (mandatory prep in

references/video-analyze-qa.md — strip audio and downscale first). For a

multi-minute film that times out, QA via a keyframe contact sheet instead

(failure mode 3). Always bright-pixel-check title/text cards (recipe 9).

  1. Deliver + flag anything the director should rule on (e.g. baked-in

letterbox bars, a repeated angle).

Ken Burns / camera moves (the reliable way)

Drive a slow push-in with the crop filter + the n (frame) variable, then

scale back to the target res. ~15% over the shot reads as a subtle "slow punch-in"

(the feel directors want — "felt, not seen"). Exact recipe + a push-out variant

in references/ffmpeg-recipes.md.

crop=w='iw/(1+0.15*n/FRAMES)':h='ih/(1+0.15*n/FRAMES)',scale=W:H:flags=lanczos

where FRAMES = duration_seconds * fps. Apply a move to every shot to kill the

"static AI still" feel; vary direction (push-in for tension, push-out for an

exhale/outro) only on director approval.

Director-led workflow (this user)

The user has a videography/photography background and DIRECTS the edit himself:

he gives the shot order and the beat map. Your job is to (a) map his calls to the

exact files, (b) surface inferences for confirmation, (c) execute precisely,

(d) flag — not silently fix — creative decisions.

Editing-language pitfall: when a director says "cut at the 6-second mark,"

that is the in/out TIMESTAMP, not a 6-second hold. A clip entering the timeline at

3s and cut "at the 6s mark" is a 3-SECOND clip (timeline 3–6s). Confirm any

ambiguous duration-vs-timestamp phrasing before building.

Pitfalls

designed for image→video. For moves on existing video, use the crop+n recipe.

number); drive moves off n with frames = dur*fps.

clip longer than you thought overshoots the target.

crop them to match the rest of the frame if the director wants consistency.

Measure the bars first with cropdetect (recipe #8 in ffmpeg-recipes.md).

jacket must stay one color across cuts, reinforce it explicitly in every prompt

or anchor with image-to-video; verify each take and regenerate the offenders.

References

push-out, slow-mo + trim, concat, audio mix with fade, downscale-for-review,

RMS energy envelope for beat mapping.

audio → "audio modality not enabled"; large files → timeout / 413; LONG films →

timeout even downscaled, use a keyframe contact sheet) and the exact review-copy

prep that fixes them, plus what to ask the model.

dialogue-driven film: time the VO first, stills-as-frame-0, cut clips to the

dialogue timeline (not the reverse), title-card + contact-sheet QA.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.