视频拼接完成
更新时间 2025-04-15 18:04:03
最近更新时间: 2025-04-15 18:04:03
托管模式下的视频拼接完成事件信息。
事件名称
StitchingComplete
事件说明
视频拼接完成。
示例
{
"eventTime":"2022-10-13T18:06:16Z",
"eventType":"StitchingComplete",
"workflowId":"1000010",
"taskId":"0003#96ea85118429465b99a794951ffd4310",
"originalFileUrl":"https://sample.gdoss.xstore.ctyun.cn/mediatest/1.mp4",
"status": "SUCCESS",
"taskMessage":"写入文件失败",
"stitchingInfo": {
"stitchingTemplateID": "100000000102",
"watermarkTemplateID": "100000000005",
"md5":"etdj945djdfkj",
"format": "mp4",
"size":1110000,
"bitrate": 925,
"duration": 15,
"stitchingFileUrl": "https://transcode.gdoss.xstore.ctyun.cn/ABEBDE1JSU79FD4D1329/62cb3151eba52js82j2da3b55bc5****.mp4",
"streamInfo":[{
"streamType": "Video",
"fps": 30,
"height": 960,
"width": 540,
"codec":"H264"
},
{
"streamType": "Audio",
"codec":"AAC",
}
]
}
}
返回数据描述
| 名称 | 示例值 | 描述 |
|---|---|---|
| eventTime | 2017-03-20T07:49:17Z | 事件触发时间,为 UTC 时间,如 yyyy-MM-ddTHH:mm:ssZ。 |
| eventType | StitchingComplete | 回调事件类型。 |
| workflowId | 1000010 | 工作流ID。 |
| taskId | 0003#96ea85118429465b99a794951ffd4310 | 任务ID。 |
| originalFileUrl | https://sample.gdoss.xstore.ctyun.cn/mediatest/1.mp4 | 源文件访问地址(不带签名,若为私有权限需使用带预签名url进行访问)。 |
| status | SUCCESS | 任务状态:SUCCESS-成功;FAIL-失败。 |
| taskMessage | 写入文件失败 | 回调信息:任务失败时为失败原因;成功时为:任务成功。 |
| stitchingInfo | 视频拼接结果详情。详细信息见表stitchingInfo。 |
表stitchingInfo
| 名称 | 示例值 | 描述 |
|---|---|---|
| stitchingTemplateID | 100000000102 | 拼接模版ID。 |
| watermarkTemplateID | 100000000021 | 水印模板ID,若没有进行水印拼接则没有该字段。 |
| md5 | etdj945djdfkj | 拼接音视频目标文件md5值。 |
| format | mp4 | 拼接音/视频封装格式。 |
| size | 1110000 | 拼接音/视频大小,单位byte。 |
| bitrate | bitrate | 拼接音/视频 音/视频码率。 |
| duration | 15 | 拼接音/视频时长,单位s。 |
| stitchingFileUrl | http://transcode.gdoss.xstore.ctyun.cn/ABEBDE1JSU79FD4D1329/62cb3151eba52js82j2da3b55bc5****.mp4 | 拼接后音/视频文件访问url。 |
| streamInfo | 音视频文件轨道信息。详细信息见表streamInfo。 |
表streamInfo
| 名称 | 示例值 | 描述 |
|---|---|---|
| streamType | Video | 音轨/视频轨:Video-视频轨;Audio-音频轨。 |
| fps | 30 | 视频帧率,单位fps。 |
| height | 960 | 视频分辨率(高)。 |
| width | 540 | 视频分辨率(宽)。 |
| codec | H264 | 音、视频编码方式。 |
| sampleRate | 44100 | 音频采样率。 |