CreateEditingProject
Creates a cloud editing project. You can set the title, description, timeline, and cover of the project.
Operation description
-
Billing is based on the duration of the produced video. For details, see video clipand live streaming editing. If the processing failed, no fees are charged.
-
After you create an editing project, you can invoke the SubmitMediaProducingJob - commit a media editing and producing job operation to commit a media editing and producing node. You can also invoke the SubmitLiveEditingJob - commit a live streaming editing node operation to commit a live streaming editing node.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateEditingProject |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Title |
string |
Yes |
The title of the cloud editing project. |
example |
| Description |
string |
No |
The description of the cloud editing project. |
Description |
| Timeline |
string |
No |
The timeline of the cloud editing project in JSON format. |
{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"****4d7cf14dc7b83b0e801c****"},{"MediaId":"****4d7cf14dc7b83b0e801c****"}]}]} |
| CoverURL |
string |
No |
The cover of the cloud editing project. |
https://example.com/example.png |
| TemplateId |
string |
No |
The template ID. You can use a template to quickly build a timeline. Important You must specify either Timeline or TemplateId, but not both. If TemplateId is specified, ClipsParam must also be specified. |
****96e8864746a0b6f3**** |
| ClipsParam |
string |
No |
The material parameters for the template in JSON format. If TemplateId is specified, ClipsParam must also be specified. For more information about the format, see Create and use standard templates and Create and use advanced templates. |
See the template documentation |
| TemplateType |
string |
No |
The templatetype. This parameter is required when you create a cloud editing project based on a template. Default value: Timeline. Valid values:
Valid values:
|
Timeline |
| MaterialMaps |
string |
No |
The materials associated with the project. Separate multiple material IDs with commas (,). You can associate up to 10 material IDs of each type. |
{"video":"*****2e057304fcd9b145c5cafc*****", "image":"****8021a8d493da643c8acd98*****,*****cb6307a4edea614d8b3f3c*****", "liveStream": "[{\"appName\":\"testrecord\",\"domainName\":\"test.alivecdn.com\",\"liveUrl\":\"rtmp://test.alivecdn.com/testrecord/teststream\",\"streamName\":\"teststream\"}]", "editingProject": "*****9b145c5cafc2e057304fcd*****"} |
| BusinessConfig |
string |
No |
The business configuration of the project. You can ignore this parameter for standard editing projects.
|
{ "OutputMediaConfig" : { "StorageLocation": "test-bucket.oss-cn-shanghai.aliyuncs.com", "Path": "test-path" }, "OutputMediaTarget": "oss-object", "ReservationTime": "2021-06-21T08:05:00Z" } |
| ProjectType |
string |
No |
The type of the editing project.
|
LiveEditingProject |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
******3B-0E1A-586A-AC29-742247****** |
| Project |
object |
The cloud editing project. |
|
| ProjectId |
string |
The ID of the cloud editing project. |
****01bf24bf41c78b2754cb3187**** |
| Title |
string |
The title of the cloud editing project. |
example_title |
| Description |
string |
The description of the project. |
example_description |
| Timeline |
string |
The timeline of the cloud editing project in JSON format. For more information about the structure, see TimeLine. If this field is empty, an empty timeline is created and the total duration of the cloud editing project is 0. |
{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"****4d7cf14dc7b83b0e801c****"},{"MediaId":"****4d7cf14dc7b83b0e801c****"}]}]} |
| TemplateId |
string |
The template ID. |
****96e8864746a0b6f3**** |
| ClipsParam |
string |
The material parameters for the template. |
See the template documentation |
| CoverURL |
string |
The cover of the cloud editing project. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires= |
| Status |
integer |
The status of the cloud editing project. All cloud editing project statuses:
|
2 |
| StatusName |
string |
The name of the cloud editing status, which corresponds to the status name in the status list. |
Editing |
| CreateTime |
string |
The time when the cloud editing project was created. The time follows the ISO 8601 standard and is displayed in UTC (ending with Z). |
2021-01-08T16:52:07Z |
| ModifiedTime |
string |
The time when the cloud editing project was modified. The time follows the ISO 8601 standard and is displayed in UTC (ending with Z). |
2021-01-08T16:52:07Z |
| Duration |
number |
The duration of the cloud editing project. |
3.4200000 |
| CreateSource |
string |
The method used to create the cloud editing project.
|
WebSDK |
| ModifiedSource |
string |
The method used to modify the cloud editing project.
|
WebSDK |
| TemplateType |
string |
The template type of the cloud editing project.
|
Timeline |
| BusinessConfig |
string |
The business configuration of the project. You can ignore this parameter for standard editing projects. |
{ "OutputMediaConfig" : { "StorageLocation": "test-bucket.oss-cn-shanghai.aliyuncs.com", "Path": "test-path" }, "OutputMediaTarget": "oss-object", "ReservationTime": "2021-06-21T08:05:00Z" } |
| ProjectType |
string |
The type of the editing project. Default value: EditingProject.
|
LiveEditingProject |
| BusinessStatus |
string |
The business status of the project. You can ignore this parameter for standard editing projects.
|
Reserving |
Examples
Success response
JSON format
{
"RequestId": "******3B-0E1A-586A-AC29-742247******",
"Project": {
"ProjectId": "****01bf24bf41c78b2754cb3187****",
"Title": "example_title",
"Description": "example_description",
"Timeline": "{\"VideoTracks\":[{\"VideoTrackClips\":[{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"},{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"}]}]}",
"TemplateId": "****96e8864746a0b6f3****",
"ClipsParam": "See the template documentation",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"Status": 2,
"StatusName": "Editing",
"CreateTime": "2021-01-08T16:52:07Z",
"ModifiedTime": "2021-01-08T16:52:07Z",
"Duration": 3.42,
"CreateSource": "WebSDK",
"ModifiedSource": "WebSDK",
"TemplateType": "Timeline",
"BusinessConfig": "{ \"OutputMediaConfig\" : { \"StorageLocation\": \"test-bucket.oss-cn-shanghai.aliyuncs.com\", \"Path\": \"test-path\" }, \"OutputMediaTarget\": \"oss-object\", \"ReservationTime\": \"2021-06-21T08:05:00Z\" }",
"ProjectType": "LiveEditingProject",
"BusinessStatus": "Reserving"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.