Queries template analysis jobs and returns available preset templates after analysis completes.
Operation description
The time when the job was created.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:QueryAnalysisJobList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AnalysisJobIds |
string |
Yes |
The IDs of template analysis jobs. |
bb558c1cc25b45309aab5be44d19**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The status of the job. Valid values:
|
5CA6E020-4102-4FFF-AA56-5ED7ECD811A1 |
| AnalysisJobList |
object |
||
| AnalysisJob |
array<object> |
The IDs of template analysis jobs. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the job was created. |
2014-01-10T12:00:00Z |
| Percent |
integer |
The transcoding progress. |
86 |
| State |
string |
The job status.
|
Success |
| AnalysisConfig |
object |
The job configurations. |
|
| QualityControl |
object |
The output quality control settings. |
|
| MethodStreaming |
string |
The playback mode. Valid values:
|
network |
| RateQuality |
string |
The quality level of the job output. Default value: 25. |
25 |
| PropertiesControl |
object |
The output attribute control settings. |
|
| Deinterlace |
string |
The deinterlacing mode. Valid values:
|
Auto |
| Crop |
object |
The cropping configuration of the video image. |
|
| Top |
string |
The top margin to be cropped out. Note
This parameter is invalid if the Mode parameter is set to Auto or None. |
8 |
| Width |
string |
The width of the video image after the margins are cropped out. Note
This parameter is invalid if the Mode parameter is set to Auto or None. |
8 |
| Height |
string |
The height of the video image after the margins are cropped out. Note
This parameter is invalid if the Mode parameter is set to Auto or None. |
8 |
| Left |
string |
The left margin to be cropped out. Note
This parameter is invalid if the Mode parameter is set to Auto or None. |
8 |
| Mode |
string |
The cropping mode. Valid values:
|
Auto |
| Message |
string |
The error message returned if the job failed. |
The resource operated \"PipelineId\" cannot be found |
| Priority |
string |
The job priority in the MPS queue.
|
8 |
| MNSMessageResult |
object |
The MNS notification message for the job result. |
|
| MessageId |
string |
The message ID. Returned only if the job succeeded. |
3ca84a39a9024f19853b21be9cf9**** |
| ErrorMessage |
string |
The error message. Returned only if the job failed. |
The resource operated \"PipelineId\" cannot be found |
| ErrorCode |
string |
The error code. Returned only if the job failed. |
InvalidParameter.ResourceNotFound |
| TemplateList |
object |
||
| Template |
array<object> |
The matched preset templates. |
|
|
array<object> |
|||
| Video |
object |
The video codec configurations. |
|
| Bufsize |
string |
The buffer size.
|
6000 |
| Degrain |
string |
The strength of the independent noise reduction algorithm. |
5 |
| BitrateBnd |
object |
The average bitrate range of the video. |
|
| Max |
string |
The upper limit of the total bitrate. Unit: Kbit/s. |
1500 |
| Min |
string |
The lower limit of the total bitrate. Unit: Kbit/s. |
800 |
| PixFmt |
string |
The video pixel format, such as yuv420p and yuvj420p. |
yuv420p |
| Codec |
string |
The codec. Valid values: H.264 and H.265. Default value: H.264. |
H.264 |
| Height |
string |
The height of the video.
|
720 |
| Qscale |
string |
The level of quality control on the video. |
15 |
| Bitrate |
string |
The average bitrate of the video. Unit: Kbit/s. |
1000 |
| Maxrate |
string |
The maximum bitrate of the video.
|
2000 |
| Profile |
string |
The codec profile. Valid values:
|
high |
| Crf |
string |
The constant rate factor.
|
26 |
| Gop |
string |
The maximum number of frames between two keyframes. Default value: 250. |
250 |
| Width |
string |
The width of the video.
|
1280 |
| Fps |
string |
The frame rate of the video.
|
25 |
| Preset |
string |
The preset video algorithm. Valid values: veryfast, fast, medium, slow, and slower. Default value: medium. |
medium |
| ScanMode |
string |
The scan mode. Valid values:
|
interlaced |
| TransConfig |
object |
The general transcoding configurations. |
|
| TransMode |
string |
The transcoding mode. Default value: onepass. Valid values:
|
onepass |
| State |
string |
The state of the template. Valid values:
|
Normal |
| MuxConfig |
object |
The transmuxing configurations. |
|
| Gif |
object |
The transmuxing configurations for the GIF format. |
|
| FinalDelay |
string |
The delay between loop iterations for GIF. Unit: 0.01 seconds (for example, 500 = 5 seconds). |
0 |
| Loop |
string |
The loop count for GIF or WebP. Default value: 0. |
0 |
| Segment |
object |
The segment configurations. |
|
| Duration |
string |
The segment length. Unit: seconds. |
10 |
| Name |
string |
The name of the template. |
FLV-UD |
| Audio |
object |
The audio codec configurations. |
|
| Profile |
string |
The codec profile of the audio. Valid values when the Codec parameter is set to aac:
|
aac_low |
| Codec |
string |
The audio codec. Default value: aac. Valid values:
|
aac |
| Samplerate |
string |
The sampling rate.
|
44100 |
| Qscale |
string |
The level of quality control on the audio. |
15 |
| Channels |
string |
The number of sound channels. Default value: 2. |
2 |
| Bitrate |
string |
The audio bitrate of the output file.
|
128 |
| Id |
string |
The transcoding template ID. |
S00000000-00**** |
| Container |
object |
The container format configurations. |
|
| Format |
string |
The container format. |
flv |
| UserData |
string |
The custom data. |
testid-001 |
| Code |
string |
The error code returned if the job fails. |
InvalidParameter.ResourceNotFound |
| InputFile |
object |
The information about the job input. |
|
| Object |
string |
The OSS object used as the input file. |
example.flv |
| Location |
string |
The region in which OSS resides. |
oss-cn-hangzhou |
| Bucket |
string |
The OSS bucket that stores the input file. |
example-bucket |
| PipelineId |
string |
The MPS queue ID. |
bb558c1cc25b45309aab5be44d19**** |
| Id |
string |
The ID of the template analysis job. |
57f6aa3f84824309bcba67231b406**** |
| NonExistAnalysisJobIds |
object |
||
| String |
array |
The message sent by Message Service (MNS) to notify the user of the job result. |
|
|
string |
The operation that you want to perform. Set the value to QueryAnalysisJobList. |
null |
Examples
Success response
JSON format
{
"RequestId": "5CA6E020-4102-4FFF-AA56-5ED7ECD811A1",
"AnalysisJobList": {
"AnalysisJob": [
{
"CreationTime": "2014-01-10T12:00:00Z",
"Percent": 86,
"State": "Success",
"AnalysisConfig": {
"QualityControl": {
"MethodStreaming": "network",
"RateQuality": "25"
},
"PropertiesControl": {
"Deinterlace": "Auto",
"Crop": {
"Top": "8",
"Width": "8",
"Height": "8",
"Left": "8",
"Mode": "Auto"
}
}
},
"Message": "The resource operated \\\"PipelineId\\\" cannot be found",
"Priority": "8",
"MNSMessageResult": {
"MessageId": "3ca84a39a9024f19853b21be9cf9****",
"ErrorMessage": "The resource operated \\\"PipelineId\\\" cannot be found",
"ErrorCode": "InvalidParameter.ResourceNotFound"
},
"TemplateList": {
"Template": [
{
"Video": {
"Bufsize": "6000",
"Degrain": "5",
"BitrateBnd": {
"Max": "1500",
"Min": "800"
},
"PixFmt": "yuv420p",
"Codec": "H.264",
"Height": "720",
"Qscale": "15",
"Bitrate": "1000",
"Maxrate": "2000",
"Profile": "high",
"Crf": "26",
"Gop": "250",
"Width": "1280",
"Fps": "25",
"Preset": "medium",
"ScanMode": "interlaced"
},
"TransConfig": {
"TransMode": "onepass"
},
"State": "Normal",
"MuxConfig": {
"Gif": {
"FinalDelay": "0",
"Loop": "0"
},
"Segment": {
"Duration": "10"
}
},
"Name": "FLV-UD",
"Audio": {
"Profile": "aac_low",
"Codec": "aac",
"Samplerate": "44100",
"Qscale": "15",
"Channels": "2",
"Bitrate": "128"
},
"Id": "S00000000-00****",
"Container": {
"Format": "flv"
}
}
]
},
"UserData": "testid-001",
"Code": "InvalidParameter.ResourceNotFound",
"InputFile": {
"Object": "example.flv",
"Location": "oss-cn-hangzhou",
"Bucket": "example-bucket"
},
"PipelineId": "bb558c1cc25b45309aab5be44d19****",
"Id": "57f6aa3f84824309bcba67231b406****"
}
]
},
"NonExistAnalysisJobIds": {
"String": [
"null"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.