/v1/tools/mix_a_videopricedMix and finish a video's sound
A video's sound finished from its timeline as Mix and finish a sound finishes one, every clip's voice cleaned up or given its effects, speech, music and Scrub's sounds laid in and mixed, then the video cut as its clips are laid, black in any gap, with the finished sound under it. Gives the video and the sound.
Takes timeline (sound clips on tracks). Returns video (the cut video as an MP4 that starts playing before it has downloaded, H.264 with AAC sound). One job: making the speech, then voicing the scripts, then making the music, then cleaning up the voices, then adding the effects, then adding the effects, then adding the effects, then mixing, then cutting the video.
$0.02 a minute of video + $0.05 a minute of sound + $0.08 per 30 seconds of music, at least $0.10, at most $0.30 + $0.02 per 12 seconds of speech, up to 30 minutes. quote gives its exact price.
Afterwards, change the result with adjust on the job of the step that made it, listed in the result.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
timeline | object | Required | The tracks and their clips, as Mix and finish a sound takes them: the video's own clips on the first track, each with the work to do on it named by its action and holding that action's settings. |
picture | object | Required | The video's clips as the timeline lays them, before any work on them, {tracks: [{clips: [{file, at, from, to}]}]}: the video is cut the same way, with the finished sound under it. |
aspect_ratio | one of | null | The aspect ratio the video is made in, width to height. 9:16 is upright for stories and reels, 1:1 square, 4:5 portrait for feeds, 16:9 wide. Every clip fills it, cropped from its centre. Left out, the first clip's own.9:161:14:516:9 |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/mix_a_video \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"timeline":{},"picture":{}}'Answer
{
"ok": true,
"result": {
"job_id": "job_…",
"status": "running",
"price_usd": "$…"
}
}It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.
Every call can also answer an error: what comes back. Try it with your key from Account.