獲取批次智慧一鍵成片作業的詳細資訊,包括作業的輸入參數、任務狀態、合成的媒資ID及URL。本介面僅支援查詢近一年的任務資料。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:GetBatchMediaProducingJob |
get |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| JobId |
string |
否 |
批次智慧一鍵成片作業 ID。 |
****b4549d46c88681030f6e**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
****36-3C1E-4417-BDB2-1E034F**** |
| EditingBatchJob |
object |
批次智慧一鍵成片任務資訊。 |
|
| JobId |
string |
任務 ID。 |
****b6b2750d4308892ac3330238**** |
| InputConfig |
string |
使用者合成輸出配置。具體結構定義,請參見 InputConfig 配置說明。 |
{ "MediaGroupArray": [{ "GroupName": "MediaGroup1", "MediaArray": [ "****9d46c886b45481030f6e****", "****6c886b4549d481030f6e****" ] }, { "GroupName": "MediaGroup2", "MediaArray": [ "****d46c886810b454930f6e****", "****4549d886810b46c30f6e****" ] }], "TitleArray": [ "Huilongguan Box Ma Xiansheng Opened", "Box of Ma Xiansheng has opened" ], "SpeechTextArray": [ "A new box of fresh horses has been opened in a nearby shopping mall. Today is the first day of opening." "There are a lot of people in the shopping mall. Snacks and drinks are relatively cheap. Come and have a look." ] } |
| EditingConfig |
string |
剪輯相關配置。具體結構定義,請參見 EditingConfig 配置說明。 |
{ "MediaConfig": { "Volume": 0 }, "SpeechConfig": { "Volume": 1 }, "BackgroundMusicConfig": { "Volume": 0.3 } } |
| OutputConfig |
string |
輸出配置。具體結構定義,請參見 OutputConfig 配置說明。 |
{ "MediaURL": "http://xxx.oss-cn-shanghai.aliyuncs.com/xxx_{index}.mp4", "Count": 20, "MaxDuration": 15, "Width": 1080, "Height": 1920, "Video": {"Crf": 27} } |
| Status |
string |
任務狀態。取值範圍:
|
Finished |
| UserData |
string |
使用者業務配置、回呼配置。具體結構定義,請參見 UserData 配置說明。 |
{"NotifyAddress":"http://xx.xx.xxx"} |
| Extend |
string |
擴充資訊。欄位詳情:
|
{ "ErrorCode": "InvalidMaterial.NotFound", "ErrorMessage": "The specified clips id not found:[\"****30d0b5e871eebb2ff7f6c75a****\"]" } |
| CreateTime |
string |
任務建立時間,UTC 時間格式。 |
2024-06-13T08:47:07Z |
| ModifiedTime |
string |
任務修改時間,格式為 utc 時間。 格式為:「YYYY-MM-DD'T'hh:mm:ss'Z'」。 |
2024-06-13T08:57:07Z |
| CompleteTime |
string |
任務完成時間,格式為 utc 時間。 格式為:「YYYY-MM-DD'T'hh:mm:ss'Z'」。 |
2024-06-13T08:57:07Z |
| JobType |
string |
任務類型:
|
Script |
| SubJobList |
array<object> |
一鍵成片子任務清單。 |
|
|
object |
一鍵成片子任務資訊。 |
||
| MediaId |
string |
成片媒資 ID。 |
****1470b11171ee9d19e7e6c66a**** |
| JobId |
string |
子任務 ID。 |
****8e81933d44e3ae69e2f81485**** |
| MediaURL |
string |
輸出成片的檔案位址。 |
http:/xxx.oss-cn-shanghai.aliyuncs.com/xxx_0.mp4 |
| Status |
string |
子任務狀態。取值範圍:
|
Success |
| ErrorCode |
string |
失敗時錯誤碼。如果執行成功則不傳回此參數。 |
InvalidMaterial.NotFound |
| ErrorMessage |
string |
失敗時錯誤資訊。如成功則不傳回此參數。 |
The specified clips id not found:["****30d0b5e871eebb2ff7f6c75a****"] |
| ProjectId |
string |
雲端剪輯工程 ID。 |
****7cc47fe04eaa81bd853acb6a**** |
| Duration |
number |
成片時長,單位:秒(s)。 |
24.5 |
| ExtendInput |
string |
額外輸入。
|
["****7cc47fe04eaa81bd853acb6a****", "****04eaa7cc47fe81bd853acb6a****"] |
| ExtendOutput |
string |
額外輸出。
|
{ "textMatchMediaOutputList": [{ "textMatchMediaSentenceOutputList": [{ "duration": 3.366667, "matchClipList": [{ "clipId": "null-2", "endTime": 11.16, "mediaId": "****a0900f5071efbf1ce7e6c66a****", "score": -0.253, "startTime": 8.04 }], "text": "A new box of fresh horses has been opened in the nearby shopping mall.", "textId": "0" }, { "duration": 1.566667, "matchClipList": [{ "clipId": "null-1", "endTime": 1.54, "mediaId": "****a0900f5071efbf1ce7e6c66a****", "score": -0.2326, "startTime": 0 }], "text": "Today is the first day of opening", "textId": "0" } ] }] } |
樣本
正常返回樣本
JSON格式
{
"RequestId": "****36-3C1E-4417-BDB2-1E034F****",
"EditingBatchJob": {
"JobId": "****b6b2750d4308892ac3330238****",
"InputConfig": "{\n \"MediaGroupArray\": [{\n \"GroupName\": \"MediaGroup1\",\n \"MediaArray\": [\n \"****9d46c886b45481030f6e****\",\n \"****6c886b4549d481030f6e****\" ]\n }, {\n \"GroupName\": \"MediaGroup2\",\n \"MediaArray\": [\n \"****d46c886810b454930f6e****\",\n \"****4549d886810b46c30f6e****\" ]\n }],\n \"TitleArray\": [\n \"Huilongguan Box Ma Xiansheng Opened\",\n \"Box of Ma Xiansheng has opened\" ],\n \"SpeechTextArray\": [\n \"A new box of fresh horses has been opened in a nearby shopping mall. Today is the first day of opening.\"\n \"There are a lot of people in the shopping mall. Snacks and drinks are relatively cheap. Come and have a look.\" ]\n}",
"EditingConfig": "{\n \"MediaConfig\": {\n \"Volume\": 0\n },\n \"SpeechConfig\": {\n \"Volume\": 1\n },\n \"BackgroundMusicConfig\": {\n \"Volume\": 0.3\n }\n}",
"OutputConfig": "{\n \"MediaURL\": \"http://xxx.oss-cn-shanghai.aliyuncs.com/xxx_{index}.mp4\",\n \"Count\": 20,\n \"MaxDuration\": 15,\n \"Width\": 1080,\n \"Height\": 1920,\n \"Video\": {\"Crf\": 27}\n}",
"Status": "Finished",
"UserData": "{\"NotifyAddress\":\"http://xx.xx.xxx\"}",
"Extend": "{\n\t\"ErrorCode\": \"InvalidMaterial.NotFound\",\n\t\"ErrorMessage\": \"The specified clips id not found:[\\\"****30d0b5e871eebb2ff7f6c75a****\\\"]\"\n}",
"CreateTime": "2024-06-13T08:47:07Z",
"ModifiedTime": "2024-06-13T08:57:07Z\n",
"CompleteTime": "2024-06-13T08:57:07Z\n",
"JobType": "Script",
"SubJobList": [
{
"MediaId": "****1470b11171ee9d19e7e6c66a****",
"JobId": "****8e81933d44e3ae69e2f81485****",
"MediaURL": "http:/xxx.oss-cn-shanghai.aliyuncs.com/xxx_0.mp4",
"Status": "Success",
"ErrorCode": "InvalidMaterial.NotFound",
"ErrorMessage": "The specified clips id not found:[\"****30d0b5e871eebb2ff7f6c75a****\"]",
"ProjectId": "****7cc47fe04eaa81bd853acb6a****",
"Duration": 24.5
}
],
"ExtendInput": "[\"****7cc47fe04eaa81bd853acb6a****\", \"****04eaa7cc47fe81bd853acb6a****\"]",
"ExtendOutput": "{\n\"textMatchMediaOutputList\": [{\n\"textMatchMediaSentenceOutputList\": [{\n\"duration\": 3.366667,\n\"matchClipList\": [{\n\"clipId\": \"null-2\",\n\"endTime\": 11.16,\n\"mediaId\": \"****a0900f5071efbf1ce7e6c66a****\",\n\"score\": -0.253,\n\"startTime\": 8.04\n}],\n\"text\": \"A new Freshippo store just opened at the nearby mall.\",\n\"textId\": \"0\"\n},\n{\n\"duration\": 1.566667,\n\"matchClipList\": [{\n\"clipId\": \"null-1\",\n\"endTime\": 1.54,\n\"mediaId\": \"****a0900f5071efbf1ce7e6c66a****\",\n\"score\": -0.2326,\n\"startTime\": 0\n}],\n\"text\": \"today Yesfirst day of opening\",\n\"textId\": \"0\"\n}\n]\n}]\n}"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。