Clips
Add a shape overlay to a clip
Changed onAdds a square, circle, triangle, diamond, star, hexagon or arrow on top of a clip, filled with any clip background and with an optional border and shadow.
post/v1/videos/{id}/clips/{clipId}/shape-overlays
Request
- Base URLhttps://api.tella.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Video identifier
Example:vid_abc123def456
clipIdstring required
Clip identifier
Example:cl_xyz789ghi012
Request body
Example request
{
"animation": {
"intro": {
"preset": "slide_up"
},
"outro": {
"preset": "fade"
}
},
"border": {
"color": "#FFFFFFFF"
},
"corners": "squircle",
"depth": "behind_presenter",
"depthChanges": [
{
"atMs": 1200,
"depth": "behind_presenter"
}
],
"dimensions": {
"height": 540,
"width": 960
},
"durationMs": 5000,
"fill": {
"color": "#000000ff",
"gradientAngle": 45,
"gradientColor1": "#ff0080ff",
"gradientColor2": "#7928caff",
"shaderGradientPreset": "Halo",
"sourceId": "su_abc123",
"type": "solid",
"videoDurationSeconds": 12.4
},
"path": "M50 0 L100 100 L0 100 Z",
"point": {
"xPct": 30,
"yPct": 30
},
"shadow": "subtle",
"startTimeMs": 1000,
"transition": "smooth"
}Response
OK
Example response
{
"shapeOverlay": {
"border": {
"color": "#FFFFFFFF"
},
"corners": "squircle",
"depth": "behind_presenter",
"depthChanges": [
{
"atMs": 1200,
"depth": "behind_presenter"
}
],
"dimensions": {
"height": 540,
"width": 960
},
"fill": {
"color": "#000000ff",
"gradientAngle": 45,
"gradientColor1": "#ff0080ff",
"gradientColor2": "#7928caff",
"shaderGradientPreset": "Halo",
"sourceId": "su_abc123",
"type": "solid",
"videoDurationSeconds": 12.4
},
"id": "ly_abc123",
"point": {
"xPct": 30,
"yPct": 30
},
"shadow": "subtle",
"transition": "smooth"
}
}Changes
- info
added the new optional request property
- info
- info
endpoint added
- info