Create a clip from a video asset
| Field | Type | Required | Description |
|---|---|---|---|
| asset_id | string | Yes | The video asset ID to create a clip from |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code indicating the result status |
| msg | string | Response message describing the operation result |
| data | object | Response data object containing task information |
| data.task_id | string | Unique identifier of the video clip creation task |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code (“0000” indicates success) |
| message | string | Status message (e.g., “SUCCESS”) |
| data | object | Response data object containing scene segmentation results |
| data.data | object | Inner data object containing the clipping information |
| data.data.data | array | Array of scene segments with frame ranges |
| data.data.data[].start | integer | Starting frame number of the scene segment |
| data.data.data[].end | integer | Ending frame number of the scene segment |
| data.data.exec_time | number | Execution time for the clipping operation in seconds |
| data.msg | string | Detailed message about the clipping result |
| data.success | boolean | Indicates whether the clipping was successful |
| task_id | string | The task ID associated with this clipping request |
callback_response.data.data.datacallback_response.data.data.data.lengthcallback_response.data.data.data[0].startcallback_response.data.data.data[0].endcallback_response.data.data.exec_timecallback_response.data.successcallback_response.task_idstart: The frame number where the scene begins (inclusive)end: The frame number where the scene ends (inclusive)The video asset ID to create a clip from
"re_657739295220518912"
Video clip creation initiated successfully
Response code indicating the result status
"0000"
Response message describing the operation result
"success"
Response data object containing task information
Indicates whether the operation was successful
true
Indicates whether the operation failed
false