Prop | Type | Required | Example | Value Range | Description |
---|---|---|---|---|---|
compositeWidth | number | true | 1920 | 720 - 3840 | The width of the composite. |
compositeHeight | number | true | 1080 | 720 - 3840 | The height of the composite. |
fps | number | true | 30 | 15 - 60 | The frame rate of the composite. |
projectData | object | true | - | - | The project data. Can be exported from the editor. |
Note: The
compositeWidth
andcompositeHeight
can differ from thewidth
andheight
specified inprojectData
. However, the aspect ratio ofcompositeWidth
tocompositeHeight
must remain consistent with the aspect ratio ofprojectData.width
toprojectData.height
.
This design allows the same video project to be exported in different resolutions while maintaining the original aspect ratio.
1{
2 "compositeWidth": 1920,
3 "compositeHeight": 1080,
4 "fps": 30,
5 "projectData": {
6 "type": "",
7 "width": 1920,
8 "height": 1080,
9 "fill": "#000000",
10 "view": [
11 {
12 "id": "8ecf7475-2c6c-47f9-827b-a09c7913f4c0",
13 "type": "Image",
14 "start": 0,
15 "duration": 5,
16 "trackIndex": 0,
17 "x": -570.0335392757963,
18 "y": -170.90659033307685,
19 "blendMode": "normal",
20 "anchorX": 1302,
Here are the error codes returned by the rendering API:
projectData
field is not a valid JSON object.duration
field is required but missing.duration
field is present but not in the correct format.If you encounter an error code not listed, please contact support at [email protected].