post_edit
Post-production edit
Description
MECHANICAL post-production on an EXISTING video (URL): ordered ffmpeg primitives, ~2 credits flat, NO AI model, outputs a NEW video. Ops: a branded end card, trim, speed (0.5-2x), mute (whole or a window), audio_gain (-20..+6 dB), fade_out, music (a ducked bed: omit track = a free library track picked by mood, no attribution; or track = an audio link (upload_file, find_sound or generate_sfx URL, or a post's sound); track 'generate' composes it, paid, ONLY when the user asks; start/end, db, replace), voiceover (text spoken OVER it, its sound ducked; ~2.5 words/s; voice female|male; +~1 credit), watermark (brand logo), grain (anti-AI), text (timed words in a native look: style 'tiktok-classic' default / 'clean-minimal' / 'note-style' or a textStyle; start/end, or at:{word} and until:{word} to time them to speech), join (this video FOLLOWED BY clips[]: Library URLs, files or public post links, one 1080x1920 video), layout (ONLY when asked: split screen, cut-out or green-screen presenter, letterbox, fisheye; whole or a start/end window). Presets are shortcuts: x/y, grain amount, join transition and bridge sound are free. 'A viral hook, then our clip' = videoUrl: the hook's post link + [{op:'join', clips:[{url: ours}], bridge}], and it ALWAYS gets a bridge unless the user asks for a bare cut: {kind:'impact'} cuts the hook just before its payoff (cutAt overrides) and lands our clip on a punch-in and flash, with the payoff sound FROM THE HOOK ITSELF (else one generated from its frames, up to 8 credits, else a neutral impact). {kind:'text', text, then?} only when words over the cut are asked for. No voiceover bridge. ANY OTHER EDIT, op or bridge (whip, zoom, freeze, wipe, generated shot) is edit_timeline: free keyframes, any size. NEVER generate_video/render_ad for these. Feedback is one named move, never a re-render: quieter/louder (music db, audio_gain), faster/slower (speed; slower = zooms and pans at 0.7x), tighten (trim), retime (word anchor), recut (order, in/out), regrade (timeline colour keys).
Parameters
| Parameter | Type | Description |
|---|---|---|
videoUrlrequired | string | the video to edit: a render / Library URL, a direct file, or a public post link; a URL, not a local file path; use upload_file for local files |
opsrequired | object[] | the ordered edit plan (max 6 ops) |
ops[].oprequired | "trim" | "speed" | "mute" | "audio_gain" | "fade_out" | "music" | "voiceover" | "append_card" | "watermark" | "grain" | "text" | "join" | "layout" | the edit to apply, in order; each op takes only the fields listed for it in the tool description |
ops[].start | number | trim/mute/text/layout window start (s) |
ops[].end | number | trim/mute/text/layout window end (s) |
ops[].layout | object | layout: the frame layout, ONLY when the user or a format asks for one |
ops[].layout.kindrequired | "split" | "cutout" | "green_screen" | "letterbox" | "fisheye" | split (two pictures in one frame), cutout (presenter cut out like a sticker, white outline), green_screen (presenter keyed over a background, no outline), letterbox (a wide band with bars), fisheye (ultra-wide selfie look) |
ops[].layout.panels | string | object[] | split: exactly two pictures, the first on top (or left): 'this' (the video) or a Library / render URL / direct file |
ops[].layout.direction | "stack" | "side" | split: stack = top and bottom (default on a tall video), side = side by side |
ops[].layout.ratio | number | split: the first panel's share, 0.2-0.8 (default 0.5) |
ops[].layout.seam | boolean | object | split: the line between the panels (default thin white; false = none). Its position comes back so a caption can sit on it |
ops[].layout.seam.thickness | number | 0-0.03 of the short side |
ops[].layout.seam.color | string | hex or a colour name |
ops[].layout.presenter | string | cutout / green_screen: the person clip, 'this' (default) or a URL |
ops[].layout.background | string | object | cutout / green_screen: what is behind them: a clip or still URL, a colour, or 'grid' (a cutting mat, the cutout default) |
ops[].layout.matte | "green" | "alpha" | how the person is cut: green (filmed on a green screen, keyed free; default) or alpha (a clip with its own transparent background, e.g. from cut_out_video_background) |
ops[].layout.scale | number | cutout / green_screen: the person's height as a share of the frame, 0.2-1 |
ops[].layout.x | number | cutout / green_screen: their centre, 0-1 of the width |
ops[].layout.y | number | cutout / green_screen: where their feet land, 0.3-1.2 of the height; letterbox: where the band sits, 0-1 |
ops[].layout.outline | number | cutout: the white outline, 0-0.04 of the short side (0 = none) |
ops[].layout.outlineColor | string | cutout: outline colour (default white) |
ops[].layout.shadow | boolean | cutout: a soft drop shadow (default true) |
ops[].layout.src | string | letterbox / fisheye: the picture, 'this' (default) or a URL |
ops[].layout.aspect | string | letterbox: the band's shape, 16:9 (default), 2.39:1, 4:3… |
ops[].layout.bar | string | letterbox: bar colour (default black) |
ops[].layout.strength | number | fisheye: 0-1 (default 0.55) |
ops[].layout.vignette | "round" | "soft" | "none" | fisheye: corner fall-off (default round) |
ops[].layout.audio | "auto" | "first" | "second" | "mix" | "none" | whole-video layout: whose sound (auto = the speaker). A start/end window keeps the video's own sound |
ops[].text | string | text/voiceover: the words, verbatim |
ops[].voice | string | voiceover voice: female or male |
ops[].keepSound | boolean | voiceover only: true (default) keeps the clip's sound under the voice; false replaces it |
ops[].position | "top" | "center" | "lower" | "bottom" | text: where, or x/y |
ops[].x | number | text/watermark centre: 0-1 of frame, or px |
ops[].y | number | vertical centre for text or watermark: 0 to 1 of frame height, or pixels |
ops[].style | string | object | text: a look name or a textStyle |
ops[].textStyle | string | object | text op: a textStyle object or preset name, same as style |
ops[].at | string | object | text, instead of start/end: the words appear as this spoken phrase starts (timed from the video's own words; refused if it is never said) |
ops[].at.wordrequired | string | the word or phrase as it is said |
ops[].at.occurrence | number | 1 = first time said (default), 2 = second, -1 = last |
ops[].until | string | object | text with at: the words leave as this phrase ends |
ops[].until.wordrequired | string | the word or phrase as it is said |
ops[].until.occurrence | number | counted from the at phrase on |
ops[].duration | number | text with at and no until: seconds the words stay, 0.3-30 (default 2) |
ops[].clips | object[] | join: the clips after this video |
ops[].clips[].urlrequired | string | clip to join after the video: Library URL, direct file or public post link |
ops[].clips[].start | number | seconds into this clip to start from |
ops[].clips[].end | number | seconds into this clip to stop at |
ops[].clips[].match | string | boolean | object | seam match for this clip: auto (default), off, or a grade object |
ops[].clips[].match.grade | boolean | |
ops[].clips[].match.level | boolean | |
ops[].clips[].match.grain | boolean | |
ops[].clips[].match.blur | boolean | |
ops[].clips[].match.strength | number | |
ops[].clips[].reframe | string | number | shot change at this seam: auto, off, or a step from 1.1 to 1.5 |
ops[].reframe | string | number | join: shot change at a same-framing stitch, 'auto' | 'off' | step 1.1-1.5 |
ops[].match | string | boolean | object | join: seam match, 'auto' default | 'off' | {grade,level,grain,blur,strength} |
ops[].match.grade | boolean | |
ops[].match.level | boolean | |
ops[].match.grain | boolean | |
ops[].match.blur | boolean | |
ops[].match.strength | number | |
ops[].transition | string | join: 'cut' default, 'crossfade', or any ffmpeg xfade name (wipeleft…) |
ops[].bridge | object | join: connects the hook to the first clip |
ops[].bridge.kindrequired | "impact" | "text" | impact (cut before the hook's payoff) or text (words over the cut) |
ops[].bridge.cutAt | number | omit: found from the footage |
ops[].bridge.matchCut | number | second in our clip where it starts |
ops[].bridge.sound | string | 'auto' default, 'own', 'impact', 'whoosh', 'none', or an audio URL (find_sound) |
ops[].bridge.flash | boolean | true (default) adds a white flash on the cut; false skips it |
ops[].bridge.shake | boolean | true (default) adds a camera shake on the cut; false skips it |
ops[].bridge.text | string | text bridge only: words shown over the cut, only when the user asks for them |
ops[].bridge.then | string | text bridge only: a line shown after the text |
ops[].factor | number | speed 0.5-2 |
ops[].db | number | audio_gain -20..+6 dB / music: trim on its automatic level, -40..+12 |
ops[].model | string | music, generate: the model |
ops[].track | string | music: omit = a library track by mood; a library track name; an audio link; 'generate' (paid, only on the user's ask) |
ops[].mood | string | music: mood words for the library pick, or the brief for generated music |
ops[].from | number | music: the second of the track to start from |
ops[].duck | string | boolean | music: 'auto' default = dips while the clip's own sound plays |
ops[].replace | boolean | music: true = replaces the clip's own sound; a music change or swap needs it, or the old music plays on under the new |
ops[].fadeOut | number | music: fade-out seconds 0-5 |
ops[].seconds | number | fade_out 0.3-3s / append_card 2-5s / transition 0.2-1.5s |
ops[].headline | string | append_card: big line (default: brand name) |
ops[].tagline | string | append_card: smaller line under the headline |
ops[].sub | string | append_card: pill line (default: website) / text: a second, smaller line |
ops[].background | string | append_card: hex or a colour name; the user's colour beats the brand palette |
ops[].card_html | string | append_card: your OWN full-frame card as inline-styled HTML ({{logo}} = the brand logo) |
ops[].corner | "tl" | "tr" | "bl" | "br" | watermark corner (default br), or x/y |
ops[].intensity | "default" | "strong" | number | grain: or 0-1 (default 0.25) |
brandName | string | override the workspace brand name |
domain | string | override the brand website |
accent | string | override the brand accent hex |
dryRun | boolean | true = return the estimated credits this edit reserves and run nothing |
get_cost | boolean | true: return the price only; nothing runs or bills |
expected_credits | number | the get_cost price; refused unbilled if the live price differs |
idempotency_key | string | chosen once, resent unchanged on retries: the same key never buys twice |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/post_edit.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_edit","arguments":{"videoUrl":"<string>","ops":"<array>"}}}
CLI
hermoso call post_edit --json '{"videoUrl":"<string>","ops":"<array>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
upload_fileUpload a local file -> durable public URLfind_soundFind a soundgenerate_sfxGenerate a sound effectedit_timelineCompose an edit (timeline)generate_videoGenerate videorender_adRender ad videofinish_videoFinish videomake_motion_filmMake a motion graphics videovideo_framesLook at video framesfix_beatFix a video beat