调用ListJob列出转码作业。
使用说明
- 本接口返回结果默认按CreationTime降序排列。
- 本接口最多返回最近90天的任务,小于90天的按实际设置时间返回。
- 您可以通过设置作业状态、创建时间区间、转码管道等请求参数筛选查询结果。
- 媒体处理默认同一账号不同地域数据不互通,调用接口前请确认您传入的地域信息与待查询文件地域一致,否则可能导致接口调用失败或信息不一致。
QPS限制
本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。更多信息,请参见QPS限制。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListJob |
操作接口名,系统规定参数,取值:ListJob。 |
NextPageToken | String | 否 | 16f01ad6175e4230ac42bb5182cd**** |
下一页标识。第一次请求无需传入,服务会返回,第二次请求传入即可。 |
MaximumPageSize | Long | 否 | 10 |
单页最大可返回媒体工作流执行实例。
|
State | String | 否 | All |
转码任务状态。默认为All(所有状态)。可取值:
|
StartOfJobCreatedTimeRange | String | 否 | 2014-01-10T12:00:00Z |
创建转码作业时间范围中的下限值。日期格式按照ISO8601标准表示,并需要使用UTC时间。格式为: |
EndOfJobCreatedTimeRange | String | 否 | 2014-01-11T12:00:00Z |
创建转码作业时间的上限。日期格式按照ISO8601标准表示,并需要使用UTC时间。格式为: |
PipelineId | String | 否 | 88c6ca184c0e424d5w5b665e2a12**** |
管道ID。可以通过MPS控制台 > 全局设置 > 管道查询。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | BC860F04-778A-472F-AB39-E1BF329C1EA8 |
请求ID。 |
NextPageToken | String | 16f01ad6175e4230ac42bb5182cd**** |
下一页标识。需记录下来,在下一次请求时传入即可。 |
JobList | Array of Job |
转码作业集合。 |
|
Job | |||
CreationTime | String | 2014-01-10T12:00:00Z |
作业添加时间。 |
Percent | Long | 100 |
转码进度。 |
FinishTime | String | 2014-01-10T12:20:25Z |
作业完成时间。 |
State | String | TranscodeSuccess |
作业状态:
|
JobId | String | 31fa3c9ca8134fb4b0b0f7878301**** |
任务ID。 |
Code | String | InternalError |
任务失败时的错误码。任务成功时不返回。 |
Message | String | The operation has failed due to some unknown error, exception or failure. |
任务失败时的消息。任务成功时不返回。 |
Output | Object |
作业输出。 |
|
Video | Object |
视频配置。 |
|
Bufsize | String | 6000 |
缓冲区大小。 |
Degrain | String | 5 |
独立去噪算法强度。 |
BitrateBnd | Object |
视频码率范围。 |
|
Max | String | 1000 |
最大码率。单位:Kbps。 |
Min | String | 200 |
最小码率。单位:Kbps。 |
PixFmt | String | yuv420p |
视频颜色格式。范围:yuv420p,yuvj420p等标准颜色格式。 |
Pad | String | 1280:800:0:140 |
视频贴黑边。单位:px。
|
Codec | String | H.264 |
编解码格式。可取值H.264、H.265、GIF、WEBP。 |
Height | String | 720 |
高。
|
Qscale | String | 15 |
视频质量控制度。 |
Crop | String | border |
视频画面裁剪。支持2种方式。
|
Bitrate | String | 428 |
视频平均码率。单位:Kbps。 |
Maxrate | String | 1000 |
视频码率峰值。单位:Kbps。 |
MaxFps | String | 60 |
最大帧率。 |
Profile | String | high |
编码级别。
|
Crf | String | 26 |
码率-质量控制因子。如果设置了Crf,则Bitrate的设置失效。默认值:26。 |
Gop | String | 250 |
关键帧间最大帧数。默认值:250。 |
Width | String | 1280 |
宽。
|
Fps | String | 25 |
帧率。
|
Preset | String | medium |
视频算法器预置。默认值:medium。可取值:
|
ScanMode | String | interlaced |
扫描模式。可取值:
|
ResoPriority | String | 1 |
资源优先级。 |
TransConfig | Object |
转码通用配置。如果请求参数中设置了该值,则覆盖指定转码模板中的对应参数。 |
|
IsCheckAudioBitrate | String | false |
是否检查音频码率。如果音频输出码率大于音频输入码率,则视为音频输出码率等于音频输入码率。
|
TransMode | String | onepass |
转码模式。
|
IsCheckReso | String | false |
是否检查分辨率。如果输出分辨率大于输入分辨率(判断条件是宽或高),则输出分辨率等于输入分辨率。
|
IsCheckVideoBitrateFail | String | false |
是否检查码率。当输出视频码率大于媒体源视频码率时,则不进行转码,直接返回转码失败。此值优先级大于IsCheckVideoBitrate。
|
AdjDarMethod | String | none |
分辨率改写方式。默认值:none。可选范围:rescale、crop、pad、none。 |
IsCheckVideoBitrate | String | false |
是否检查视频码率。 如果视频输出码率大于视频输入码率,则视为视频输出码率等于视频输入码率。
|
IsCheckResoFail | String | false |
是否检查分辨率。 如果输出分辨率大于输入分辨率(判断条件是宽或高),则返回转码失败。
|
IsCheckAudioBitrateFail | String | false |
是否检查音频码率。当输出音频码率大于媒体源音频码率时,则不进行转码,直接返回转码失败,此值优先级大于IsCheckAudioBitrate。
|
Encryption | Object |
数据加密,只支持m3u8格式的输出。 |
|
Type | String | hls-aes-128 |
加密类型。取值:hls-aes-128。 |
Key | String | encryptionkey128 |
加密视频的密钥。 |
KeyType | String | Base64 |
密钥加密方式,可取值Base64、KMS。 说明 如密钥为
"encryptionkey128” , 则Base64(“encryptionkey128”) 或 KMS(Base64(“encryptionkey128”) 。
|
Id | String | 31fa3c9ca8134f9cec2b4b0b0f78**** |
加密ID。 |
KeyUri | String | https://1161758785*****.cn-shanghai.fc.aliyuncs.com/2016-08-15/proxy/HLS-decyptServer/decyptServer/ |
密钥的访问URL,使用BASE64进行编码。 |
SkipCnt | String | 3 |
前面不加密的片数(视频能快速播放起来)。 |
WaterMarkList | Array of WaterMark |
水印列表。 |
|
WaterMark | |||
Type | String | Image |
水印类型。如果请求参数中设置了此参数,则此值覆盖水印模板对应参数。更多信息,请参见参数详情。可取值:
|
ReferPos | String | TopRight |
水印的位置。
|
Dx | String | 100 |
水印图片相对输出视频的水平偏移量。如果请求参数中设置了此值,则覆盖水印模板对应参数。默认值为0。值有两种形式:
|
Width | String | 50 |
水印图片宽。如果在请求参数中设置了此值,则覆盖水印模板对应水印图片宽。值有两种形式:
|
Height | String | 50 |
水印图片高。如果在请求参数中设置了此值,则覆盖水印模板对应水印图片高。值有两种形式:
|
InputFile | Object |
水印输入文件。 |
|
Object | String | example-logo-****.png |
输入文件的OSS Object。 |
Location | String | oss-cn-hangzhou |
输入文件的OSS Location。 |
Bucket | String | example-bucket |
输入文件的OSS Bucket。 |
WaterMarkTemplateId | String | 88c6ca184c0e47098a5b665e2a12**** |
水印模板ID。 |
Dy | String | 100 |
水印图片相对输出视频的垂直偏移量。如果在请求参数中设置了此值,则覆盖水印模板对应水印图片相对输出视频的垂直偏移量。值有两种形式:
|
WaterMarkConfigUrl | String | http://example.com/configure |
水印配置文件URL。 |
DeWatermark | String | {"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}]} |
模糊处理,JSON对象。更多信息请参见参数详情中的模糊处理详情。 |
M3U8NonStandardSupport | Object |
M3U8非标准支持,JSON对象。更多信息请参见参数详情中的M3U8非标准参数支持详情。 |
|
TS | Object |
JSON对象,TS文件相关非标准支持。更多信息请参见参数详情中的TS参数支持详情。 |
|
SizeSupport | Boolean | true |
是否支持在M3U8文件中输出ts文件的大小。
|
Md5Support | Boolean | true |
是否支持在M3U8文件中输出TS的md5值。可取值:
|
Priority | String | 6 |
任务在其对应管道内的优先级。
|
Audio | Object |
音频配置。 |
|
Profile | String | aaclow |
音频编码预置。当Codec为aac时可取值:aaclow、aache、aachev2、aacld、aaceld。 |
Codec | String | aac |
音频编解码格式。
|
Samplerate | String | 44100 |
采样率。
|
Qscale | String | 15 |
音频质量控制度。 |
Channels | String | 2 |
声道数。
|
Volume | Object |
音量配置。 |
|
Method | String | auto |
音量调整方式。可取值:
|
Level | String | -20 |
音量调整幅度。
|
Bitrate | String | 128 |
输出文件的音频码率。
|
AudioStreamMap | String | 0:a:0 |
音频流序号。
|
MergeList | Array of Merge |
视频拼接配置。 |
|
Merge | |||
Start | String | 01:59:59.999或者32000.23 |
起始时间点。
|
RoleArn | String | acs:ram::<your uid>:role/<your role name> |
代理授权使用的角色信息。 |
MergeURL | String | http://example-bucket.oss-cn-hangzhou.aliyuncs.com/example-object.flv |
拼接片段地址。
|
Duration | String | 01:59:59.999 |
起始时间点。
|
SuperReso | Object |
分辨率随源。 |
|
IsHalfSample | String | true |
是否获取采样率相关参数。可取值:
|
UserData | String | test-001 |
用户自定义数据。 |
OutSubtitleList | Array of OutSubtitle |
输出字幕列表。 |
|
OutSubtitle | |||
Map | String | 0:v:0 |
视频轨。格式:0:{流}:{流序号} ,即0:v:{video_index}。流取值为v: video音频流,序号的含义是音频流列表的下标,序号从0开始。 |
OutSubtitleFile | Object |
输出文件详细信息。 |
|
RoleArn | String | acs:ram::<your uid>:role/<your role name> |
代理授权使用的角色信息。 |
Object | String | example-output.flv |
输出文件的OSS Object。 |
Location | String | oss-cn-hangzhou |
输出文件的OSS Location。 |
Bucket | String | example-bucket-**** |
输入文件的OSS Bucket。 |
Success | Boolean | true |
是否成功。可取值:
|
Message | String | The specified parameter “%s” cannot be null. |
创建作业失败时错误消息。创建成功时此参数不返回。 |
VideoStreamMap | String | 0:a:0 |
视频流序号。
|
OutputFile | Object |
输出文件。 |
|
RoleArn | String | acs:ram::<your uid>:role/<your role name> |
代理授权使用的角色信息。 |
Object | String | example-output.flv |
输出文件的OSS Object。 |
Location | String | oss-cn-hangzhou |
输出文件的OSS Location。 |
Bucket | String | example-bucket |
输入文件的OSS Bucket。 |
Rotate | String | 90 |
视频旋转角度。 |
Container | Object |
容器。 |
|
Format | String | flv |
容器格式。
|
Clip | Object |
剪辑片段。 |
|
TimeSpan | Object |
剪辑时间段。 |
|
Seek | String | 01:00:59.999 |
开始时间点。
|
Duration | String | 01:00:59.999 |
持续时长。
|
MergeConfigUrl | String | {"MergeList":[{"MergeURL":"http://exampleBucket****.oss-cn-hangzhou.aliyuncs.com/video_01.mp4"}]} |
拼接配置文件URL地址。MergeList与MergeConfigUrl两个参数只支持二选一。
|
OpeningList | Array of Opening |
开板列表。 |
|
Opening | |||
openUrl | String | http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv |
开板视频的OSS URL地址。 |
Start | String | 0 |
相对正片视频的开始时间。从0开始延迟多长时间后,显示开板视频。
|
Width | String | -1 |
宽。可取值:(0,4096)、-1、full。
|
Height | String | -1 |
高。可取值:(0,4096)、-1、full。
|
MuxConfig | Object |
转码封包配置。 |
|
Webp | Object |
Webp对应的封包配置。 |
|
Loop | String | 0 |
循环次数。 |
Gif | Object |
Gif对应的封包配置。 |
|
FinalDelay | String | 0 |
终帧暂停时间,单位:厘秒。 |
DitherMode | String | bayer |
调色板颜色抖动方式。可取值:sierra、bayer。 |
Loop | String | 0 |
循环次数。 |
IsCustomPalette | String | true |
自定义调色板功能。可取值:
|
Segment | Object |
切片配置,JSON对象。 |
|
Duration | String | 10 |
分片时长。整数,单位:秒。
|
TailSlateList | Array of TailSlate |
尾板列表。 |
|
TailSlate | |||
Start | String | 1 |
开始时间。 |
BgColor | String | White |
如果尾板视频的宽、高小于正片时,设置空白处填充的背景色。默认为White,更多信息请参见bgcolor。 |
IsMergeAudio | Boolean | true |
是否要拼接尾板视频的音频内容。可取值:
|
Width | String | -1 |
宽。可取值:(0,4096)、-1、full。
|
Height | String | -1 |
高,范围(0,4096)、-1、full
|
BlendDuration | String | 0 |
正片视频和尾板视频过渡的时长。过渡的效果是淡入淡出:正片显示最后一帧,同时播放尾板视频,正片最后一帧逐步变暗,尾板视频逐步变亮。单位秒,默认0。 |
TailUrl | String | http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv |
尾板视频的OSS URL地址。 |
TemplateId | String | S00000000-000010 |
模板ID。 |
SubtitleConfig | Object |
字幕配置。 |
|
ExtSubtitleList | Array of ExtSubtitle |
外部字幕列表,JSON数组。 |
|
ExtSubtitle | |||
CharEnc | String | auto |
外部字幕字符编码。
说明 外部字幕字符编码设置为auto时,存在误检情况,建议您指定具体的字符编码。
|
FontName | String | "WenQuanYi Zen Hei", "Yuanti SC Regular", "SimSun" |
外挂字幕转换成硬字幕对应的字体名称。 |
Input | Object |
外部输入字幕文件。
|
|
Object | String | example-output.flv |
输入文件的OSS Object。 |
Location | String | oss-cn-hangzhou |
输入文件所在的OSS Location。 |
Bucket | String | example-bucket-**** |
输入文件所在的OSS Bucket。 |
SubtitleList | Array of Subtitle |
字幕列表。 |
|
Subtitle | |||
Map | String | 0 |
视频流序号。序号从0开始,序号的含义是视频流列表的下标,若未设置,选择默认的视频流。 |
Properties | Object |
媒体属性。 |
|
Width | String | 720 |
视频宽。 |
Height | String | 1280 |
视频长。 |
Duration | String | 17 |
时长。 |
Fps | String | 30 |
帧率。 |
Bitrate | String | 490 |
码率。 |
FileFormat | String | mp4 |
文件格式。 |
Streams | Object |
流信息。 |
|
VideoStreamList | Array of VideoStream |
视频流列表。 |
|
VideoStream | |||
Index | String | 0 |
视频流序号,标识视频流在整个媒体流中的位置。 |
Timebase | String | 1/15360 |
时基。 |
AvgFPS | String | 30.0 |
平均帧率。 |
PixFmt | String | yuv420p |
像素格式。 |
Sar | String | 1:1 |
编码信号分辨率比。 |
Lang | String | und | |
CodecLongName | String | H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 |
编码格式长述名。 |
Height | String | 1280 |
视频分辨率长。 |
NumFrames | String | 30 |
总帧率。 |
Bitrate | String | 421.117 |
码率。 |
CodecTagString | String | avc1 |
编码格式标记文本。 |
HasBFrames | String | 2 |
是否有B帧。 |
Profile | String | high |
编码预置。 |
StartTime | String | 0.000000 |
开始时间。 |
NetworkCost | Object |
网络带宽消耗。 |
|
PreloadTime | String | 8 |
预加载时间。 |
AvgBitrate | String | 300 |
平均码率。 |
CostBandwidth | String | 10 |
最大消耗带宽。 |
Dar | String | 9:16 |
视频显示分辨率比。 |
CodecName | String | h264 |
编码格式简述名。 |
Width | String | 720 |
视频分辨率宽,数字。 |
Duration | String | 17.233333 |
时长。 |
Fps | String | 30.0 |
帧率。 |
CodecTag | String | 0x31637661 |
编码格式标记。 |
CodecTimeBase | String | 1/60 |
编码时基。 |
Level | String | 31 |
编码等级。 |
AudioStreamList | Array of AudioStream |
音频流列表。 |
|
AudioStream | |||
Timebase | String | 1/32000 |
时基。 |
Index | String | 1 |
音频流序号,标识音频流在整个媒体流中的位置。 |
SampleFmt | String | fltp |
采样格式。 |
ChannelLayout | String | mono |
声道输出样式。 |
Lang | String | und | |
Samplerate | String | 32000 |
采样率。 |
CodecLongName | String | AAC (Advanced Audio Coding) |
编码格式长述名。 |
Channels | String | 1 |
声道数。 |
NumFrames | String | 30 |
总帧数。 |
Bitrate | String | 64.136 |
码率。 |
CodecTagString | String | mp4a |
编码格式标记文本。 |
StartTime | String | 0.000000 |
开始时间。 |
CodecName | String | aac |
编码格式简述名。 |
Duration | String | 17.223562 |
时长。 |
CodecTag | String | 0x6134706d |
编码格式标记。 |
CodecTimeBase | String | 1/32000 |
编码时基。 |
SubtitleStreamList | Array of SubtitleStream |
字幕流列表。 |
|
SubtitleStream | |||
Index | String | 1 |
字幕流序号。 标识字幕流在整个媒体流中的位置。 |
Lang | String | und |
语言。 |
Format | Object |
格式信息。 |
|
StartTime | String | 0.064000 |
起始时间。 |
NumPrograms | String | 0 |
节目流总数。 |
Size | String | 1057273 |
文件大小。 |
NumStreams | String | 2 |
媒体流总数。 |
FormatLongName | String | QuickTime / MOV |
容器、封装格式长述名。 |
Duration | String | 17.234000 |
总时长。 |
Bitrate | String | 490.784 |
总码率。 |
FormatName | String | mov |
容器、封装格式简述名。可取值:mov、mp4、m4a、3gp、3g2、mj2。 |
FileSize | String | 1057273 |
文件大小。 |
PipelineId | String | 88c6ca184c0e47b665e2a1267971**** |
管道ID。 |
Input | Object |
作业输入。 |
|
Object | String | example.flv |
作业输入的OSS Object。 |
Location | String | oss-cn-hangzhou |
作业输入的OSS Location。 |
Bucket | String | example-bucket |
作业输入的OSS Bucket。 |
MNSMessageResult | Object |
MNS通知用户作业完成的消息结果。 |
|
MessageId | String | 123 |
成功时消息ID。 |
ErrorMessage | String | The resource operated “%s” cannot be found. |
失败时错误信息。成功时此参数不返回。 |
ErrorCode | String | InvalidParameter.ResourceNotFound |
失败时错误码。成功时此参数不返回。 |
示例
请求示例
http(s)://mts.cn-hangzhou.aliyuncs.com/?Action=ListJob
&NextPageToken=16f01ad6175e4230ac42bb5182cd****
&MaximumPageSize=10
&State=All
&StartOfJobCreatedTimeRange=2014-01-10T12:00:00Z
&EndOfJobCreatedTimeRange=2014-01-11T12:00:00Z
&PipelineId=88c6ca184c0e424d5w5b665e2a12****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListJobResponse>
<RequestId>BC860F04-778A-472F-AB39-E1BF329C1EA8</RequestId>
<NextPageToken>16f01ad6175e4230ac42bb5182cd****</NextPageToken>
<JobList>
<CreationTime>2014-01-10T12:00:00Z</CreationTime>
<Percent>100</Percent>
<FinishTime>2014-01-10T12:20:25Z</FinishTime>
<State>TranscodeSuccess</State>
<JobId>31fa3c9ca8134fb4b0b0f7878301****</JobId>
<Code>InternalError</Code>
<Message>The operation has failed due to some unknown error, exception or failure.</Message>
<Output>
<Video>
<Bufsize>6000</Bufsize>
<Degrain>5</Degrain>
<BitrateBnd>
<Max>1000</Max>
<Min>200</Min>
</BitrateBnd>
<PixFmt>yuv420p</PixFmt>
<Pad>1280:800:0:140</Pad>
<Codec>H.264</Codec>
<Height>720</Height>
<Qscale>15</Qscale>
<Crop>border</Crop>
<Bitrate>428</Bitrate>
<Maxrate>1000</Maxrate>
<MaxFps>60</MaxFps>
<Profile>high</Profile>
<Crf>26</Crf>
<Gop>250</Gop>
<Width>1280</Width>
<Fps>25</Fps>
<Preset>medium</Preset>
<ScanMode>interlaced</ScanMode>
<ResoPriority>1</ResoPriority>
</Video>
<TransConfig>
<IsCheckAudioBitrate>false</IsCheckAudioBitrate>
<TransMode>onepass</TransMode>
<IsCheckReso>false</IsCheckReso>
<IsCheckVideoBitrateFail>false</IsCheckVideoBitrateFail>
<AdjDarMethod>none</AdjDarMethod>
<IsCheckVideoBitrate>false</IsCheckVideoBitrate>
<IsCheckResoFail>false</IsCheckResoFail>
<IsCheckAudioBitrateFail>false</IsCheckAudioBitrateFail>
</TransConfig>
<Encryption>
<Type>hls-aes-128</Type>
<Key>encryptionkey128</Key>
<KeyType>Base64</KeyType>
<Id>31fa3c9ca8134f9cec2b4b0b0f78****</Id>
<KeyUri>https://1161758785*****.cn-shanghai.fc.aliyuncs.com/2016-08-15/proxy/HLS-decyptServer/decyptServer/</KeyUri>
<SkipCnt>3</SkipCnt>
</Encryption>
<WaterMarkList>
<Type>Image</Type>
<ReferPos>TopRight</ReferPos>
<Dx>100</Dx>
<Width>50</Width>
<Height>50</Height>
<InputFile>
<Object>example-logo-****.png</Object>
<Location>oss-cn-hangzhou</Location>
<Bucket>example-bucket</Bucket>
</InputFile>
<WaterMarkTemplateId>88c6ca184c0e47098a5b665e2a12****</WaterMarkTemplateId>
<Dy>100</Dy>
</WaterMarkList>
<WaterMarkConfigUrl>http://example.com/configure</WaterMarkConfigUrl>
<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}]}</DeWatermark>
<M3U8NonStandardSupport>
<TS>
<SizeSupport>true</SizeSupport>
<Md5Support>true</Md5Support>
</TS>
</M3U8NonStandardSupport>
<Priority>6</Priority>
<Audio>
<Profile>aaclow</Profile>
<Codec>aac</Codec>
<Samplerate>44100</Samplerate>
<Qscale>15</Qscale>
<Channels>2</Channels>
<Volume>
<Method>auto</Method>
<Level>-20</Level>
</Volume>
<Bitrate>128</Bitrate>
</Audio>
<AudioStreamMap>0:a:0</AudioStreamMap>
<MergeList>
<Start>01:59:59.999或者32000.23</Start>
<RoleArn>acs:ram::<your uid>:role/<your role name></RoleArn>
<MergeURL>http://example-bucket.oss-cn-hangzhou.aliyuncs.com/example-object.flv</MergeURL>
<Duration>01:59:59.999</Duration>
</MergeList>
<SuperReso>
<IsHalfSample>true</IsHalfSample>
</SuperReso>
<UserData>test-001</UserData>
<OutSubtitleList>
<Map>0:v:0</Map>
<OutSubtitleFile>
<RoleArn>acs:ram::<your uid>:role/<your role name></RoleArn>
<Object>example-output.flv</Object>
<Location>oss-cn-hangzhou</Location>
<Bucket>example-bucket-****</Bucket>
</OutSubtitleFile>
<Success>true</Success>
<Message>The specified parameter “%s” cannot be null.</Message>
</OutSubtitleList>
<VideoStreamMap>0:a:0</VideoStreamMap>
<OutputFile>
<RoleArn>acs:ram::<your uid>:role/<your role name></RoleArn>
<Object>example-output.flv</Object>
<Location>oss-cn-hangzhou</Location>
<Bucket>example-bucket</Bucket>
</OutputFile>
<Rotate>90</Rotate>
<Container>
<Format>flv</Format>
</Container>
<Clip>
<TimeSpan>
<Seek>01:00:59.999</Seek>
<Duration>01:00:59.999</Duration>
</TimeSpan>
</Clip>
<MergeConfigUrl>{"MergeList":[{"MergeURL":"http://exampleBucket****.oss-cn-hangzhou.aliyuncs.com/video_01.mp4"}]}</MergeConfigUrl>
<OpeningList>
<openUrl>http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv</openUrl>
<Start>0</Start>
<Width>-1</Width>
<Height>-1</Height>
</OpeningList>
<MuxConfig>
<Webp>
<Loop>0</Loop>
</Webp>
<Gif>
<FinalDelay>0</FinalDelay>
<DitherMode>bayer</DitherMode>
<Loop>0</Loop>
<IsCustomPalette>true</IsCustomPalette>
</Gif>
<Segment>
<Duration>10</Duration>
</Segment>
</MuxConfig>
<TailSlateList>
<Start>1</Start>
<BgColor>White</BgColor>
<IsMergeAudio>true</IsMergeAudio>
<Width>-1</Width>
<Height>-1</Height>
<BlendDuration>0</BlendDuration>
<TailUrl>http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv</TailUrl>
</TailSlateList>
<TemplateId>S00000000-000010</TemplateId>
<SubtitleConfig>
<ExtSubtitleList>
<CharEnc>auto</CharEnc>
<FontName>"WenQuanYi Zen Hei", "Yuanti SC Regular", "SimSun"</FontName>
<Input>
<Object>example-output.flv</Object>
<Location>oss-cn-hangzhou</Location>
<Bucket>example-bucket-****</Bucket>
</Input>
</ExtSubtitleList>
<SubtitleList>
<Map>0</Map>
</SubtitleList>
</SubtitleConfig>
<Properties>
<Width>720</Width>
<Height>1280</Height>
<Duration>17</Duration>
<Fps>30</Fps>
<Bitrate>490</Bitrate>
<FileFormat>mp4</FileFormat>
<Streams>
<VideoStreamList>
<Index>0</Index>
<Timebase>1/15360</Timebase>
<AvgFPS>30.0</AvgFPS>
<PixFmt>yuv420p</PixFmt>
<Sar>1:1</Sar>
<Lang>und</Lang>
<CodecLongName>H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10</CodecLongName>
<Height>1280</Height>
<NumFrames>30</NumFrames>
<Bitrate>421.117</Bitrate>
<CodecTagString>avc1</CodecTagString>
<HasBFrames>2</HasBFrames>
<Profile>high</Profile>
<StartTime>0.000000</StartTime>
<NetworkCost>
<PreloadTime>8</PreloadTime>
<AvgBitrate>300</AvgBitrate>
<CostBandwidth>10</CostBandwidth>
</NetworkCost>
<Dar>9:16</Dar>
<CodecName>h264</CodecName>
<Width>720</Width>
<Duration>17.233333</Duration>
<Fps>30.0</Fps>
<CodecTag>0x31637661</CodecTag>
<CodecTimeBase>1/60</CodecTimeBase>
<Level>31</Level>
</VideoStreamList>
<AudioStreamList>
<Timebase>1/32000</Timebase>
<Index>1</Index>
<SampleFmt>fltp</SampleFmt>
<ChannelLayout>mono</ChannelLayout>
<Lang>und</Lang>
<Samplerate>32000</Samplerate>
<CodecLongName>AAC (Advanced Audio Coding)</CodecLongName>
<Channels>1</Channels>
<NumFrames>30</NumFrames>
<Bitrate>64.136</Bitrate>
<CodecTagString>mp4a</CodecTagString>
<StartTime>0.000000</StartTime>
<CodecName>aac</CodecName>
<Duration>17.223562</Duration>
<CodecTag>0x6134706d</CodecTag>
<CodecTimeBase>1/32000</CodecTimeBase>
</AudioStreamList>
<SubtitleStreamList>
<Index>1</Index>
<Lang>und</Lang>
</SubtitleStreamList>
</Streams>
<Format>
<StartTime>0.064000</StartTime>
<NumPrograms>0</NumPrograms>
<Size>1057273</Size>
<NumStreams>2</NumStreams>
<FormatLongName>QuickTime / MOV</FormatLongName>
<Duration>17.234000</Duration>
<Bitrate>490.784</Bitrate>
<FormatName>mov</FormatName>
</Format>
<FileSize>1057273</FileSize>
</Properties>
</Output>
<PipelineId>88c6ca184c0e47b665e2a1267971****</PipelineId>
<Input>
<Object>example.flv</Object>
<Location>oss-cn-hangzhou</Location>
<Bucket>example-bucket</Bucket>
</Input>
<MNSMessageResult>
<MessageId>123</MessageId>
<ErrorMessage>The resource operated “%s” cannot be found.</ErrorMessage>
<ErrorCode>InvalidParameter.ResourceNotFound</ErrorCode>
</MNSMessageResult>
</JobList>
</ListJobResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "BC860F04-778A-472F-AB39-E1BF329C1EA8",
"NextPageToken" : "16f01ad6175e4230ac42bb5182cd****",
"JobList" : [ {
"CreationTime" : "2014-01-10T12:00:00Z",
"Percent" : 100,
"FinishTime" : "2014-01-10T12:20:25Z",
"State" : "TranscodeSuccess",
"JobId" : "31fa3c9ca8134fb4b0b0f7878301****",
"Code" : "InternalError",
"Message" : "The operation has failed due to some unknown error, exception or failure.",
"Output" : {
"Video" : {
"Bufsize" : "6000",
"Degrain" : "5",
"BitrateBnd" : {
"Max" : "1000",
"Min" : "200"
},
"PixFmt" : "yuv420p",
"Pad" : "1280:800:0:140",
"Codec" : "H.264",
"Height" : "720",
"Qscale" : "15",
"Crop" : "border",
"Bitrate" : "428",
"Maxrate" : "1000",
"MaxFps" : "60",
"Profile" : "high",
"Crf" : "26",
"Gop" : "250",
"Width" : "1280",
"Fps" : "25",
"Preset" : "medium",
"ScanMode" : "interlaced",
"ResoPriority" : "1"
},
"TransConfig" : {
"IsCheckAudioBitrate" : "false",
"TransMode" : "onepass",
"IsCheckReso" : "false",
"IsCheckVideoBitrateFail" : "false",
"AdjDarMethod" : "none",
"IsCheckVideoBitrate" : "false",
"IsCheckResoFail" : "false",
"IsCheckAudioBitrateFail" : "false"
},
"Encryption" : {
"Type" : "hls-aes-128",
"Key" : "encryptionkey128",
"KeyType" : "Base64",
"Id" : "31fa3c9ca8134f9cec2b4b0b0f78****",
"KeyUri" : "https://1161758785*****.cn-shanghai.fc.aliyuncs.com/2016-08-15/proxy/HLS-decyptServer/decyptServer/",
"SkipCnt" : "3"
},
"WaterMarkList" : [ {
"Type" : "Image",
"ReferPos" : "TopRight",
"Dx" : "100",
"Width" : "50",
"Height" : "50",
"InputFile" : {
"Object" : "example-logo-****.png",
"Location" : "oss-cn-hangzhou",
"Bucket" : "example-bucket"
},
"WaterMarkTemplateId" : "88c6ca184c0e47098a5b665e2a12****",
"Dy" : "100"
} ],
"WaterMarkConfigUrl" : "http://example.com/configure",
"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}]}",
"M3U8NonStandardSupport" : {
"TS" : {
"SizeSupport" : true,
"Md5Support" : true
}
},
"Priority" : "6",
"Audio" : {
"Profile" : "aaclow",
"Codec" : "aac",
"Samplerate" : "44100",
"Qscale" : "15",
"Channels" : "2",
"Volume" : {
"Method" : "auto",
"Level" : "-20"
},
"Bitrate" : "128"
},
"AudioStreamMap" : "0:a:0",
"MergeList" : [ {
"Start" : "01:59:59.999或者32000.23",
"RoleArn" : "acs:ram::<your uid>:role/<your role name>",
"MergeURL" : "http://example-bucket.oss-cn-hangzhou.aliyuncs.com/example-object.flv",
"Duration" : "01:59:59.999"
} ],
"SuperReso" : {
"IsHalfSample" : "true"
},
"UserData" : "test-001",
"OutSubtitleList" : [ {
"Map" : "0:v:0",
"OutSubtitleFile" : {
"RoleArn" : "acs:ram::<your uid>:role/<your role name>",
"Object" : "example-output.flv",
"Location" : "oss-cn-hangzhou",
"Bucket" : "example-bucket-****"
},
"Success" : true,
"Message" : "The specified parameter “%s” cannot be null."
} ],
"VideoStreamMap" : "0:a:0",
"OutputFile" : {
"RoleArn" : "acs:ram::<your uid>:role/<your role name>",
"Object" : "example-output.flv",
"Location" : "oss-cn-hangzhou",
"Bucket" : "example-bucket"
},
"Rotate" : "90",
"Container" : {
"Format" : "flv"
},
"Clip" : {
"TimeSpan" : {
"Seek" : "01:00:59.999",
"Duration" : "01:00:59.999"
}
},
"MergeConfigUrl" : "{\"MergeList\":[{\"MergeURL\":\"http://exampleBucket****.oss-cn-hangzhou.aliyuncs.com/video_01.mp4\"}]}",
"OpeningList" : [ {
"openUrl" : "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv",
"Start" : "0",
"Width" : "-1",
"Height" : "-1"
} ],
"MuxConfig" : {
"Webp" : {
"Loop" : "0"
},
"Gif" : {
"FinalDelay" : "0",
"DitherMode" : "bayer",
"Loop" : "0",
"IsCustomPalette" : "true"
},
"Segment" : {
"Duration" : "10"
}
},
"TailSlateList" : [ {
"Start" : "1",
"BgColor" : "White",
"IsMergeAudio" : true,
"Width" : "-1",
"Height" : "-1",
"BlendDuration" : "0",
"TailUrl" : "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/opening_01.flv"
} ],
"TemplateId" : "S00000000-000010",
"SubtitleConfig" : {
"ExtSubtitleList" : [ {
"CharEnc" : "auto",
"FontName" : "\"WenQuanYi Zen Hei\", \"Yuanti SC Regular\", \"SimSun\"",
"Input" : {
"Object" : "example-output.flv",
"Location" : "oss-cn-hangzhou",
"Bucket" : "example-bucket-****"
}
} ],
"SubtitleList" : [ {
"Map" : "0"
} ]
},
"Properties" : {
"Width" : "720",
"Height" : "1280",
"Duration" : "17",
"Fps" : "30",
"Bitrate" : "490",
"FileFormat" : "mp4",
"Streams" : {
"VideoStreamList" : [ {
"Index" : "0",
"Timebase" : "1/15360",
"AvgFPS" : "30.0",
"PixFmt" : "yuv420p",
"Sar" : "1:1",
"Lang" : "und",
"CodecLongName" : "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"Height" : "1280",
"NumFrames" : "30",
"Bitrate" : "421.117",
"CodecTagString" : "avc1",
"HasBFrames" : "2",
"Profile" : "high",
"StartTime" : "0.000000",
"NetworkCost" : {
"PreloadTime" : "8",
"AvgBitrate" : "300",
"CostBandwidth" : "10"
},
"Dar" : "9:16",
"CodecName" : "h264",
"Width" : "720",
"Duration" : "17.233333",
"Fps" : "30.0",
"CodecTag" : "0x31637661",
"CodecTimeBase" : "1/60",
"Level" : "31"
} ],
"AudioStreamList" : [ {
"Timebase" : "1/32000",
"Index" : "1",
"SampleFmt" : "fltp",
"ChannelLayout" : "mono",
"Lang" : "und",
"Samplerate" : "32000",
"CodecLongName" : "AAC (Advanced Audio Coding)",
"Channels" : "1",
"NumFrames" : "30",
"Bitrate" : "64.136",
"CodecTagString" : "mp4a",
"StartTime" : "0.000000",
"CodecName" : "aac",
"Duration" : "17.223562",
"CodecTag" : "0x6134706d",
"CodecTimeBase" : "1/32000"
} ],
"SubtitleStreamList" : [ {
"Index" : "1",
"Lang" : "und"
} ]
},
"Format" : {
"StartTime" : "0.064000",
"NumPrograms" : "0",
"Size" : "1057273",
"NumStreams" : "2",
"FormatLongName" : "QuickTime / MOV",
"Duration" : "17.234000",
"Bitrate" : "490.784",
"FormatName" : "mov"
},
"FileSize" : "1057273"
}
},
"PipelineId" : "88c6ca184c0e47b665e2a1267971****",
"Input" : {
"Object" : "example.flv",
"Location" : "oss-cn-hangzhou",
"Bucket" : "example-bucket"
},
"MNSMessageResult" : {
"MessageId" : "123",
"ErrorMessage" : "The resource operated “%s” cannot be found.",
"ErrorCode" : "InvalidParameter.ResourceNotFound"
}
} ]
}
错误码
访问错误中心查看更多错误码。