视频生成完成
更新时间:2025-01-14
事件类型名称
VIDEO_GENERATE_COMPLETE
事件说明
当用户开启了该类型事件通知,并且视频生成完成后,VOD将会发送该事件回调到用户指定的地址。事件回调的具体内容为VideoGenerateCompleteEvent 结构。
回调示例
VOD通过HTTP请求发送事件回调,请求采用POST方法,请求内容在BODY中,回调的数据结构为CallbackEvent ,如下所示(省略了值为 null 的字段)。
JSON
1{
2 "eventId": "evt-ekkti4ep2mk0gedf",
3 "eventType": "VIDEO_GENERATE_COMPLETE",
4 "eventTime": "2025-01-09T02:06:53Z",
5 "videoGenerateCompleteEvent": {
6 "taskId": "tsk-faikc9dmw8m8saic",
7 "status": "SUCCESS",
8 "createTime": "2025-01-09T02:04:53Z",
9 "finishTime": "2025-01-09T02:06:53Z",
10 "videoGenerateTaskInfo": {
11 "status": "success",
12 "videoGenerateTaskInput": {
13 "type": "图生视频",
14 "imageToVideoRequest": {
15 "model": "V15",
16 "modelV15TaskInput": {
17 "headtailImages": {
18 "headImage": {
19 "imageUrl": "https://test-ss-images.s3.ap-southeast-1.amazonaws.com/tmp/prompt-300k.jpeg"
20 },
21 "tailImage": {
22 "imageUrl": "https://test-ss-images.s3.ap-southeast-1.amazonaws.com/tmp/prompt-300k.jpeg"
23 }
24 },
25 "prompt": "两个人拥抱",
26 "duration": 4,
27 "resolution": "720p",
28 "movementAmplitude": "auto"
29 }
30 }
31 },
32 "videoGenerateTaskOutput": {
33 "mediaBasicInfos": [
34 {
35 "mediaId": "mda-faimzupjdsztt1mx",
36 "name": "图生视频_tsk-faikc9dmw8m8saic",
37 "description": "",
38 "mediaType": "video",
39 "banStatus": "NORMAL",
40 "createTime": "2025-01-09T03:26:12Z",
41 "categoryId": "system",
42 "tags": [],
43 "source": {
44 "sourceType": "GENERATE",
45 "sourceUrl": "http://vod.com/v1/mda-faimzupjdsztt1mx/_src/mda-faimzupjdsztt1mx.mp4?authorization=bce-auth-v1%2FALTAKcfr7rzaK44AsMUcaT2dVH%2F2025-01-09T10%3A33%3A01Z%2F3600%2F%2Feef10e12da4fe85f29a726872ec6f68d44e792d278b75221560546914f2ad1d1",
46 "coverUrl": "http://vod.com/v1/mda-faimzupjdsztt1mx/_output/cover.jpeg?authorization=bce-auth-v1%2FALTAKcfr7rzaK44AsMUcaT2dVH%2F2025-01-09T10%3A33%3A01Z%2F3600%2F%2F6dcc0adceb7f1f6c1d6254a1e0274e0ec48c9daf4227f9a013688d73f8fc839a"
47 },
48 "sourceMetadata": {
49 "fileSizeInByte": 1916539,
50 "type": "video",
51 "container": "mov,mp4,m4a,3gp,3g2,mj2",
52 "durationInSecond": 4,
53 "durationInMillisecond": 3720,
54 "video": {
55 "codec": "h264",
56 "heightInPixel": 1280,
57 "widthInPixel": 720,
58 "bitRateInBps": 4118041,
59 "frameRate": 32.0
60 },
61 "etag": "98c43448a3cb45193e3ba02d60d025b7"
62 }
63 }
64 ]
65 }
66 }
67 }
68}