阿里批量剪辑:timeline

  • 批量混剪api: https://help.aliyun.com/zh/ims/developer-reference/api-ice-2020-11-09-submitmediaproducingjob?spm=a2c4g.11186623.0.0.51d642e9MCIpeN

  • 批量混剪案例:https://help.aliyun.com/zh/ims/use-cases/batch-mixing-shear?spm=a2c4g.11186623.0.0.7b2d3043TTyb3O

  • 批量混剪模板:https://help.aliyun.com/zh/ims/user-guide/common-template-library-advanced-templates

  • 花字效果示例:https://help.aliyun.com/zh/ims/developer-reference/flower-effect-example?spm=a2c4g.11186623.0.0.36525c3fK2ufEA

  • 字幕特效示例:https://help.aliyun.com/zh/ims/developer-reference/example-of-subtitle-effects-1?spm=a2c4g.11186623.help-menu-193643.d_5_2_7.1458730eyCG2zR&scm=20140722.H_449562._.OR_help-T_cn~zh-V_1

  • 开场特效示例:https://help.aliyun.com/zh/ims/developer-reference/example-of-common-effects?spm=a2c4g.11186623.help-menu-193643.d_5_2_4_0.64837419q5IpZo&scm=20140722.H_2854311._.OR_help-T_cn~zh-V_1

  • 转场示例:https://help.aliyun.com/zh/ims/developer-reference/normal-transition-effect-example?spm=a2c4g.11186623.help-menu-193643.d_5_2_3_0.612a1674yyxzHa&scm=20140722.H_2854304._.OR_help-T_cn~zh-V_1

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
# timeline请求参数示例
{
    "output_media_config": {
        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/ims/batch/result/2025/02/cur9d0b511ikqc62ov2g_座位.mp4",
        "Width": 1920,
        "Height": 1080
    },
    "timeline": {
        "VideoTracks": [
            {
                "MainTrack": true,
                "VideoTrackClips": [
                    {
                        "Effects": [
                            {
                                "Type": "Volume",
                                "Gain": 0
                            },
                            {
                                "Type": "DLTransition",
                                "SubType": "waterdrop",
                                "Duration": 0.5
                            },
                            {
                                "Type": "Crop",
                                "X": 0,
                                "Y": 0,
                                "Width": 1920,
                                "Height": 1080
                            }
                        ],
                        "AdaptMode": "Contain",
                        "Width": 1920,
                        "Height": 1080,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/materials/2025/02/8d852920-7e08-453f-8a65-a0bc94415b15.mp4",
                        "Type": "Video",
                        "In": 3.2271,
                        "Out": 7.2271,
                        "TimelineIn": 0,
                        "TimelineOut": 4,
                        "Duration": 4
                    },
                    {
                        "Effects": [
                            {
                                "Type": "Volume",
                                "Gain": 0
                            },
                            {
                                "Type": "DLTransition",
                                "SubType": "waterdrop",
                                "Duration": 0.5
                            },
                            {
                                "Type": "Crop",
                                "X": 0,
                                "Y": 0,
                                "Width": 1920,
                                "Height": 1080
                            }
                        ],
                        "AdaptMode": "Contain",
                        "Width": 1920,
                        "Height": 1080,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/materials/2025/02/983af226-8c59-473a-85ec-427fdddd7fdb.mp4",
                        "Type": "Video",
                        "In": 0.9944,
                        "Out": 4.9944,
                        "TimelineIn": 4,
                        "TimelineOut": 8,
                        "Duration": 4
                    },
                    {
                        "Effects": [
                            {
                                "Type": "Volume",
                                "Gain": 0
                            },
                            {
                                "Type": "DLTransition",
                                "SubType": "waterdrop",
                                "Duration": 0.5
                            },
                            {
                                "Type": "Crop",
                                "X": 0,
                                "Y": 0,
                                "Width": 1920,
                                "Height": 1080
                            }
                        ],
                        "AdaptMode": "Contain",
                        "Width": 1920,
                        "Height": 1080,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/materials/2025/02/39b168cd-04bd-4f80-a65a-b267a62b9fc8.mp4",
                        "Type": "Video",
                        "In": 0.4549,
                        "Out": 4.4549,
                        "TimelineIn": 8,
                        "TimelineOut": 12,
                        "Duration": 4
                    },
                    {
                        "Effects": [
                            {
                                "Type": "Volume",
                                "Gain": 0
                            },
                            {
                                "Type": "DLTransition",
                                "SubType": "waterdrop",
                                "Duration": 0.5
                            },
                            {
                                "Type": "Crop",
                                "X": 0,
                                "Y": 0,
                                "Width": 1920,
                                "Height": 1080
                            }
                        ],
                        "AdaptMode": "Contain",
                        "Width": 1920,
                        "Height": 1080,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/materials/2025/02/d3df97ea-1176-4071-940d-d53c7781a17e.mp4",
                        "Type": "Video",
                        "In": 4.9047,
                        "Out": 8.9047,
                        "TimelineIn": 12,
                        "TimelineOut": 16,
                        "Duration": 4
                    },
                    {
                        "Effects": [
                            {
                                "Type": "Volume",
                                "Gain": 0
                            },
                            {
                                "Type": "DLTransition",
                                "SubType": "waterdrop",
                                "Duration": 0.5
                            },
                            {
                                "Type": "Crop",
                                "X": 0,
                                "Y": 0,
                                "Width": 1920,
                                "Height": 1080
                            }
                        ],
                        "AdaptMode": "Contain",
                        "Width": 1920,
                        "Height": 1080,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/materials/2025/02/42e44031-683c-4d1f-8cef-a9cbb0aaeb3e.mp4",
                        "Type": "Video",
                        "In": 0.8104,
                        "Out": 2.3422,
                        "TimelineIn": 16,
                        "TimelineOut": 17.5318,
                        "Duration": 1.5318
                    },
                    {
                        "Effects": [
                            {
                                "Type": "DLTransition",
                                "SubType": "waterdrop",
                                "Duration": 0.5
                            },
                            {
                                "Type": "Crop",
                                "X": 0,
                                "Y": 0,
                                "Width": 1920,
                                "Height": 1080
                            }
                        ],
                        "AdaptMode": "Contain",
                        "Width": 1920,
                        "Height": 1080,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/materials/2025/02/48a2cc2b-f6f0-4099-a1ae-38700baea5fa.mp4",
                        "Type": "Video",
                        "TimelineIn": 17.5318,
                        "TimelineOut": 19.5318
                    }
                ]
            }
        ],
        "AudioTracks": [
            {
                "AudioTrackClips": [
                    {
                        "Effects": [
                            {
                                "Type": "Volume",
                                "Gain": 1
                            },
                            {
                                "Type": "AFade",
                                "SubType": "In",
                                "Duration": 0.5
                            },
                            {
                                "Type": "AFade",
                                "SubType": "Out",
                                "Duration": 0.5
                            }
                        ],
                        "LoopMode": false,
                        "TimelineIn": 0,
                        "TimelineOut": 17.031813,
                        "MediaURL": "https://xxx.oss-cn-shanghai.aliyuncs.com/smart-cut/music/upload/2025/02/cd3dfad9-c03b-4f57-88fb-f992c9870c34.mp3"
                    }
                ]
            }
        ],
        "SubtitleTracks": [
            {
                "SubtitleTrackClips": [
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/告白情书体.ttf",
                        "FontSize": 120,
                        "FontColor": "#ffffff",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": true,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.05,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "Content": "座位\ncover 于冬然",
                        "TimelineIn": 0,
                        "TimelineOut": 3
                    }
                ]
            },
            {
                "SubtitleTrackClips": [
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/萌趣欢乐体.ttf",
                        "FontSize": 80,
                        "FontColor": "#ffffff",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": false,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.85,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "AaiMotionInEffect": "heartjump_in",
                        "AaiMotionIn": 1.5,
                        "Content": "爱就不该成为我们的负累",
                        "TimelineIn": 0.4,
                        "TimelineOut": 5.14
                    },
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/萌趣欢乐体.ttf",
                        "FontSize": 80,
                        "FontColor": "#ffffff",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": false,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.85,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "AaiMotionInEffect": "heartjump_in",
                        "AaiMotionIn": 1.5,
                        "Content": "你身边的那位",
                        "TimelineIn": 5.96,
                        "TimelineOut": 8.24
                    },
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/萌趣欢乐体.ttf",
                        "FontSize": 80,
                        "FontColor": "#ffffff",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": false,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.85,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "AaiMotionInEffect": "heartjump_in",
                        "AaiMotionIn": 1.5,
                        "Content": "代替了我的座位",
                        "TimelineIn": 8.24,
                        "TimelineOut": 11.24
                    },
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/萌趣欢乐体.ttf",
                        "FontSize": 80,
                        "FontColor": "#ffffff",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": false,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.85,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "AaiMotionInEffect": "heartjump_in",
                        "AaiMotionIn": 1.5,
                        "Content": "他的手捧着玫瑰",
                        "TimelineIn": 11.24,
                        "TimelineOut": 13.84
                    },
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/萌趣欢乐体.ttf",
                        "FontSize": 80,
                        "FontColor": "#ffffff",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": false,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.85,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "AaiMotionInEffect": "heartjump_in",
                        "AaiMotionIn": 1.5,
                        "Content": "承诺余生都奉陪",
                        "TimelineIn": 13.84,
                        "TimelineOut": 17.034
                    }
                ]
            },
            {
                "SubtitleTrackClips": [
                    {
                        "Type": "Text",
                        "FontUrl": "https://xxx.oss-cn-shanghai.aliyuncs.com/fonts/告白情书体.ttf",
                        "FontSize": 100,
                        "FontColor": "#DCDCDC",
                        "FontColorOpacity": "1",
                        "FontFace": {
                            "Bold": false,
                            "Italic": false,
                            "Underline": false
                        },
                        "Alignment": "TopCenter",
                        "Y": 0.3,
                        "AdaptMode": "AutoWrap",
                        "TextWidth": 0.8,
                        "Content": "你现在座位坐的是谁?",
                        "TimelineIn": 0,
                        "TimelineOut": 3
                    }
                ]
            }
        ]
    }
}