This operation submits a transcoding job. You can use this operation if the transcoding tasks or workflows created in the console do not meet your requirements. You can configure the required transcoding parameters based on your business logic.
Operation description
-
Transcoding jobs are asynchronous jobs. They are not guaranteed to be executed immediately. After you submit a transcoding job, it is added to an MPS queue and waits for scheduling. Therefore, the API response does not indicate that the transcoding is complete. To check the result, you can call the QueryTranscodeJobList operation to poll for the status, or configure MNS message notifications for the queue. For more information, see Receive message notifications.
-
The maximum size of a single input file is 100 GB. Larger files may cause the job to fail.
-
To transcode an input file using a preset intelligent template, first call the SubmitAnalysisJob operation (SubmitAnalysisJob) to submit a template analysis job. After the analysis job is successful, call the QueryAnalysisJobList operation (QueryAnalysisJobList) to retrieve the list of available preset templates for the input file. When you submit the transcoding job, set the TemplateId parameter to one of the available preset template IDs. If the specified template is not in the list of available preset templates, the transcoding job fails.
-
To transcode an input file using a preset static template, you do not need to submit a template analysis job.
-
To use multiple Alibaba Cloud accounts with MPS, you can create RAM users for your Alibaba Cloud account. For more information, see Create a RAM user and grant permissions. If you submit and query a transcoding job using different Alibaba Cloud accounts, no data is returned in the query results.
-
For answers to frequently asked questions about transcoding, see the ApsaraVideo Media Processing FAQ.
QPS limit
The QPS limit for this operation is 100 requests per second per user. Exceeding this limit triggers rate limiting, which may affect your business. Call this operation accordingly. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:SubmitJobs |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Input |
string |
Yes |
Job input. For details, see Input details. Note
|
{"Bucket":"exampleBucket","Location":"oss-cn-hangzhou","Object":"example.flv","Referer": "用户自行在OSS控制台设置的OSS防盗链参数"} |
| Outputs |
string |
Yes |
Job output configurations. For details, see Output details.
|
[{"OutputObject":"exampleOutput.mp4","TemplateId":"6181666213ab41b9bc21da8ff5ff****","WaterMarks":[{"InputFile":{"Bucket":"exampleBucket","Location":"oss-cn-hangzhou","Object":"image_01.png"},"WaterMarkTemplateId":"9b772ce2740d4d55876d8b542d47****"}],"UserData":"testid-001"}] |
| OutputBucket |
string |
Yes |
The OSS bucket where output files are stored.
|
exampleBucket |
| OutputLocation |
string |
No |
The OSS region (OSS Region) where the output bucket resides.
|
oss-cn-hangzhou |
| PipelineId |
string |
Yes |
The pipeline ID. For more information, see Terms.
|
dd3dae411e704030b921e52698e5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response parameters. |
||
| JobResultList |
object |
||
| JobResult |
array<object> |
List of submitted transcoding jobs. |
|
|
array<object> |
Response parameters. |
||
| Code |
string |
Error code if the job creation fails. This parameter is not returned if the job is created successfully. |
InvalidParameter.NullValue |
| Job |
object |
Detailed job information. No job ID is generated if the job submission fails. |
|
| Code |
string |
Error code if transcoding fails. This parameter is not returned if transcoding succeeds. |
InternalError |
| CreationTime |
string |
Time when the job was added. |
2014-01-10T12:00:00Z |
| FinishTime |
string |
Time when the job finished. |
2014-01-10T12:20:00Z |
| Input |
object |
Job input. |
|
| Bucket |
string |
OSS bucket for the job input. |
example-bucket-**** |
| Location |
string |
OSS location for the job input. |
oss-cn-hangzhou |
| Object |
string |
OSS object for the job input. |
example.flv |
| JobId |
string |
Job ID. |
31fa3c9ca8134f9cec2b4b0b0f78**** |
| MNSMessageResult |
object |
MNS notification result for job completion. |
|
| ErrorCode |
string |
Error code if the notification fails. This parameter is not returned if the notification succeeds. |
InvalidParameter.ResourceNotFound |
| ErrorMessage |
string |
Error message if the notification fails. This parameter is not returned if the notification succeeds. |
The resource operated "%s" cannot be found. |
| MessageId |
string |
Error message ID if the notification fails. This parameter is not returned if the notification succeeds. |
123 |
| Message |
string |
Message if transcoding fails. This parameter is not returned if transcoding succeeds. |
The operation has failed due to some unknown error, exception or failure. |
| Output |
object |
Job output. |
|
| AmixList |
object |
||
| Amix |
array<object> |
Audio mixing list. |
|
|
object |
Response parameters. |
||
| AmixURL |
string |
Media file to be mixed as background audio.
|
https://outpu***.oss-cn-shanghai.aliyuncs.com/mp4-to-mp3%5E1571025263578816%40.mp3 |
| Duration |
string |
Duration. Format: numeric or time format. |
20 |
| Map |
string |
Select the target audio track from AmixURL. Valid values: 0:a:{audio_index}, such as 0:a:0. |
0:a:0 |
| MixDurMode |
string |
Media duration selection. Valid values: first, long.
|
long |
| Start |
string |
Start time. Format: numeric or time format, such as "1:25:36.240" or "32000.23". |
0 |
| Audio |
object |
Audio configuration. Note
If you specify audio configuration in the request parameters, it overrides the corresponding parameters in the specified transcoding template. |
|
| Bitrate |
string |
Audio bitrate of the output file.
|
128 |
| Channels |
string |
Number of sound channels.
|
6 |
| Codec |
string |
Audio codec format.
|
aac |
| Profile |
string |
Audio codec profile. Note
When Codec is aac, valid values include aac_low, aac_he, aac_he_v2, aac_ld, and aac_eld. |
aac_low |
| Qscale |
string |
Audio quality control factor. |
15 |
| Samplerate |
string |
Sample rate.
Note
If the container format is flv and the audio codec is mp3, sample rates 32000, 48000, and 96000 are not supported. If the audio codec is mp3, sample rate 96000 is not supported. |
32000 |
| Volume |
object |
Volume control. |
|
| Level |
string |
Volume adjustment level.
|
-20 |
| Method |
string |
Volume adjustment method. Valid values:
|
auto |
| AudioStreamMap |
string |
Audio stream index.
|
0:a:0 |
| Clip |
object |
Clipping segment. |
|
| TimeSpan |
object |
Clipping time span. |
|
| Duration |
string |
Duration.
|
01:00:59.999 |
| Seek |
string |
Start time.
|
01:59:59.999 |
| Container |
object |
Container. |
|
| Format |
string |
Container format.
|
flv |
| DeWatermark |
string |
Blur processing, as a JSON object. For more information, see Blur processing details in Parameter details. |
{"0": [{"l": 10,"t": 10,"w": 10,"h": 10},{"l": 100,"t": 0.1,"w": 10,"h": 10}],"128000": [],"250000": [{"l": 0.2,"t": 0.1,"w": 0.01,"h": 0.05}]} |
| DigiWaterMark |
object |
Digital watermark. |
|
| Alpha |
string |
Transparency of text or image.
|
1.0 |
| InputFile |
object |
Input file. |
|
| Bucket |
string |
OSS bucket for the input file. |
example-bucket-**** |
| Location |
string |
OSS location for the input file. |
oss-cn-hangzhou |
| Object |
string |
OSS object for the input file. |
example-intput.flv |
| Type |
string |
Watermark type. If set, this value overrides the corresponding parameter in the watermark template. Valid values:
|
Image |
| Encryption |
object |
Data encryption. Supported only for m3u8 output. |
|
| Id |
string |
Encryption ID. |
31fa3c9ca8134f9cec2b4b0b0f78**** |
| Key |
string |
Encryption key for the video. |
encryptionkey128 |
| KeyType |
string |
The encryption key cannot be sent in plaintext to MPS. It must be encrypted using Base64 or KMS. For example, if the key is "encryptionkey128", use Base64("encryptionkey128") or KMS(Base64("encryptionkey128")). |
Base64 |
| KeyUri |
string |
URL to access the key, encoded using BASE64. |
https://1161758785*****.cn-shanghai.fc.aliyuncs.com/2016-08-15/proxy/HLS-decyptServer/decyptServer/ |
| SkipCnt |
string |
Number of initial segments to skip encryption (to enable fast playback). |
3 |
| Type |
string |
Encryption type. Valid value: hls-aes-128. |
hls-aes-128 |
| M3U8NonStandardSupport |
object |
M3U8 non-standard support, as a JSON object. For more information, see M3U8 non-standard parameter support details in Parameter details. |
|
| TS |
object |
JSON object for TS file non-standard support. For more information, see TS parameter support details in Parameter details. |
|
| Md5Support |
boolean |
Whether to output the MD5 value of TS files in the M3U8 file. Valid values:
|
true |
| SizeSupport |
boolean |
Whether to output the size of TS files in the M3U8 file. Valid values:
|
true |
| MergeConfigUrl |
string |
You can specify either MergeList or MergeConfigUrl, but not both.
|
`{"MergeList":[{"MergeURL":"http://exampleBucket****.oss-cn-hangzhou.aliyuncs.com/video_01.mp4"}]} |
| MergeList |
object |
||
| Merge |
array<object> |
Video merging configuration. |
|
|
object |
Detailed video merging configuration. |
||
| Duration |
string |
Duration.
|
00000.20 |
| MergeURL |
string |
URL of the merge segment.
|
http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/example-object-****.flv |
| RoleArn |
string |
Role ARN used for agent authorization. |
acs:ram:: |
| Start |
string |
Start time point.
|
00000.50 |
| MuxConfig |
object |
Muxing configuration. If you set this parameter in the request, it overrides the corresponding parameter in the specified transcoding template. |
|
| Gif |
object |
GIF muxing configuration. |
|
| DitherMode |
string |
Dither mode for the color palette. Valid values: sierra, bayer. |
bayer |
| FinalDelay |
string |
Pause time for the final frame, in centiseconds. |
0 |
| IsCustomPalette |
string |
Custom color palette feature. Valid values:
|
false |
| Loop |
string |
Number of loops. |
0 |
| Segment |
object |
Segmentation configuration, as a JSON object. |
|
| Duration |
string |
Segment duration. Integer, in seconds.
|
20 |
| Webp |
object |
WEBP muxing configuration. |
|
| Loop |
string |
Number of loops. |
0 |
| OpeningList |
object |
||
| Opening |
array<object> |
Opening list, as a JSON object. |
|
|
object |
Response parameters. |
||
| Height |
string |
Height.
|
1080 |
| Start |
string |
Start time relative to the main video. Delay before displaying the opening video.
|
1 |
| Width |
string |
Width.
|
1920 |
| openUrl |
string |
OSS URL of the opening video. |
http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv |
| OutSubtitleList |
object |
||
| OutSubtitle |
array<object> |
Output subtitle list. |
|
|
array<object> |
Output subtitle details. |
||
| Map |
string |
Video track. Format: |
0:v:0 |
| Message |
string |
Error message if job creation fails. This parameter is not returned if job creation succeeds. |
The specified parameter “%s” cannot be null. |
| OutSubtitleFile |
object |
Output file details. |
|
| Bucket |
string |
OSS bucket for the input file. |
example-bucket-**** |
| Location |
string |
OSS location for the output file. |
oss-cn-hangzhou |
| Object |
string |
OSS object for the output file. |
example-output.flv |
| RoleArn |
string |
Role ARN used for agent authorization. |
acs:ram:: |
| Success |
boolean |
Whether the operation was successful. Valid values:
|
true |
| OutputFile |
object |
Output file. |
|
| Bucket |
string |
OSS bucket for the input file. |
example-bucket-**** |
| Location |
string |
OSS location for the output file. |
oss-cn-hangzhou |
| Object |
string |
OSS object for the output file. |
example-output.flv |
| RoleArn |
string |
Role ARN used for agent authorization. |
acs:ram:: |
| Priority |
string |
Priority of the job within its corresponding pipeline.
|
5 |
| Properties |
object |
Media properties. |
|
| Bitrate |
string |
Bitrate. |
1000 |
| Duration |
string |
Duration. |
55 |
| FileFormat |
string |
File format. |
QuickTime / MOV |
| FileSize |
string |
File size. |
3509895 |
| Format |
object |
Format information. |
|
| Bitrate |
string |
Total bitrate. |
1000 |
| Duration |
string |
Total duration. |
55 |
| FormatLongName |
string |
Long name of the container or encapsulation format. |
QuickTime / MOV |
| FormatName |
string |
Short name of the container or encapsulation format. Valid values: mov, mp4, m4a, 3gp, 3g2, mj2. |
mov |
| NumPrograms |
string |
Total number of program streams. |
0 |
| NumStreams |
string |
Total number of media streams. |
2 |
| Size |
string |
File size. |
3509895 |
| StartTime |
string |
Start time. |
0.000000 |
| Fps |
string |
Frame rate, numeric. |
25 |
| Height |
string |
Video height. |
720 |
| Streams |
object |
Stream information. |
|
| AudioStreamList |
object |
||
| AudioStream |
array<object> |
Audio stream list. |
|
|
object |
Audio stream details. |
||
| Bitrate |
string |
Bitrate. |
128.806 |
| ChannelLayout |
string |
Sound channel output style. |
stereo |
| Channels |
string |
Number of sound channels. |
2 |
| CodecLongName |
string |
Long name of the encoding format. |
AAC (Advanced Audio Coding) |
| CodecName |
string |
Short name of the encoding format. |
aac |
| CodecTag |
string |
Encoding format tag. |
0x6134706d |
| CodecTagString |
string |
Encoding format tag text. |
mp4a |
| CodecTimeBase |
string |
Codec time base. |
1/44100 |
| Duration |
string |
Duration. |
17.159546 |
| Index |
string |
Audio stream index. Identifies the position of the audio stream within the entire media stream. |
1 |
| Lang |
string |
Language. For more information, see FFmpeg language definition and ISO-639. |
eng |
| NumFrames |
string |
Total number of frames. |
25 |
| SampleFmt |
string |
Sampling format. |
fltp |
| Samplerate |
string |
Sample rate. |
44100 |
| StartTime |
string |
Start time. |
0.000000 |
| Timebase |
string |
Time base. |
1/44100 |
| SubtitleStreamList |
object |
||
| SubtitleStream |
array<object> |
Subtitle stream list. |
|
|
object |
Subtitle stream details. |
||
| Index |
string |
Subtitle stream index. Identifies the position of the subtitle stream within the entire media stream. |
1 |
| Lang |
string |
Language. For more information, see FFmpeg language definition and ISO-639. |
eng |
| VideoStreamList |
object |
||
| VideoStream |
array<object> |
Video stream list. |
|
|
array<object> |
Video stream details. |
||
| AvgFPS |
string |
Average frame rate. |
23.976025 |
| Bitrate |
string |
Bitrate. |
1496.46 |
| CodecLongName |
string |
Long name of the encoding format. |
H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 |
| CodecName |
string |
Short name of the encoding format. |
h264 |
| CodecTag |
string |
Encoding format tag. |
0x31637661 |
| CodecTagString |
string |
Encoding format tag text. |
avc1 |
| CodecTimeBase |
string |
Codec time base. |
1001/48000 |
| Dar |
string |
Display aspect ratio. |
16:9 |
| Duration |
string |
Duration. |
17.225542 |
| Fps |
string |
Frame rate. |
23.976025 |
| HasBFrames |
string |
Whether B-frames exist. |
2 |
| Height |
string |
Video resolution height. |
720 |
| Index |
string |
Video stream index. Identifies the position of the video stream within the entire media stream. |
0 |
| Lang |
string |
Language. For more information, see FFmpeg language definition and ISO-639. |
eng |
| Level |
string |
Encoding profile. |
51 |
| NetworkCost |
object |
Network bandwidth consumption. |
|
| AvgBitrate |
string |
Average bitrate. |
100 |
| CostBandwidth |
string |
Maximum bandwidth consumed. |
10 |
| PreloadTime |
string |
Preload time. |
8 |
| NumFrames |
string |
Total number of frames. |
25 |
| PixFmt |
string |
Pixel format. |
yuv420p |
| Profile |
string |
Codec profile. |
high |
| Sar |
string |
Sample aspect ratio. |
1:1 |
| StartTime |
string |
Start time. |
0.000000 |
| Timebase |
string |
Time base. |
1/24000 |
| Width |
string |
Video resolution width, numeric. |
1280 |
| Width |
string |
Video width. |
1280 |
| Rotate |
string |
Clockwise rotation angle of the video. |
180 |
| SubtitleConfig |
object |
Subtitle configuration information. |
|
| ExtSubtitleList |
object |
||
| ExtSubtitle |
array<object> |
List of external subtitles. A JSON array with a maximum of 4 items. |
|
|
array<object> |
External subtitle details. |
||
| CharEnc |
string |
Character encoding for external subtitles.
Note
When the external subtitle character encoding is set to auto, detection errors may occur. We recommend specifying a specific character encoding. |
UTF-8 |
| FontName |
string |
Font name for converting external subtitles to hard subtitles. Default: SimSun. For more font information, see Font list. |
"WenQuanYi Zen Hei", "Yuanti SC Regular", "SimSun" |
| Input |
object |
JSON object for the external input subtitle file. Currently supports srt and ass formats. |
|
| Bucket |
string |
OSS bucket for the input file. |
example-bucket-**** |
| Location |
string |
OSS location for the input file. |
oss-cn-hangzhou |
| Object |
string |
OSS object for the input file. |
example-output.flv |
| SubtitleList |
object |
||
| Subtitle |
array<object> |
Subtitle list. |
|
|
object |
Response parameters. |
||
| Map |
string |
Audio track. Format: |
0:a:0 |
| SuperReso |
object |
Resolution follows source. |
|
| IsHalfSample |
string |
Whether to get sample rate related parameters. Valid values:
|
true |
| TailSlateList |
object |
||
| TailSlate |
array<object> |
End slate list, as a JSON object. |
|
|
object |
Response parameters. |
||
| BgColor |
string |
If the width and height of the end slate video are smaller than the main video, set the background color for the blank areas. Default is White. For more values, see bgcolor. |
White |
| BlendDuration |
string |
Transition duration between the main video and the end slate. The effect is a fade-in/fade-out: the last frame of the main video is displayed while the end slate video plays. The last frame of the main video gradually fades out, and the end slate video gradually fades in. Unit: seconds. Default: 0. |
2 |
| Height |
string |
Height.
|
1080 |
| IsMergeAudio |
boolean |
Whether to merge the audio content of the end slate video. Valid values:
|
false |
| Start |
string |
Start time. |
1 |
| TailUrl |
string |
OSS URL of the end slate video. |
http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv |
| Width |
string |
Width.
|
1920 |
| TemplateId |
string |
Transcoding template ID. |
S00000000-000010 |
| TransConfig |
object |
General transcoding configuration. Note
If you set this value in the request, it overrides the corresponding parameter in the specified transcoding template. |
|
| AdjDarMethod |
string |
Resolution rewriting method. Default: none. Valid values:
|
crop |
| IsCheckAudioBitrate |
string |
Whether to check the audio bitrate. If the output audio bitrate is greater than the source audio bitrate, the output audio bitrate is considered equal to the source audio bitrate, meaning the set audio bitrate parameter will not take effect. This value has a lower priority than IsCheckAudioBitrateFail.
|
false |
| IsCheckAudioBitrateFail |
string |
Whether to check the audio bitrate. This value has a higher priority than IsCheckAudioBitrate. If the output audio bitrate is greater than the source audio bitrate, transcoding is not performed, and the job fails directly.
|
true |
| IsCheckReso |
string |
Whether to check the resolution. If the output resolution is greater than the input resolution (based on width or height), the output resolution is considered equal to the input resolution.
|
false |
| IsCheckResoFail |
string |
Whether to check the resolution. This value has a higher priority than IsCheckReso. If the output resolution is greater than the input resolution (based on width or height), transcoding is not performed, and the job fails directly.
|
false |
| IsCheckVideoBitrate |
string |
Whether to check the video bitrate. If the output video bitrate is greater than the input video bitrate, the output video bitrate is considered equal to the input video bitrate.
|
false |
| IsCheckVideoBitrateFail |
string |
Whether to check the bitrate. If the output video bitrate is greater than the source video bitrate, transcoding is not performed, and the job fails directly. This value has a higher priority than IsCheckVideoBitrate.
|
true |
| TransMode |
string |
Transcoding mode. Valid values:
|
onepass |
| UserData |
string |
User-defined data. |
example data |
| Video |
object |
Video configuration. Note
If specified, this replaces the AliyunVideoCodec settings of the template specified by TemplateId. |
|
| Bitrate |
string |
Bitrate of the output video file. Unit: Kbps. |
10 |
| BitrateBnd |
object |
Average video bitrate range. |
|
| Max |
string |
Maximum total bitrate. Unit: Kbps. |
20 |
| Min |
string |
Minimum total bitrate. Unit: Kbps. |
10 |
| Bufsize |
string |
Buffer size.
|
1000 |
| Codec |
string |
Codec format.
|
H.264 |
| Crf |
string |
Rate-quality control factor.
|
22 |
| Crop |
string |
Video frame cropping. Supports 2 methods:
|
1280:800:0:140 |
| Degrain |
string |
Independent denoising algorithm strength. |
5 |
| Fps |
string |
Frame rate.
|
60 |
| Gop |
string |
Maximum time interval or maximum number of frames between keyframes. Unit: seconds (s).
|
1 |
| Height |
string |
Height.
|
1280 |
| MaxFps |
string |
Maximum frame rate. |
15 |
| Maxrate |
string |
Peak video bitrate. Unit: Kbps. |
10 |
| Pad |
string |
Video padding with black bars.
|
1280:800:0:140 |
| PixFmt |
string |
Video color format.
|
yuvj420p |
| Preset |
string |
Video algorithm preset. Default: medium. Valid values:
|
veryfast |
| Profile |
string |
Encoding profile. Currently only supported for H.264. Default: high. Valid values: Note
If you have multiple definitions, we recommend setting the lowest definition to baseline to ensure playback on low-end devices. Set other definitions to main or high.
|
baseline |
| Qscale |
string |
Video quality control value. |
15 |
| ResoPriority |
string |
Resource priority. |
1 |
| ScanMode |
string |
Scan mode. Valid values:
Best practice: Although interlaced scanning saves more data than progressive scanning, its image quality is poor. Therefore, mainstream video production now uses progressive scanning.
|
interlaced |
| Width |
string |
Width.
|
1080 |
| VideoStreamMap |
string |
Video stream index.
|
0:a:0 |
| WaterMarkConfigUrl |
string |
Watermark configuration file URL. |
http://example.com/configure |
| WaterMarkList |
object |
||
| WaterMark |
array<object> |
Watermark list. Note
If the watermark output is truncated or fails, check if your text watermark contains special characters. If it does, escape the special characters before passing them, or submit a ticket to Alibaba Cloud support for compatibility handling. |
|
|
array<object> |
Watermark details. |
||
| Dx |
string |
The horizontal offset of the watermark image relative to the output video. If set in the request, this value overrides the corresponding parameter in the watermark template. The default value is 0. The value can be in two forms:
|
1 |
| Dy |
string |
The vertical offset of the watermark image relative to the output video. If set in the request, this value overrides the corresponding parameter in the watermark template. The value can be in two forms:
|
1 |
| Height |
string |
Height of the watermark image. If set in the request, this value overrides the corresponding parameter in the watermark template. The value can be in two forms:
|
1280 |
| InputFile |
object |
The watermark input file. Currently supports PNG images and MOV files as input. |
|
| Bucket |
string |
OSS bucket for the input file. |
example-bucket |
| Location |
string |
OSS location for the input file. |
oss-cn-hangzhou |
| Object |
string |
OSS object for the input file. |
example-logo-****.png |
| ReferPos |
string |
The position of the watermark. If set in the request, this value overrides the corresponding parameter in the watermark template. Valid values:
|
TopRight |
| Type |
string |
Watermark type. If set in the request, this value overrides the corresponding parameter in the watermark template. For more information, see Parameter details. Valid values:
|
Image |
| WaterMarkTemplateId |
string |
Watermark template ID. |
88c6ca184c0e47098a5b665e2a12**** |
| Width |
string |
Width of the watermark image. If set in the request, this value overrides the corresponding parameter in the watermark template. The value can be in two forms:
|
1080 |
| Percent |
integer |
Transcoding progress. |
100 |
| PipelineId |
string |
Pipeline ID. |
88c6ca184c0e47098a5b665e2a126797 |
| State |
string |
Job status.
|
Submitted |
| Message |
string |
Error message if job creation fails. This parameter is not returned if the job is created successfully. |
The specified parameter "%s" cannot be null. |
| Success |
boolean |
Whether the operation was successful. Valid values:
|
true |
| RequestId |
string |
Request ID. |
25818875-5F78-4A45S71F6-D73936451234 |
Examples
Success response
JSON format
{
"JobResultList": {
"JobResult": [
{
"Code": "InvalidParameter.NullValue",
"Job": {
"Code": "InternalError",
"CreationTime": "2014-01-10T12:00:00Z",
"FinishTime": "2014-01-10T12:20:00Z",
"Input": {
"Bucket": "example-bucket-****",
"Location": "oss-cn-hangzhou",
"Object": "example.flv"
},
"JobId": "31fa3c9ca8134f9cec2b4b0b0f78****",
"MNSMessageResult": {
"ErrorCode": "InvalidParameter.ResourceNotFound",
"ErrorMessage": "The resource operated \"%s\" cannot be found.",
"MessageId": "123"
},
"Message": "The operation has failed due to some unknown error, exception or failure.",
"Output": {
"AmixList": {
"Amix": [
{
"AmixURL": "https://outpu***.oss-cn-shanghai.aliyuncs.com/mp4-to-mp3%5E1571025263578816%40.mp3",
"Duration": "20",
"Map": "0:a:0",
"MixDurMode": "long",
"Start": "0"
}
]
},
"Audio": {
"Bitrate": "128",
"Channels": "6",
"Codec": "aac",
"Profile": "aac_low",
"Qscale": "15",
"Samplerate": "32000",
"Volume": {
"Level": "-20",
"Method": "auto"
}
},
"AudioStreamMap": "0:a:0",
"Clip": {
"TimeSpan": {
"Duration": "01:00:59.999",
"Seek": "01:59:59.999"
}
},
"Container": {
"Format": "flv"
},
"DeWatermark": "{\"0\": [{\"l\": 10,\"t\": 10,\"w\": 10,\"h\": 10},{\"l\": 100,\"t\": 0.1,\"w\": 10,\"h\": 10}],\"128000\": [],\"250000\": [{\"l\": 0.2,\"t\": 0.1,\"w\": 0.01,\"h\": 0.05}]}",
"DigiWaterMark": {
"Alpha": "1.0",
"InputFile": {
"Bucket": "example-bucket-****",
"Location": "oss-cn-hangzhou",
"Object": "example-intput.flv"
},
"Type": "Image"
},
"Encryption": {
"Id": "31fa3c9ca8134f9cec2b4b0b0f78****",
"Key": "encryptionkey128",
"KeyType": "Base64",
"KeyUri": "https://1161758785*****.cn-shanghai.fc.aliyuncs.com/2016-08-15/proxy/HLS-decyptServer/decyptServer/",
"SkipCnt": "3",
"Type": "hls-aes-128"
},
"M3U8NonStandardSupport": {
"TS": {
"Md5Support": true,
"SizeSupport": true
}
},
"MergeConfigUrl": "`{\"MergeList\":[{\"MergeURL\":\"http://exampleBucket****.oss-cn-hangzhou.aliyuncs.com/video_01.mp4\"}]}",
"MergeList": {
"Merge": [
{
"Duration": "00000.20",
"MergeURL": "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/example-object-****.flv",
"RoleArn": "acs:ram:::role/",
"Start": "00000.50"
}
]
},
"MuxConfig": {
"Gif": {
"DitherMode": "bayer",
"FinalDelay": "0",
"IsCustomPalette": "false",
"Loop": "0"
},
"Segment": {
"Duration": "20"
},
"Webp": {
"Loop": "0"
}
},
"OpeningList": {
"Opening": [
{
"Height": "1080",
"Start": "1",
"Width": "1920",
"openUrl": "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv"
}
]
},
"OutSubtitleList": {
"OutSubtitle": [
{
"Map": "0:v:0",
"Message": "The specified parameter “%s” cannot be null.",
"OutSubtitleFile": {
"Bucket": "example-bucket-****",
"Location": "oss-cn-hangzhou",
"Object": "example-output.flv",
"RoleArn": "acs:ram:::role/"
},
"Success": true
}
]
},
"OutputFile": {
"Bucket": "example-bucket-****",
"Location": "oss-cn-hangzhou",
"Object": "example-output.flv",
"RoleArn": "acs:ram:::role/"
},
"Priority": "5",
"Properties": {
"Bitrate": "1000",
"Duration": "55",
"FileFormat": "QuickTime / MOV",
"FileSize": "3509895",
"Format": {
"Bitrate": "1000",
"Duration": "55",
"FormatLongName": "QuickTime / MOV",
"FormatName": "mov",
"NumPrograms": "0",
"NumStreams": "2",
"Size": "3509895",
"StartTime": "0.000000"
},
"Fps": "25",
"Height": "720",
"Streams": {
"AudioStreamList": {
"AudioStream": [
{
"Bitrate": "128.806",
"ChannelLayout": "stereo",
"Channels": "2",
"CodecLongName": "AAC (Advanced Audio Coding)",
"CodecName": "aac",
"CodecTag": "0x6134706d",
"CodecTagString": "mp4a",
"CodecTimeBase": "1/44100",
"Duration": "17.159546",
"Index": "1",
"Lang": "eng",
"NumFrames": "25",
"SampleFmt": "fltp",
"Samplerate": "44100",
"StartTime": "0.000000",
"Timebase": "1/44100"
}
]
},
"SubtitleStreamList": {
"SubtitleStream": [
{
"Index": "1",
"Lang": "eng"
}
]
},
"VideoStreamList": {
"VideoStream": [
{
"AvgFPS": "23.976025",
"Bitrate": "1496.46",
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"CodecName": "h264",
"CodecTag": "0x31637661",
"CodecTagString": "avc1",
"CodecTimeBase": "1001/48000",
"Dar": "16:9",
"Duration": "17.225542",
"Fps": "23.976025",
"HasBFrames": "2",
"Height": "720",
"Index": "0",
"Lang": "eng",
"Level": "51",
"NetworkCost": {
"AvgBitrate": "100",
"CostBandwidth": "10",
"PreloadTime": "8"
},
"NumFrames": "25",
"PixFmt": "yuv420p",
"Profile": "high",
"Sar": "1:1",
"StartTime": "0.000000",
"Timebase": "1/24000",
"Width": "1280"
}
]
}
},
"Width": "1280"
},
"Rotate": "180",
"SubtitleConfig": {
"ExtSubtitleList": {
"ExtSubtitle": [
{
"CharEnc": "UTF-8",
"FontName": "\"WenQuanYi Zen Hei\", \"Yuanti SC Regular\", \"SimSun\"",
"Input": {
"Bucket": "example-bucket-****",
"Location": "oss-cn-hangzhou",
"Object": "example-output.flv"
}
}
]
},
"SubtitleList": {
"Subtitle": [
{
"Map": "0:a:0"
}
]
}
},
"SuperReso": {
"IsHalfSample": "true"
},
"TailSlateList": {
"TailSlate": [
{
"BgColor": "White",
"BlendDuration": "2",
"Height": "1080",
"IsMergeAudio": false,
"Start": "1",
"TailUrl": "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv",
"Width": "1920"
}
]
},
"TemplateId": "S00000000-000010",
"TransConfig": {
"AdjDarMethod": "crop",
"IsCheckAudioBitrate": "false",
"IsCheckAudioBitrateFail": "true",
"IsCheckReso": "false",
"IsCheckResoFail": "false",
"IsCheckVideoBitrate": "false",
"IsCheckVideoBitrateFail": "true",
"TransMode": "onepass"
},
"UserData": "example data",
"Video": {
"Bitrate": "10",
"BitrateBnd": {
"Max": "20",
"Min": "10"
},
"Bufsize": "1000",
"Codec": "H.264",
"Crf": "22",
"Crop": "1280:800:0:140",
"Degrain": "5",
"Fps": "60",
"Gop": "1",
"Height": "1280",
"MaxFps": "15",
"Maxrate": "10",
"Pad": "1280:800:0:140",
"PixFmt": "yuvj420p",
"Preset": "veryfast",
"Profile": "baseline",
"Qscale": "15",
"ResoPriority": "1",
"ScanMode": "interlaced",
"Width": "1080"
},
"VideoStreamMap": "0:a:0",
"WaterMarkConfigUrl": "http://example.com/configure",
"WaterMarkList": {
"WaterMark": [
{
"Dx": "1",
"Dy": "1",
"Height": "1280",
"InputFile": {
"Bucket": "example-bucket",
"Location": "oss-cn-hangzhou",
"Object": "example-logo-****.png"
},
"ReferPos": "TopRight",
"Type": "Image",
"WaterMarkTemplateId": "88c6ca184c0e47098a5b665e2a12****",
"Width": "1080"
}
]
}
},
"Percent": 100,
"PipelineId": "88c6ca184c0e47098a5b665e2a126797",
"State": "Submitted"
},
"Message": "The specified parameter \"%s\" cannot be null.",
"Success": true
}
]
},
"RequestId": "25818875-5F78-4A45S71F6-D73936451234"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.