Make a wedding video from guest clips
You get a wedding highlight video, also called a wedding film or wedding recap, from the clips your guests filmed on their phones. Your agent finds the vows and the best lines of the speeches in a transcript, picks the cheers and the first dance by their sound, cuts them to music, and keeps each round of your changes on its own branch.
Use invideo for this when the footage is many large files from many phones: your agent uploads them straight to your project, reads every word said, and you can ask for "shorter speeches" or "more of Grandma" without losing the cut before.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Make a 4 minute wedding highlight video from the guest clips in./wedding. Find our vows and the best lines from the speeches, keepthe first kiss and the first dance, and add soft music under the rest.16:9. Tell me the price of the transcripts first, and show me framesbefore you export.In a chat app, you drag the clips into the project's Media panel in invideo, then name them in the chat. In a terminal, you name the folder and the agent uploads it.
What you need
Collect every guest clip in one folder first, from a shared album or a drive.
- The clips. MP4 or MOV from phones and cameras, any shape. A file too big for
start_uploadgoes up with the invideo CLI. - The moments that must be in. The vows, the kiss, the first dance, a speech, a name.
- The names. Who gave which speech, so the agent can find them.
- The length. A highlight of a few minutes, or a longer film.
- The music mood. Romantic, upbeat, acoustic, or your own licensed song.
- The shape. 16:9 for a TV, 9:16 for a phone teaser.
Steps
Your agent edits on a branch and starts a new branch for each round of changes.
Upload every clip
The agent makes a project with
new_project. For each file, it callsstart_upload, PUTs the bytes to theupload_url, then callsadd_mediawith theupload_id. Large files upload this way with no link needed. Expected result: a sequence URL per clip.Price and start the transcripts
The agent prices
audio.transcriptwithdry_runon each clip with speech and tells you the total. It starts each one withmax_credits, and calls again afterretry_after_sfor the words. Only the first call spends credits. Expected result: every word said, with its time and speaker.Find the moments and look at them
The agent reads the transcripts for the vows and the best speech lines, and runs
mediaaudio.content,audio.onsetsandvideo.sceneSplitto find cheers, claps, the glass clink and the cuts. It runsvideo.framesat each pick to check the picture: eyes open, not shaky, people in frame. Expected result: a shot list with clip, start and end, which the agent shows you.Clean a noisy clip, if you need to
For a vow clip with wind or crowd noise, the agent runs
find_modelswith the job in words, like "clean the voice in a video", andget_modelon its pick. A good pick isclean_voice.clean_video. Your agent can search for others withfind_models. It callsgeneratewithvideoset to the clip's sequence URL,keep_musictrue anddry_run: true, and tells you the price. For a price of 1 credit or more it waits for your yes. Then it callsgeneratewithmax_creditsset to that price and anidempotency_key. The original stays. Expected result: a sequence URL for a new, cleaner video, which the agent reads withread, never with a secondgenerate.Cut the highlight
The agent makes a timeline with
new_timelineand creates a branch withtimeline_history. It places each pick withplace_media, the source range from the shot list, andlinked_audiotrue for the vows and speeches. Vertical guest clips get thefit_with_blureffect. Expected result: a first cut on its own branch.Add music and titles
The agent adds music from
stock_musicwithsearch_libraryandadd_media, with theduckeraudio effect on the music track, so the music drops under speech. A new timeline ducks underA1by default. The agent setsset_sidechain_sourceonly when the speech is on another track. It adds your names and the date withadd_text. Expected result: music under the cut and quiet under every line.Check and export
The agent runs
captureat the vows, each speech, the kiss and the end, andcheck_timeline. It checks loudness withmediaaudio.loudnesson the speech clips. Then it runsexportwithformatvideo andtarget_lufs. In a terminal, it saves the file withinvideo notebook showon the card's URL. Expected result: an export card with statuscompleted.
For each round of changes you ask for, the agent saves a checkpoint with timeline_history and creates a new branch, like "round-2-shorter-speeches". You compare the branches in the editor, and the earlier round stays untouched.
The same job from a terminal. asset upload sends each local file for you.
invideo project new --title "Sara and Tom wedding"invideo agent register <project-url> --name <name>export INVIDEO_AS=<name>invideo edit new <project-url> --name "Highlight"invideo asset upload <edit-url> ./wedding/*invideo media audio.transcript <sequence-url> --dry-runinvideo media audio.transcript <sequence-url> --max-credits <price>invideo media audio.transcript <sequence-url>invideo media audio.content <sequence-url>invideo media audio.onsets <sequence-url>invideo media video.frames <sequence-url> --at 312,318,325 --out ./framesinvideo gen models <project-url> --query "clean the voice in a video"invideo gen model <project-url> --model clean_voice.clean_videoinvideo gen run <page-url> --model clean_voice.clean_video --dry-run \ -i video=<sequence-url> -i keep_music=trueinvideo gen run <page-url> --model clean_voice.clean_video \ --max-credits <price> --idempotency-key vows-clean-1 \ -i video=<sequence-url> -i keep_music=trueinvideo edit show <edit-url>invideo branch new <edit-url> --name round-1 --token <state_token>invideo edit show <branch-url>invideo edit change <branch-url> --timeline T1 --token <state_token> \ --operations @ops.jsoninvideo edit capture <branch-url> --at 10,60,120,230 --out ./framesinvideo edit export <branch-url> --format video --quality 1080 \ --target-lufs -14 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./outWhere each value comes from:
<name>is the name you choose ininvideo agent register.INVIDEO_ASpasses it to every later command.<project-url>comes frominvideo project new, and<edit-url>frominvideo edit new.<sequence-url>is the URLinvideo asset uploadreturns for each clip. The thirdaudio.transcriptline is the call again afterretry_after_s.<page-url>is a notebook page;invideo notebook show <project-url>lists them. Each<price>is the.estimated_creditsof the dry run before it.<state_token>comes frominvideo edit show <edit-url>forbranch new, and frominvideo edit show <branch-url>for every command on the branch; the main token is stale there.<branch-url>is the.branch_urlthatbranch newreturns.ops.jsonholds a bare list of operations, like theoperationslist in the call below.<card-url>is.sequences[0]of the export result.invideo statuswaits and saves nothing.invideo notebook showsaves the file as./out/export.mp4.
The key MCP call is the full call. It places the vows from one guest clip with its sound, and the kiss from another. Source times are seconds from the transcript. <branch-url> is the branch_url that timeline_history returns. The <state_token> and the bin ids, like m3, come from get_timeline.
{ "url": "<branch-url>", "timeline_id": "T1", "expected_state_token": "<state_token>", "operations": [ { "op": "place_media", "asset": "m3", "track": "V1", "at_f": 0, "source_start_seconds": 312.4, "source_end_seconds": 341.0, "mode": "append", "linked_audio": true }, { "op": "place_media", "asset": "m7", "track": "V1", "at_f": 0, "source_start_seconds": 88.2, "source_end_seconds": 94.5, "mode": "append", "linked_audio": true } ]}Cost and time
Edits and exports are free. Generation and transcripts cost credits. Paid stock costs a small credit charge, or one of your workspace's iStock licenses. Your agent runs a dry run first and tells you the price before it spends anything.
- Costs credits:
audio.transcripton each clip,clean_voice.clean_videoon a noisy clip, and paid stock music. The agent transcribes only the clips with speech you want. - Free: uploads, every cut, the branches and the export.
- Tool ops:
audio.content,audio.onsets,video.sceneSplit,video.frames,audio.loudnessandaudio.clean. The dry run shows its price before anything starts.
Uploads take as long as your connection needs. Transcripts take a few minutes. The first cut takes from a few minutes to under an hour, by the number of clips. See Credits and what they cost for prices.
If something goes wrong
Most problems are uploads, quiet speeches, or wind noise on a phone mic.
| Symptom | Fix |
|---|---|
get_model or generate refuses the model as not found | Models retire. Run find_models with the job in words, use the best match, and tell the person which model you used. |
Exit code 6, or status is held | A safety review, not a refusal. Wait, then run invideo status <url> --wait again. Do not resend. If it ends failed, change the input the review flagged. |
| A direct link download is refused | Use start_upload and add_media with the upload_id. Large files and private drives go that way. |
| The transcript call returns a status, not words | It is still running. Call it again after retry_after_s. Only the first call spends credits. |
| An upload breaks | The agent starts a new start_upload for that file only. |
| A speech is too quiet | Raise it with set_audio_gain on its audio clip, and add the compressor audio effect. |
| Wind or crowd noise over the vows | Run media audio.clean on that clip, priced first. The original stays. |
| A guest clip is sideways | The agent turns it with set_rotation and fills the frame. |
| CLI exit 7 | Nothing ran, or the first try landed. Run the same command again; a repeat of one that landed returns its result. |
| Avoid: transcribing every clip | Instead: run audio.content first, and transcribe only clips with speech. |
| Avoid: changing the approved cut in place | Instead: a new branch for each round from timeline_history. |
Prompts to try
Each prompt is a real variation of the job.
Make a 60 second vertical wedding teaser for Instagram from thehighlight branch. The kiss, the first dance and the loudest cheer,cut on the beat.Make a 20 minute wedding film from ./wedding. Full vows, full speechesfrom the best man and the bride's mother, and the first dance. Nameeach speaker on screen.Round 3: cut the best man's speech to his three best lines, add moreof Grandma dancing, and keep the rest as it is. New branch.When to use something else
invideo does not sync many cameras into one multicam edit. For a full ceremony from several pro cameras, use a desktop editor with multicam, like Premiere Pro or DaVinci Resolve. Your agent can export the cut as a project file for that editor with export and format premiere, davinci or final_cut.
For a shared album where guests upload their own clips, use a photo sharing app. Then download the folder and bring it in.