Edit videos into a new video

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-mediajobs-editvideo"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/6c166856-450a-43bd-a76f-108dadd0dd88/social-card.svg?v=3e7ae33eec8b" alt="Edit videos into a new video" width="600" height="315"></a>
POST http://localhost:4000/api/v1/media/edit

clips is the list of pieces in playing order (the same video may appear several times, trimmed differently): trimming, splitting, reordering and merging are all that list. Optional: mute or audioMediaId (a library audio file replacing the sound), ratio (centred crop), rotate, flip, speed (0.25 to 4), timed texts and coverMs. Answers the job: poll GET /media/jobs/{id}; the new file is its resultMediaId. The original files stay as they are.

Request body

application/json
clips
object[]
required
Show child parameters
mediaId
string
required
startMs
integer
required
endMs
integer
required
mute
boolean
audioMediaId
string
ratio
string
1:1 | 4:5 | 9:16 | 16:9 | 4:3
rotate
flip
string
h | v | both
speed
number
texts
object[]
Show child parameters
text
string
required
startMs
integer
required
endMs
integer
required
fx
number
required
fy
number
required
sizePct
number
required
color
string
required
coverMs
integer
{
  "clips": [
    {
      "mediaId": "string",
      "startMs": 0,
      "endMs": 0
    }
  ],
  "mute": true,
  "audioMediaId": "string",
  "ratio": "1:1",
  "rotate": {},
  "flip": "h",
  "speed": 0,
  "texts": [
    {
      "text": "string",
      "startMs": 0,
      "endMs": 0,
      "fx": 0,
      "fy": 0,
      "sizePct": 0,
      "color": "string"
    }
  ],
  "coverMs": 0
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/media/edit" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clips":[{"mediaId":"string","startMs":0,"endMs":0}],"mute":true,"audioMediaId":"string","ratio":"1:1","rotate":{},"flip":"h","speed":0,"texts":[{"text":"string","startMs":0,"endMs":0,"fx":0,"fy":0,"sizePct":0,"color":"string"}],"coverMs":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
Updated