查询单个META信息 或 获取META信息列表。
如果查询单个任务的META信息,需要先确认任务已经完成,才能使用此接口查询任务META信息。
单一任务:创建avinfo模板 -> 创建任务 -> 任务完成 -> 查看该任务的meta信息/通过回调查看
根据任务ID查询:
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
taskid | string | 否 | 任务ID |
若不传任务ID,则按列表查询:
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
startdate | int | 否 | 开始时间,默认为当前月的第一天;格式:20160919 |
enddate | int | 否 | 截至时间,默认为开始时间加30天;若大于当前时间,则默认为当前时间;格式:20160930 |
marker | int | 否 | 请求起始游标,默认为0 |
limit | int | 否 | 单次请求的记录数,默认为100,最大值为100 |
{
"startdate":"20160929",
"enddate":"20160930",
"marker":0,
// 本次返回记录条数
"count":1,
// 该时间区间内总记录条数
"total":6,
// 返回列表
"metaInfo":[
//获取meta信息列表 type:array
{
//任务id type:string
"taskid":"c3697fdd9c4c1240c0e5f29b7a63cba820160929",
//meta内容 type:string
"meta_info":"{
"metadata":{
},
"streams":[
{
//编码格式
"codec_name":"aac",
"codec_long_name":"AAC (Advanced Audio Coding)",
"profile":"LC",
//流类型
"codec_type":"audio",
"codec_time_base":"1/48000",
"codec_tag_string":"mp4a",
"codec_tag":"0x6134706d",
"r_frame_rate":"0/0",
"avg_frame_rate":"0/0",
"time_base":"1/48000",
"start_time":"0.000000",
"duration_ts":61673448,
"duration":"1284.863500",
"bit_rate":"47325",
"nb_frames":"60228",
"sample_fmt":"fltp",
//采样率
"sample_rate":"48000",
//声道数
"channels":2,
"channel_layout":"stereo"
},
{
"index":1,
"codec_name":"h264",
"codec_long_name":"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile":"High",
"codec_type":"video",
"codec_time_base":"642153/15575000",
"codec_tag_string":"avc1",
"codec_tag":"0x31637661",
//帧率
"r_frame_rate":"13/1",
"avg_frame_rate":"7787500/642153",
"time_base":"1/16000",
"start_pts":10176,
"start_time":"0.636000",
"duration_ts":20548896,
"duration":"1284.306000",
"bit_rate":"781679",
"nb_frames":"15575",
//分辨率
"width":500,
"height":600,
"coded_width":512,
"coded_height":608,
"has_b_frames":2,
"sample_aspect_ratio":"0:1",
//显示宽高比 值为"0:1"表示按照分辨率播放
"display_aspect_ratio":"0:1",
"pix_fmt":"yuv420p",
"level":22,
"chroma_location":"left",
"refs":1,
"is_avc":"true",
"bits_per_raw_sample":"8"
}
],
"format":{
//文件中流个数
"nb_streams":2,
//文件封装格式
"format_name":"mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name":"QuickTime / MOV",
//文件时长 单位:s
"duration":"1284.864000",
"size":"133778683",
"bit_rate":"832951",
"probe_score":100
}
}",
"createTime":"2016-09-29 18:20:29"
}
],
"errNum":0,
"errMsg":"success"
}