tencentcloud-sdk-ie 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-ie.rb +11 -0
- data/lib/v20200304/client.rb +276 -0
- data/lib/v20200304/models.rb +3506 -0
- metadata +66 -0
@@ -0,0 +1,3506 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Ie
|
19
|
+
module V20200304
|
20
|
+
# 去编码毛刺、伪影参数
|
21
|
+
class ArtifactReduction < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Type: 去毛刺方式:weak,,strong
|
23
|
+
# @type Type: String
|
24
|
+
# @param Algorithm: 去毛刺算法,可选项:
|
25
|
+
# edaf,
|
26
|
+
# wdaf,
|
27
|
+
# 默认edaf。
|
28
|
+
# 注意:此参数已经弃用
|
29
|
+
# @type Algorithm: String
|
30
|
+
|
31
|
+
attr_accessor :Type, :Algorithm
|
32
|
+
|
33
|
+
def initialize(type=nil, algorithm=nil)
|
34
|
+
@Type = type
|
35
|
+
@Algorithm = algorithm
|
36
|
+
end
|
37
|
+
|
38
|
+
def deserialize(params)
|
39
|
+
@Type = params['Type']
|
40
|
+
@Algorithm = params['Algorithm']
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# 音频音效增强,只支持无背景音的音频
|
45
|
+
class AudioEnhance < TencentCloud::Common::AbstractModel
|
46
|
+
# @param Type: 音效增强种类,可选项:normal
|
47
|
+
# @type Type: String
|
48
|
+
|
49
|
+
attr_accessor :Type
|
50
|
+
|
51
|
+
def initialize(type=nil)
|
52
|
+
@Type = type
|
53
|
+
end
|
54
|
+
|
55
|
+
def deserialize(params)
|
56
|
+
@Type = params['Type']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# 音频参数信息
|
61
|
+
class AudioInfo < TencentCloud::Common::AbstractModel
|
62
|
+
# @param Bitrate: 音频码率,取值范围:0 和 [26, 256],单位:kbps。
|
63
|
+
# 注意:当取值为 0,表示音频码率和原始音频保持一致。
|
64
|
+
# @type Bitrate: Integer
|
65
|
+
# @param Codec: 音频编码器,可选项:aac,mp3,ac3,flac,mp2。
|
66
|
+
# @type Codec: String
|
67
|
+
# @param Channel: 声道数,可选项:
|
68
|
+
# 1:单声道,
|
69
|
+
# 2:双声道,
|
70
|
+
# 6:立体声。
|
71
|
+
# @type Channel: Integer
|
72
|
+
# @param SampleRate: 采样率,单位:Hz。可选项:32000,44100,48000
|
73
|
+
# @type SampleRate: Integer
|
74
|
+
# @param Denoise: 音频降噪信息
|
75
|
+
# @type Denoise: :class:`Tencentcloud::Ie.v20200304.models.Denoise`
|
76
|
+
# @param EnableMuteAudio: 开启添加静音,可选项:
|
77
|
+
# 0:不开启,
|
78
|
+
# 1:开启,
|
79
|
+
# 默认不开启
|
80
|
+
# @type EnableMuteAudio: Integer
|
81
|
+
# @param LoudnessInfo: 音频响度信息
|
82
|
+
# @type LoudnessInfo: :class:`Tencentcloud::Ie.v20200304.models.LoudnessInfo`
|
83
|
+
# @param AudioEnhance: 音频音效增强
|
84
|
+
# @type AudioEnhance: :class:`Tencentcloud::Ie.v20200304.models.AudioEnhance`
|
85
|
+
# @param RemoveReverb: 去除混音
|
86
|
+
# @type RemoveReverb: :class:`Tencentcloud::Ie.v20200304.models.RemoveReverb`
|
87
|
+
|
88
|
+
attr_accessor :Bitrate, :Codec, :Channel, :SampleRate, :Denoise, :EnableMuteAudio, :LoudnessInfo, :AudioEnhance, :RemoveReverb
|
89
|
+
|
90
|
+
def initialize(bitrate=nil, codec=nil, channel=nil, samplerate=nil, denoise=nil, enablemuteaudio=nil, loudnessinfo=nil, audioenhance=nil, removereverb=nil)
|
91
|
+
@Bitrate = bitrate
|
92
|
+
@Codec = codec
|
93
|
+
@Channel = channel
|
94
|
+
@SampleRate = samplerate
|
95
|
+
@Denoise = denoise
|
96
|
+
@EnableMuteAudio = enablemuteaudio
|
97
|
+
@LoudnessInfo = loudnessinfo
|
98
|
+
@AudioEnhance = audioenhance
|
99
|
+
@RemoveReverb = removereverb
|
100
|
+
end
|
101
|
+
|
102
|
+
def deserialize(params)
|
103
|
+
@Bitrate = params['Bitrate']
|
104
|
+
@Codec = params['Codec']
|
105
|
+
@Channel = params['Channel']
|
106
|
+
@SampleRate = params['SampleRate']
|
107
|
+
unless params['Denoise'].nil?
|
108
|
+
@Denoise = Denoise.new
|
109
|
+
@Denoise.deserialize(params['Denoise'])
|
110
|
+
end
|
111
|
+
@EnableMuteAudio = params['EnableMuteAudio']
|
112
|
+
unless params['LoudnessInfo'].nil?
|
113
|
+
@LoudnessInfo = LoudnessInfo.new
|
114
|
+
@LoudnessInfo.deserialize(params['LoudnessInfo'])
|
115
|
+
end
|
116
|
+
unless params['AudioEnhance'].nil?
|
117
|
+
@AudioEnhance = AudioEnhance.new
|
118
|
+
@AudioEnhance.deserialize(params['AudioEnhance'])
|
119
|
+
end
|
120
|
+
unless params['RemoveReverb'].nil?
|
121
|
+
@RemoveReverb = RemoveReverb.new
|
122
|
+
@RemoveReverb.deserialize(params['RemoveReverb'])
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# 任务结束后生成的文件音频信息
|
128
|
+
class AudioInfoResultItem < TencentCloud::Common::AbstractModel
|
129
|
+
# @param Stream: 音频流的流id。
|
130
|
+
# @type Stream: Integer
|
131
|
+
# @param Sample: 音频采样率 。
|
132
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
133
|
+
# @type Sample: Integer
|
134
|
+
# @param Channel: 音频声道数。
|
135
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
136
|
+
# @type Channel: Integer
|
137
|
+
# @param Codec: 编码格式,如aac, mp3等。
|
138
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
139
|
+
# @type Codec: String
|
140
|
+
# @param Bitrate: 码率,单位:bps。
|
141
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
142
|
+
# @type Bitrate: Integer
|
143
|
+
# @param Duration: 音频时长,单位:ms。
|
144
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
145
|
+
# @type Duration: Integer
|
146
|
+
|
147
|
+
attr_accessor :Stream, :Sample, :Channel, :Codec, :Bitrate, :Duration
|
148
|
+
|
149
|
+
def initialize(stream=nil, sample=nil, channel=nil, codec=nil, bitrate=nil, duration=nil)
|
150
|
+
@Stream = stream
|
151
|
+
@Sample = sample
|
152
|
+
@Channel = channel
|
153
|
+
@Codec = codec
|
154
|
+
@Bitrate = bitrate
|
155
|
+
@Duration = duration
|
156
|
+
end
|
157
|
+
|
158
|
+
def deserialize(params)
|
159
|
+
@Stream = params['Stream']
|
160
|
+
@Sample = params['Sample']
|
161
|
+
@Channel = params['Channel']
|
162
|
+
@Codec = params['Codec']
|
163
|
+
@Bitrate = params['Bitrate']
|
164
|
+
@Duration = params['Duration']
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# 任务结果回调地址信息
|
169
|
+
class CallbackInfo < TencentCloud::Common::AbstractModel
|
170
|
+
# @param Url: 回调URL。
|
171
|
+
# @type Url: String
|
172
|
+
|
173
|
+
attr_accessor :Url
|
174
|
+
|
175
|
+
def initialize(url=nil)
|
176
|
+
@Url = url
|
177
|
+
end
|
178
|
+
|
179
|
+
def deserialize(params)
|
180
|
+
@Url = params['Url']
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# 视频分类识别任务参数信息
|
185
|
+
class ClassificationEditingInfo < TencentCloud::Common::AbstractModel
|
186
|
+
# @param Switch: 是否开启视频分类识别。0为关闭,1为开启。其他非0非1值默认为0。
|
187
|
+
# @type Switch: Integer
|
188
|
+
# @param CustomInfo: 额外定制化服务参数。参数为序列化的Json字符串,例如:{"k1":"v1"}。
|
189
|
+
# @type CustomInfo: String
|
190
|
+
|
191
|
+
attr_accessor :Switch, :CustomInfo
|
192
|
+
|
193
|
+
def initialize(switch=nil, custominfo=nil)
|
194
|
+
@Switch = switch
|
195
|
+
@CustomInfo = custominfo
|
196
|
+
end
|
197
|
+
|
198
|
+
def deserialize(params)
|
199
|
+
@Switch = params['Switch']
|
200
|
+
@CustomInfo = params['CustomInfo']
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# 视频分类识别结果信息
|
205
|
+
class ClassificationTaskResult < TencentCloud::Common::AbstractModel
|
206
|
+
# @param Status: 编辑任务状态。
|
207
|
+
# 1:执行中;2:成功;3:失败。
|
208
|
+
# @type Status: Integer
|
209
|
+
# @param ErrCode: 编辑任务失败错误码。
|
210
|
+
# 0:成功;其他值:失败。
|
211
|
+
# @type ErrCode: Integer
|
212
|
+
# @param ErrMsg: 编辑任务失败错误描述。
|
213
|
+
# @type ErrMsg: String
|
214
|
+
# @param ItemSet: 视频分类识别结果集。
|
215
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
216
|
+
# @type ItemSet: Array
|
217
|
+
|
218
|
+
attr_accessor :Status, :ErrCode, :ErrMsg, :ItemSet
|
219
|
+
|
220
|
+
def initialize(status=nil, errcode=nil, errmsg=nil, itemset=nil)
|
221
|
+
@Status = status
|
222
|
+
@ErrCode = errcode
|
223
|
+
@ErrMsg = errmsg
|
224
|
+
@ItemSet = itemset
|
225
|
+
end
|
226
|
+
|
227
|
+
def deserialize(params)
|
228
|
+
@Status = params['Status']
|
229
|
+
@ErrCode = params['ErrCode']
|
230
|
+
@ErrMsg = params['ErrMsg']
|
231
|
+
unless params['ItemSet'].nil?
|
232
|
+
@ItemSet = []
|
233
|
+
params['ItemSet'].each do |i|
|
234
|
+
classificationtaskresultitem_tmp = ClassificationTaskResultItem.new
|
235
|
+
classificationtaskresultitem_tmp.deserialize(i)
|
236
|
+
@ItemSet << classificationtaskresultitem_tmp
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# 视频分类识别结果项
|
243
|
+
class ClassificationTaskResultItem < TencentCloud::Common::AbstractModel
|
244
|
+
# @param Classification: 分类名称。
|
245
|
+
# @type Classification: String
|
246
|
+
# @param Confidence: 置信度,取值范围是 0 到 100。
|
247
|
+
# @type Confidence: Float
|
248
|
+
|
249
|
+
attr_accessor :Classification, :Confidence
|
250
|
+
|
251
|
+
def initialize(classification=nil, confidence=nil)
|
252
|
+
@Classification = classification
|
253
|
+
@Confidence = confidence
|
254
|
+
end
|
255
|
+
|
256
|
+
def deserialize(params)
|
257
|
+
@Classification = params['Classification']
|
258
|
+
@Confidence = params['Confidence']
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# 颜色增强参数
|
263
|
+
class ColorEnhance < TencentCloud::Common::AbstractModel
|
264
|
+
# @param Type: 颜色增强类型,可选项:
|
265
|
+
# 1. tra;
|
266
|
+
# 2. weak;
|
267
|
+
# 3. normal;
|
268
|
+
# 4. strong;
|
269
|
+
# 注意:tra不支持自适应调整,处理速度更快;weak,normal,strong支持基于画面颜色自适应,处理速度更慢。
|
270
|
+
# @type Type: String
|
271
|
+
|
272
|
+
attr_accessor :Type
|
273
|
+
|
274
|
+
def initialize(type=nil)
|
275
|
+
@Type = type
|
276
|
+
end
|
277
|
+
|
278
|
+
def deserialize(params)
|
279
|
+
@Type = params['Type']
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# 任务视频cos授权信息
|
284
|
+
class CosAuthMode < TencentCloud::Common::AbstractModel
|
285
|
+
# @param Type: 授权类型,可选值:
|
286
|
+
# 0:bucket授权,需要将对应bucket授权给本服务帐号(3020447271和100012301793),否则会读写cos失败;
|
287
|
+
# 1:key托管,把cos的账号id和key托管于本服务,本服务会提供一个托管id;
|
288
|
+
# 3:临时key授权。
|
289
|
+
# 注意:目前智能编辑还不支持临时key授权;画质重生目前只支持bucket授权
|
290
|
+
# @type Type: Integer
|
291
|
+
# @param HostedId: cos账号托管id,Type等于1时必选。
|
292
|
+
# @type HostedId: String
|
293
|
+
# @param SecretId: cos身份识别id,Type等于3时必选。
|
294
|
+
# @type SecretId: String
|
295
|
+
# @param SecretKey: cos身份秘钥,Type等于3时必选。
|
296
|
+
# @type SecretKey: String
|
297
|
+
# @param Token: 临时授权 token,Type等于3时必选。
|
298
|
+
# @type Token: String
|
299
|
+
|
300
|
+
attr_accessor :Type, :HostedId, :SecretId, :SecretKey, :Token
|
301
|
+
|
302
|
+
def initialize(type=nil, hostedid=nil, secretid=nil, secretkey=nil, token=nil)
|
303
|
+
@Type = type
|
304
|
+
@HostedId = hostedid
|
305
|
+
@SecretId = secretid
|
306
|
+
@SecretKey = secretkey
|
307
|
+
@Token = token
|
308
|
+
end
|
309
|
+
|
310
|
+
def deserialize(params)
|
311
|
+
@Type = params['Type']
|
312
|
+
@HostedId = params['HostedId']
|
313
|
+
@SecretId = params['SecretId']
|
314
|
+
@SecretKey = params['SecretKey']
|
315
|
+
@Token = params['Token']
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# 任务视频cos信息
|
320
|
+
class CosInfo < TencentCloud::Common::AbstractModel
|
321
|
+
# @param Region: cos 区域值。例如:ap-beijing。
|
322
|
+
# @type Region: String
|
323
|
+
# @param Bucket: cos 存储桶,格式为BuketName-AppId。例如:test-123456。
|
324
|
+
# @type Bucket: String
|
325
|
+
# @param Path: cos 路径。
|
326
|
+
# 对于写表示目录,例如:/test;
|
327
|
+
# 对于读表示文件路径,例如:/test/test.mp4。
|
328
|
+
# @type Path: String
|
329
|
+
# @param CosAuthMode: cos 授权信息,不填默认为公有权限。
|
330
|
+
# @type CosAuthMode: :class:`Tencentcloud::Ie.v20200304.models.CosAuthMode`
|
331
|
+
|
332
|
+
attr_accessor :Region, :Bucket, :Path, :CosAuthMode
|
333
|
+
|
334
|
+
def initialize(region=nil, bucket=nil, path=nil, cosauthmode=nil)
|
335
|
+
@Region = region
|
336
|
+
@Bucket = bucket
|
337
|
+
@Path = path
|
338
|
+
@CosAuthMode = cosauthmode
|
339
|
+
end
|
340
|
+
|
341
|
+
def deserialize(params)
|
342
|
+
@Region = params['Region']
|
343
|
+
@Bucket = params['Bucket']
|
344
|
+
@Path = params['Path']
|
345
|
+
unless params['CosAuthMode'].nil?
|
346
|
+
@CosAuthMode = CosAuthMode.new
|
347
|
+
@CosAuthMode.deserialize(params['CosAuthMode'])
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# 智能封面任务参数信息
|
353
|
+
class CoverEditingInfo < TencentCloud::Common::AbstractModel
|
354
|
+
# @param Switch: 是否开启智能封面。0为关闭,1为开启。其他非0非1值默认为0。
|
355
|
+
# @type Switch: Integer
|
356
|
+
# @param CustomInfo: 额外定制化服务参数。参数为序列化的Json字符串,例如:{"k1":"v1"}。
|
357
|
+
# @type CustomInfo: String
|
358
|
+
|
359
|
+
attr_accessor :Switch, :CustomInfo
|
360
|
+
|
361
|
+
def initialize(switch=nil, custominfo=nil)
|
362
|
+
@Switch = switch
|
363
|
+
@CustomInfo = custominfo
|
364
|
+
end
|
365
|
+
|
366
|
+
def deserialize(params)
|
367
|
+
@Switch = params['Switch']
|
368
|
+
@CustomInfo = params['CustomInfo']
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
# 智能封面结果信息
|
373
|
+
class CoverTaskResult < TencentCloud::Common::AbstractModel
|
374
|
+
# @param Status: 编辑任务状态。
|
375
|
+
# 1:执行中;2:成功;3:失败。
|
376
|
+
# @type Status: Integer
|
377
|
+
# @param ErrCode: 编辑任务失败错误码。
|
378
|
+
# 0:成功;其他值:失败。
|
379
|
+
# @type ErrCode: Integer
|
380
|
+
# @param ErrMsg: 编辑任务失败错误描述。
|
381
|
+
# @type ErrMsg: String
|
382
|
+
# @param ItemSet: 智能封面结果集。
|
383
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
384
|
+
# @type ItemSet: Array
|
385
|
+
|
386
|
+
attr_accessor :Status, :ErrCode, :ErrMsg, :ItemSet
|
387
|
+
|
388
|
+
def initialize(status=nil, errcode=nil, errmsg=nil, itemset=nil)
|
389
|
+
@Status = status
|
390
|
+
@ErrCode = errcode
|
391
|
+
@ErrMsg = errmsg
|
392
|
+
@ItemSet = itemset
|
393
|
+
end
|
394
|
+
|
395
|
+
def deserialize(params)
|
396
|
+
@Status = params['Status']
|
397
|
+
@ErrCode = params['ErrCode']
|
398
|
+
@ErrMsg = params['ErrMsg']
|
399
|
+
unless params['ItemSet'].nil?
|
400
|
+
@ItemSet = []
|
401
|
+
params['ItemSet'].each do |i|
|
402
|
+
covertaskresultitem_tmp = CoverTaskResultItem.new
|
403
|
+
covertaskresultitem_tmp.deserialize(i)
|
404
|
+
@ItemSet << covertaskresultitem_tmp
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
# 智能封面结果项
|
411
|
+
class CoverTaskResultItem < TencentCloud::Common::AbstractModel
|
412
|
+
# @param CoverUrl: 智能封面地址。
|
413
|
+
# @type CoverUrl: String
|
414
|
+
# @param Confidence: 置信度,取值范围是 0 到 100。
|
415
|
+
# @type Confidence: Float
|
416
|
+
|
417
|
+
attr_accessor :CoverUrl, :Confidence
|
418
|
+
|
419
|
+
def initialize(coverurl=nil, confidence=nil)
|
420
|
+
@CoverUrl = coverurl
|
421
|
+
@Confidence = confidence
|
422
|
+
end
|
423
|
+
|
424
|
+
def deserialize(params)
|
425
|
+
@CoverUrl = params['CoverUrl']
|
426
|
+
@Confidence = params['Confidence']
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
# CreateEditingTask请求参数结构体
|
431
|
+
class CreateEditingTaskRequest < TencentCloud::Common::AbstractModel
|
432
|
+
# @param EditingInfo: 智能编辑任务参数。
|
433
|
+
# @type EditingInfo: :class:`Tencentcloud::Ie.v20200304.models.EditingInfo`
|
434
|
+
# @param DownInfo: 视频源信息。
|
435
|
+
# @type DownInfo: :class:`Tencentcloud::Ie.v20200304.models.DownInfo`
|
436
|
+
# @param SaveInfo: 结果存储信息。对于包含智能拆条、智能集锦或者智能封面的任务必选。
|
437
|
+
# @type SaveInfo: :class:`Tencentcloud::Ie.v20200304.models.SaveInfo`
|
438
|
+
# @param CallbackInfo: 任务结果回调地址信息。
|
439
|
+
# @type CallbackInfo: :class:`Tencentcloud::Ie.v20200304.models.CallbackInfo`
|
440
|
+
|
441
|
+
attr_accessor :EditingInfo, :DownInfo, :SaveInfo, :CallbackInfo
|
442
|
+
|
443
|
+
def initialize(editinginfo=nil, downinfo=nil, saveinfo=nil, callbackinfo=nil)
|
444
|
+
@EditingInfo = editinginfo
|
445
|
+
@DownInfo = downinfo
|
446
|
+
@SaveInfo = saveinfo
|
447
|
+
@CallbackInfo = callbackinfo
|
448
|
+
end
|
449
|
+
|
450
|
+
def deserialize(params)
|
451
|
+
unless params['EditingInfo'].nil?
|
452
|
+
@EditingInfo = EditingInfo.new
|
453
|
+
@EditingInfo.deserialize(params['EditingInfo'])
|
454
|
+
end
|
455
|
+
unless params['DownInfo'].nil?
|
456
|
+
@DownInfo = DownInfo.new
|
457
|
+
@DownInfo.deserialize(params['DownInfo'])
|
458
|
+
end
|
459
|
+
unless params['SaveInfo'].nil?
|
460
|
+
@SaveInfo = SaveInfo.new
|
461
|
+
@SaveInfo.deserialize(params['SaveInfo'])
|
462
|
+
end
|
463
|
+
unless params['CallbackInfo'].nil?
|
464
|
+
@CallbackInfo = CallbackInfo.new
|
465
|
+
@CallbackInfo.deserialize(params['CallbackInfo'])
|
466
|
+
end
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
# CreateEditingTask返回参数结构体
|
471
|
+
class CreateEditingTaskResponse < TencentCloud::Common::AbstractModel
|
472
|
+
# @param TaskId: 编辑任务 ID,可以通过该 ID 查询任务状态。
|
473
|
+
# @type TaskId: String
|
474
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
475
|
+
# @type RequestId: String
|
476
|
+
|
477
|
+
attr_accessor :TaskId, :RequestId
|
478
|
+
|
479
|
+
def initialize(taskid=nil, requestid=nil)
|
480
|
+
@TaskId = taskid
|
481
|
+
@RequestId = requestid
|
482
|
+
end
|
483
|
+
|
484
|
+
def deserialize(params)
|
485
|
+
@TaskId = params['TaskId']
|
486
|
+
@RequestId = params['RequestId']
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
490
|
+
# CreateMediaProcessTask请求参数结构体
|
491
|
+
class CreateMediaProcessTaskRequest < TencentCloud::Common::AbstractModel
|
492
|
+
# @param MediaProcessInfo: 编辑处理任务参数。
|
493
|
+
# @type MediaProcessInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaProcessInfo`
|
494
|
+
# @param SourceInfoSet: 编辑处理任务输入源列表。
|
495
|
+
# @type SourceInfoSet: Array
|
496
|
+
# @param SaveInfoSet: 结果存储信息,对于涉及存储的请求必选。部子任务支持数组备份写,具体以对应任务文档为准。
|
497
|
+
# @type SaveInfoSet: Array
|
498
|
+
# @param CallbackInfoSet: 任务结果回调地址信息。部子任务支持数组备份回调,具体以对应任务文档为准。
|
499
|
+
# @type CallbackInfoSet: Array
|
500
|
+
|
501
|
+
attr_accessor :MediaProcessInfo, :SourceInfoSet, :SaveInfoSet, :CallbackInfoSet
|
502
|
+
|
503
|
+
def initialize(mediaprocessinfo=nil, sourceinfoset=nil, saveinfoset=nil, callbackinfoset=nil)
|
504
|
+
@MediaProcessInfo = mediaprocessinfo
|
505
|
+
@SourceInfoSet = sourceinfoset
|
506
|
+
@SaveInfoSet = saveinfoset
|
507
|
+
@CallbackInfoSet = callbackinfoset
|
508
|
+
end
|
509
|
+
|
510
|
+
def deserialize(params)
|
511
|
+
unless params['MediaProcessInfo'].nil?
|
512
|
+
@MediaProcessInfo = MediaProcessInfo.new
|
513
|
+
@MediaProcessInfo.deserialize(params['MediaProcessInfo'])
|
514
|
+
end
|
515
|
+
unless params['SourceInfoSet'].nil?
|
516
|
+
@SourceInfoSet = []
|
517
|
+
params['SourceInfoSet'].each do |i|
|
518
|
+
mediasourceinfo_tmp = MediaSourceInfo.new
|
519
|
+
mediasourceinfo_tmp.deserialize(i)
|
520
|
+
@SourceInfoSet << mediasourceinfo_tmp
|
521
|
+
end
|
522
|
+
end
|
523
|
+
unless params['SaveInfoSet'].nil?
|
524
|
+
@SaveInfoSet = []
|
525
|
+
params['SaveInfoSet'].each do |i|
|
526
|
+
saveinfo_tmp = SaveInfo.new
|
527
|
+
saveinfo_tmp.deserialize(i)
|
528
|
+
@SaveInfoSet << saveinfo_tmp
|
529
|
+
end
|
530
|
+
end
|
531
|
+
unless params['CallbackInfoSet'].nil?
|
532
|
+
@CallbackInfoSet = []
|
533
|
+
params['CallbackInfoSet'].each do |i|
|
534
|
+
callbackinfo_tmp = CallbackInfo.new
|
535
|
+
callbackinfo_tmp.deserialize(i)
|
536
|
+
@CallbackInfoSet << callbackinfo_tmp
|
537
|
+
end
|
538
|
+
end
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
# CreateMediaProcessTask返回参数结构体
|
543
|
+
class CreateMediaProcessTaskResponse < TencentCloud::Common::AbstractModel
|
544
|
+
# @param TaskId: 编辑任务 ID,可以通过该 ID 查询任务状态和结果。
|
545
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
546
|
+
# @type TaskId: String
|
547
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
548
|
+
# @type RequestId: String
|
549
|
+
|
550
|
+
attr_accessor :TaskId, :RequestId
|
551
|
+
|
552
|
+
def initialize(taskid=nil, requestid=nil)
|
553
|
+
@TaskId = taskid
|
554
|
+
@RequestId = requestid
|
555
|
+
end
|
556
|
+
|
557
|
+
def deserialize(params)
|
558
|
+
@TaskId = params['TaskId']
|
559
|
+
@RequestId = params['RequestId']
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
563
|
+
# CreateMediaQualityRestorationTask请求参数结构体
|
564
|
+
class CreateMediaQualityRestorationTaskRequest < TencentCloud::Common::AbstractModel
|
565
|
+
# @param DownInfo: 源文件地址。
|
566
|
+
# @type DownInfo: :class:`Tencentcloud::Ie.v20200304.models.DownInfo`
|
567
|
+
# @param TransInfo: 画质重生任务参数信息。
|
568
|
+
# @type TransInfo: Array
|
569
|
+
# @param SaveInfo: 任务结束后文件存储信息。
|
570
|
+
# @type SaveInfo: :class:`Tencentcloud::Ie.v20200304.models.SaveInfo`
|
571
|
+
# @param CallbackInfo: 任务结果回调地址信息。
|
572
|
+
# @type CallbackInfo: :class:`Tencentcloud::Ie.v20200304.models.CallbackInfo`
|
573
|
+
|
574
|
+
attr_accessor :DownInfo, :TransInfo, :SaveInfo, :CallbackInfo
|
575
|
+
|
576
|
+
def initialize(downinfo=nil, transinfo=nil, saveinfo=nil, callbackinfo=nil)
|
577
|
+
@DownInfo = downinfo
|
578
|
+
@TransInfo = transinfo
|
579
|
+
@SaveInfo = saveinfo
|
580
|
+
@CallbackInfo = callbackinfo
|
581
|
+
end
|
582
|
+
|
583
|
+
def deserialize(params)
|
584
|
+
unless params['DownInfo'].nil?
|
585
|
+
@DownInfo = DownInfo.new
|
586
|
+
@DownInfo.deserialize(params['DownInfo'])
|
587
|
+
end
|
588
|
+
unless params['TransInfo'].nil?
|
589
|
+
@TransInfo = []
|
590
|
+
params['TransInfo'].each do |i|
|
591
|
+
subtasktranscodeinfo_tmp = SubTaskTranscodeInfo.new
|
592
|
+
subtasktranscodeinfo_tmp.deserialize(i)
|
593
|
+
@TransInfo << subtasktranscodeinfo_tmp
|
594
|
+
end
|
595
|
+
end
|
596
|
+
unless params['SaveInfo'].nil?
|
597
|
+
@SaveInfo = SaveInfo.new
|
598
|
+
@SaveInfo.deserialize(params['SaveInfo'])
|
599
|
+
end
|
600
|
+
unless params['CallbackInfo'].nil?
|
601
|
+
@CallbackInfo = CallbackInfo.new
|
602
|
+
@CallbackInfo.deserialize(params['CallbackInfo'])
|
603
|
+
end
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# CreateMediaQualityRestorationTask返回参数结构体
|
608
|
+
class CreateMediaQualityRestorationTaskResponse < TencentCloud::Common::AbstractModel
|
609
|
+
# @param TaskId: 画质重生任务ID,可以通过该ID查询任务状态。
|
610
|
+
# @type TaskId: String
|
611
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
612
|
+
# @type RequestId: String
|
613
|
+
|
614
|
+
attr_accessor :TaskId, :RequestId
|
615
|
+
|
616
|
+
def initialize(taskid=nil, requestid=nil)
|
617
|
+
@TaskId = taskid
|
618
|
+
@RequestId = requestid
|
619
|
+
end
|
620
|
+
|
621
|
+
def deserialize(params)
|
622
|
+
@TaskId = params['TaskId']
|
623
|
+
@RequestId = params['RequestId']
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
# CreateQualityControlTask请求参数结构体
|
628
|
+
class CreateQualityControlTaskRequest < TencentCloud::Common::AbstractModel
|
629
|
+
# @param QualityControlInfo: 质检任务参数
|
630
|
+
# @type QualityControlInfo: :class:`Tencentcloud::Ie.v20200304.models.QualityControlInfo`
|
631
|
+
# @param DownInfo: 视频源信息
|
632
|
+
# @type DownInfo: :class:`Tencentcloud::Ie.v20200304.models.DownInfo`
|
633
|
+
# @param CallbackInfo: 任务结果回调地址信息
|
634
|
+
# @type CallbackInfo: :class:`Tencentcloud::Ie.v20200304.models.CallbackInfo`
|
635
|
+
|
636
|
+
attr_accessor :QualityControlInfo, :DownInfo, :CallbackInfo
|
637
|
+
|
638
|
+
def initialize(qualitycontrolinfo=nil, downinfo=nil, callbackinfo=nil)
|
639
|
+
@QualityControlInfo = qualitycontrolinfo
|
640
|
+
@DownInfo = downinfo
|
641
|
+
@CallbackInfo = callbackinfo
|
642
|
+
end
|
643
|
+
|
644
|
+
def deserialize(params)
|
645
|
+
unless params['QualityControlInfo'].nil?
|
646
|
+
@QualityControlInfo = QualityControlInfo.new
|
647
|
+
@QualityControlInfo.deserialize(params['QualityControlInfo'])
|
648
|
+
end
|
649
|
+
unless params['DownInfo'].nil?
|
650
|
+
@DownInfo = DownInfo.new
|
651
|
+
@DownInfo.deserialize(params['DownInfo'])
|
652
|
+
end
|
653
|
+
unless params['CallbackInfo'].nil?
|
654
|
+
@CallbackInfo = CallbackInfo.new
|
655
|
+
@CallbackInfo.deserialize(params['CallbackInfo'])
|
656
|
+
end
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
# CreateQualityControlTask返回参数结构体
|
661
|
+
class CreateQualityControlTaskResponse < TencentCloud::Common::AbstractModel
|
662
|
+
# @param TaskId: 质检任务 ID
|
663
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
664
|
+
# @type TaskId: String
|
665
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
666
|
+
# @type RequestId: String
|
667
|
+
|
668
|
+
attr_accessor :TaskId, :RequestId
|
669
|
+
|
670
|
+
def initialize(taskid=nil, requestid=nil)
|
671
|
+
@TaskId = taskid
|
672
|
+
@RequestId = requestid
|
673
|
+
end
|
674
|
+
|
675
|
+
def deserialize(params)
|
676
|
+
@TaskId = params['TaskId']
|
677
|
+
@RequestId = params['RequestId']
|
678
|
+
end
|
679
|
+
end
|
680
|
+
|
681
|
+
# 视频Dar信息
|
682
|
+
class DarInfo < TencentCloud::Common::AbstractModel
|
683
|
+
# @param FillMode: 填充模式,可选值:
|
684
|
+
# 1:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
|
685
|
+
# 2:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“。
|
686
|
+
# 默认为2。
|
687
|
+
# @type FillMode: Integer
|
688
|
+
|
689
|
+
attr_accessor :FillMode
|
690
|
+
|
691
|
+
def initialize(fillmode=nil)
|
692
|
+
@FillMode = fillmode
|
693
|
+
end
|
694
|
+
|
695
|
+
def deserialize(params)
|
696
|
+
@FillMode = params['FillMode']
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
700
|
+
# 音频降噪
|
701
|
+
class Denoise < TencentCloud::Common::AbstractModel
|
702
|
+
# @param Type: 音频降噪强度,可选项:
|
703
|
+
# 1. weak
|
704
|
+
# 2.normal,
|
705
|
+
# 3.strong
|
706
|
+
# 默认为weak
|
707
|
+
# @type Type: String
|
708
|
+
|
709
|
+
attr_accessor :Type
|
710
|
+
|
711
|
+
def initialize(type=nil)
|
712
|
+
@Type = type
|
713
|
+
end
|
714
|
+
|
715
|
+
def deserialize(params)
|
716
|
+
@Type = params['Type']
|
717
|
+
end
|
718
|
+
end
|
719
|
+
|
720
|
+
# 去噪参数
|
721
|
+
class Denoising < TencentCloud::Common::AbstractModel
|
722
|
+
# @param Type: 去噪方式,可选项:
|
723
|
+
# templ:时域降噪;
|
724
|
+
# spatial:空域降噪,
|
725
|
+
# fast-spatial:快速空域降噪。
|
726
|
+
# 注意:可选择组合方式:
|
727
|
+
# 1.type:"templ,spatial" ;
|
728
|
+
# 2.type:"templ,fast-spatial"。
|
729
|
+
# @type Type: String
|
730
|
+
# @param TemplStrength: 时域去噪强度,可选值:0.0-1.0 。小于0.0的默认为0.0,大于1.0的默认为1.0。
|
731
|
+
# @type TemplStrength: Float
|
732
|
+
# @param SpatialStrength: 空域去噪强度,可选值:0.0-1.0 。小于0.0的默认为0.0,大于1.0的默认为1.0。
|
733
|
+
# @type SpatialStrength: Float
|
734
|
+
|
735
|
+
attr_accessor :Type, :TemplStrength, :SpatialStrength
|
736
|
+
|
737
|
+
def initialize(type=nil, templstrength=nil, spatialstrength=nil)
|
738
|
+
@Type = type
|
739
|
+
@TemplStrength = templstrength
|
740
|
+
@SpatialStrength = spatialstrength
|
741
|
+
end
|
742
|
+
|
743
|
+
def deserialize(params)
|
744
|
+
@Type = params['Type']
|
745
|
+
@TemplStrength = params['TemplStrength']
|
746
|
+
@SpatialStrength = params['SpatialStrength']
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
750
|
+
# DescribeEditingTaskResult请求参数结构体
|
751
|
+
class DescribeEditingTaskResultRequest < TencentCloud::Common::AbstractModel
|
752
|
+
# @param TaskId: 编辑任务 ID。
|
753
|
+
# @type TaskId: String
|
754
|
+
|
755
|
+
attr_accessor :TaskId
|
756
|
+
|
757
|
+
def initialize(taskid=nil)
|
758
|
+
@TaskId = taskid
|
759
|
+
end
|
760
|
+
|
761
|
+
def deserialize(params)
|
762
|
+
@TaskId = params['TaskId']
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
766
|
+
# DescribeEditingTaskResult返回参数结构体
|
767
|
+
class DescribeEditingTaskResultResponse < TencentCloud::Common::AbstractModel
|
768
|
+
# @param TaskResult: 编辑任务结果信息。
|
769
|
+
# @type TaskResult: :class:`Tencentcloud::Ie.v20200304.models.EditingTaskResult`
|
770
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
771
|
+
# @type RequestId: String
|
772
|
+
|
773
|
+
attr_accessor :TaskResult, :RequestId
|
774
|
+
|
775
|
+
def initialize(taskresult=nil, requestid=nil)
|
776
|
+
@TaskResult = taskresult
|
777
|
+
@RequestId = requestid
|
778
|
+
end
|
779
|
+
|
780
|
+
def deserialize(params)
|
781
|
+
unless params['TaskResult'].nil?
|
782
|
+
@TaskResult = EditingTaskResult.new
|
783
|
+
@TaskResult.deserialize(params['TaskResult'])
|
784
|
+
end
|
785
|
+
@RequestId = params['RequestId']
|
786
|
+
end
|
787
|
+
end
|
788
|
+
|
789
|
+
# DescribeMediaProcessTaskResult请求参数结构体
|
790
|
+
class DescribeMediaProcessTaskResultRequest < TencentCloud::Common::AbstractModel
|
791
|
+
# @param TaskId: 编辑处理任务ID。
|
792
|
+
# @type TaskId: String
|
793
|
+
|
794
|
+
attr_accessor :TaskId
|
795
|
+
|
796
|
+
def initialize(taskid=nil)
|
797
|
+
@TaskId = taskid
|
798
|
+
end
|
799
|
+
|
800
|
+
def deserialize(params)
|
801
|
+
@TaskId = params['TaskId']
|
802
|
+
end
|
803
|
+
end
|
804
|
+
|
805
|
+
# DescribeMediaProcessTaskResult返回参数结构体
|
806
|
+
class DescribeMediaProcessTaskResultResponse < TencentCloud::Common::AbstractModel
|
807
|
+
# @param TaskResult: 任务处理结果。
|
808
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
809
|
+
# @type TaskResult: :class:`Tencentcloud::Ie.v20200304.models.MediaProcessTaskResult`
|
810
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
811
|
+
# @type RequestId: String
|
812
|
+
|
813
|
+
attr_accessor :TaskResult, :RequestId
|
814
|
+
|
815
|
+
def initialize(taskresult=nil, requestid=nil)
|
816
|
+
@TaskResult = taskresult
|
817
|
+
@RequestId = requestid
|
818
|
+
end
|
819
|
+
|
820
|
+
def deserialize(params)
|
821
|
+
unless params['TaskResult'].nil?
|
822
|
+
@TaskResult = MediaProcessTaskResult.new
|
823
|
+
@TaskResult.deserialize(params['TaskResult'])
|
824
|
+
end
|
825
|
+
@RequestId = params['RequestId']
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
829
|
+
# DescribeMediaQualityRestorationTaskRusult请求参数结构体
|
830
|
+
class DescribeMediaQualityRestorationTaskRusultRequest < TencentCloud::Common::AbstractModel
|
831
|
+
# @param TaskId: 画质重生任务ID
|
832
|
+
# @type TaskId: String
|
833
|
+
|
834
|
+
attr_accessor :TaskId
|
835
|
+
|
836
|
+
def initialize(taskid=nil)
|
837
|
+
@TaskId = taskid
|
838
|
+
end
|
839
|
+
|
840
|
+
def deserialize(params)
|
841
|
+
@TaskId = params['TaskId']
|
842
|
+
end
|
843
|
+
end
|
844
|
+
|
845
|
+
# DescribeMediaQualityRestorationTaskRusult返回参数结构体
|
846
|
+
class DescribeMediaQualityRestorationTaskRusultResponse < TencentCloud::Common::AbstractModel
|
847
|
+
# @param TaskResult: 画质重生任务结果信息
|
848
|
+
# @type TaskResult: :class:`Tencentcloud::Ie.v20200304.models.MediaQualityRestorationTaskResult`
|
849
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
850
|
+
# @type RequestId: String
|
851
|
+
|
852
|
+
attr_accessor :TaskResult, :RequestId
|
853
|
+
|
854
|
+
def initialize(taskresult=nil, requestid=nil)
|
855
|
+
@TaskResult = taskresult
|
856
|
+
@RequestId = requestid
|
857
|
+
end
|
858
|
+
|
859
|
+
def deserialize(params)
|
860
|
+
unless params['TaskResult'].nil?
|
861
|
+
@TaskResult = MediaQualityRestorationTaskResult.new
|
862
|
+
@TaskResult.deserialize(params['TaskResult'])
|
863
|
+
end
|
864
|
+
@RequestId = params['RequestId']
|
865
|
+
end
|
866
|
+
end
|
867
|
+
|
868
|
+
# DescribeQualityControlTaskResult请求参数结构体
|
869
|
+
class DescribeQualityControlTaskResultRequest < TencentCloud::Common::AbstractModel
|
870
|
+
# @param TaskId: 质检任务 ID
|
871
|
+
# @type TaskId: String
|
872
|
+
|
873
|
+
attr_accessor :TaskId
|
874
|
+
|
875
|
+
def initialize(taskid=nil)
|
876
|
+
@TaskId = taskid
|
877
|
+
end
|
878
|
+
|
879
|
+
def deserialize(params)
|
880
|
+
@TaskId = params['TaskId']
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
# DescribeQualityControlTaskResult返回参数结构体
|
885
|
+
class DescribeQualityControlTaskResultResponse < TencentCloud::Common::AbstractModel
|
886
|
+
# @param TaskResult: 质检任务结果信息
|
887
|
+
# @type TaskResult: :class:`Tencentcloud::Ie.v20200304.models.QualityControlInfoTaskResult`
|
888
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
889
|
+
# @type RequestId: String
|
890
|
+
|
891
|
+
attr_accessor :TaskResult, :RequestId
|
892
|
+
|
893
|
+
def initialize(taskresult=nil, requestid=nil)
|
894
|
+
@TaskResult = taskresult
|
895
|
+
@RequestId = requestid
|
896
|
+
end
|
897
|
+
|
898
|
+
def deserialize(params)
|
899
|
+
unless params['TaskResult'].nil?
|
900
|
+
@TaskResult = QualityControlInfoTaskResult.new
|
901
|
+
@TaskResult.deserialize(params['TaskResult'])
|
902
|
+
end
|
903
|
+
@RequestId = params['RequestId']
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
907
|
+
# 视频源信息
|
908
|
+
class DownInfo < TencentCloud::Common::AbstractModel
|
909
|
+
# @param Type: 下载类型,可选值:
|
910
|
+
# 0:UrlInfo;
|
911
|
+
# 1:CosInfo。
|
912
|
+
# @type Type: Integer
|
913
|
+
# @param UrlInfo: Url形式下载信息,当Type等于0时必选。
|
914
|
+
# @type UrlInfo: :class:`Tencentcloud::Ie.v20200304.models.UrlInfo`
|
915
|
+
# @param CosInfo: Cos形式下载信息,当Type等于1时必选。
|
916
|
+
# @type CosInfo: :class:`Tencentcloud::Ie.v20200304.models.CosInfo`
|
917
|
+
|
918
|
+
attr_accessor :Type, :UrlInfo, :CosInfo
|
919
|
+
|
920
|
+
def initialize(type=nil, urlinfo=nil, cosinfo=nil)
|
921
|
+
@Type = type
|
922
|
+
@UrlInfo = urlinfo
|
923
|
+
@CosInfo = cosinfo
|
924
|
+
end
|
925
|
+
|
926
|
+
def deserialize(params)
|
927
|
+
@Type = params['Type']
|
928
|
+
unless params['UrlInfo'].nil?
|
929
|
+
@UrlInfo = UrlInfo.new
|
930
|
+
@UrlInfo.deserialize(params['UrlInfo'])
|
931
|
+
end
|
932
|
+
unless params['CosInfo'].nil?
|
933
|
+
@CosInfo = CosInfo.new
|
934
|
+
@CosInfo.deserialize(params['CosInfo'])
|
935
|
+
end
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
939
|
+
# 画质重生子任务视频剪辑参数
|
940
|
+
class EditInfo < TencentCloud::Common::AbstractModel
|
941
|
+
# @param StartTime: 剪辑开始时间,单位:ms。
|
942
|
+
# @type StartTime: Integer
|
943
|
+
# @param EndTime: 剪辑结束时间,单位:ms
|
944
|
+
# @type EndTime: Integer
|
945
|
+
|
946
|
+
attr_accessor :StartTime, :EndTime
|
947
|
+
|
948
|
+
def initialize(starttime=nil, endtime=nil)
|
949
|
+
@StartTime = starttime
|
950
|
+
@EndTime = endtime
|
951
|
+
end
|
952
|
+
|
953
|
+
def deserialize(params)
|
954
|
+
@StartTime = params['StartTime']
|
955
|
+
@EndTime = params['EndTime']
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
# 智能编辑任务参数信息
|
960
|
+
class EditingInfo < TencentCloud::Common::AbstractModel
|
961
|
+
# @param TagEditingInfo: 视频标签识别任务参数,不填则不开启。
|
962
|
+
# @type TagEditingInfo: :class:`Tencentcloud::Ie.v20200304.models.TagEditingInfo`
|
963
|
+
# @param ClassificationEditingInfo: 视频分类识别任务参数,不填则不开启。
|
964
|
+
# @type ClassificationEditingInfo: :class:`Tencentcloud::Ie.v20200304.models.ClassificationEditingInfo`
|
965
|
+
# @param StripEditingInfo: 智能拆条任务参数,不填则不开启。
|
966
|
+
# @type StripEditingInfo: :class:`Tencentcloud::Ie.v20200304.models.StripEditingInfo`
|
967
|
+
# @param HighlightsEditingInfo: 智能集锦任务参数,不填则不开启。
|
968
|
+
# @type HighlightsEditingInfo: :class:`Tencentcloud::Ie.v20200304.models.HighlightsEditingInfo`
|
969
|
+
# @param CoverEditingInfo: 智能封面任务参数,不填则不开启。
|
970
|
+
# @type CoverEditingInfo: :class:`Tencentcloud::Ie.v20200304.models.CoverEditingInfo`
|
971
|
+
# @param OpeningEndingEditingInfo: 片头片尾识别任务参数,不填则不开启。
|
972
|
+
# @type OpeningEndingEditingInfo: :class:`Tencentcloud::Ie.v20200304.models.OpeningEndingEditingInfo`
|
973
|
+
|
974
|
+
attr_accessor :TagEditingInfo, :ClassificationEditingInfo, :StripEditingInfo, :HighlightsEditingInfo, :CoverEditingInfo, :OpeningEndingEditingInfo
|
975
|
+
|
976
|
+
def initialize(tageditinginfo=nil, classificationeditinginfo=nil, stripeditinginfo=nil, highlightseditinginfo=nil, covereditinginfo=nil, openingendingeditinginfo=nil)
|
977
|
+
@TagEditingInfo = tageditinginfo
|
978
|
+
@ClassificationEditingInfo = classificationeditinginfo
|
979
|
+
@StripEditingInfo = stripeditinginfo
|
980
|
+
@HighlightsEditingInfo = highlightseditinginfo
|
981
|
+
@CoverEditingInfo = covereditinginfo
|
982
|
+
@OpeningEndingEditingInfo = openingendingeditinginfo
|
983
|
+
end
|
984
|
+
|
985
|
+
def deserialize(params)
|
986
|
+
unless params['TagEditingInfo'].nil?
|
987
|
+
@TagEditingInfo = TagEditingInfo.new
|
988
|
+
@TagEditingInfo.deserialize(params['TagEditingInfo'])
|
989
|
+
end
|
990
|
+
unless params['ClassificationEditingInfo'].nil?
|
991
|
+
@ClassificationEditingInfo = ClassificationEditingInfo.new
|
992
|
+
@ClassificationEditingInfo.deserialize(params['ClassificationEditingInfo'])
|
993
|
+
end
|
994
|
+
unless params['StripEditingInfo'].nil?
|
995
|
+
@StripEditingInfo = StripEditingInfo.new
|
996
|
+
@StripEditingInfo.deserialize(params['StripEditingInfo'])
|
997
|
+
end
|
998
|
+
unless params['HighlightsEditingInfo'].nil?
|
999
|
+
@HighlightsEditingInfo = HighlightsEditingInfo.new
|
1000
|
+
@HighlightsEditingInfo.deserialize(params['HighlightsEditingInfo'])
|
1001
|
+
end
|
1002
|
+
unless params['CoverEditingInfo'].nil?
|
1003
|
+
@CoverEditingInfo = CoverEditingInfo.new
|
1004
|
+
@CoverEditingInfo.deserialize(params['CoverEditingInfo'])
|
1005
|
+
end
|
1006
|
+
unless params['OpeningEndingEditingInfo'].nil?
|
1007
|
+
@OpeningEndingEditingInfo = OpeningEndingEditingInfo.new
|
1008
|
+
@OpeningEndingEditingInfo.deserialize(params['OpeningEndingEditingInfo'])
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# 智能识别任务结果信息
|
1014
|
+
class EditingTaskResult < TencentCloud::Common::AbstractModel
|
1015
|
+
# @param TaskId: 编辑任务 ID。
|
1016
|
+
# @type TaskId: String
|
1017
|
+
# @param Status: 编辑任务状态。
|
1018
|
+
# 1:执行中;2:已完成。
|
1019
|
+
# @type Status: Integer
|
1020
|
+
# @param TagTaskResult: 视频标签识别结果。
|
1021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1022
|
+
# @type TagTaskResult: :class:`Tencentcloud::Ie.v20200304.models.TagTaskResult`
|
1023
|
+
# @param ClassificationTaskResult: 视频分类识别结果。
|
1024
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1025
|
+
# @type ClassificationTaskResult: :class:`Tencentcloud::Ie.v20200304.models.ClassificationTaskResult`
|
1026
|
+
# @param StripTaskResult: 智能拆条结果。
|
1027
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1028
|
+
# @type StripTaskResult: :class:`Tencentcloud::Ie.v20200304.models.StripTaskResult`
|
1029
|
+
# @param HighlightsTaskResult: 智能集锦结果。
|
1030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1031
|
+
# @type HighlightsTaskResult: :class:`Tencentcloud::Ie.v20200304.models.HighlightsTaskResult`
|
1032
|
+
# @param CoverTaskResult: 智能封面结果。
|
1033
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1034
|
+
# @type CoverTaskResult: :class:`Tencentcloud::Ie.v20200304.models.CoverTaskResult`
|
1035
|
+
# @param OpeningEndingTaskResult: 片头片尾识别结果。
|
1036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1037
|
+
# @type OpeningEndingTaskResult: :class:`Tencentcloud::Ie.v20200304.models.OpeningEndingTaskResult`
|
1038
|
+
|
1039
|
+
attr_accessor :TaskId, :Status, :TagTaskResult, :ClassificationTaskResult, :StripTaskResult, :HighlightsTaskResult, :CoverTaskResult, :OpeningEndingTaskResult
|
1040
|
+
|
1041
|
+
def initialize(taskid=nil, status=nil, tagtaskresult=nil, classificationtaskresult=nil, striptaskresult=nil, highlightstaskresult=nil, covertaskresult=nil, openingendingtaskresult=nil)
|
1042
|
+
@TaskId = taskid
|
1043
|
+
@Status = status
|
1044
|
+
@TagTaskResult = tagtaskresult
|
1045
|
+
@ClassificationTaskResult = classificationtaskresult
|
1046
|
+
@StripTaskResult = striptaskresult
|
1047
|
+
@HighlightsTaskResult = highlightstaskresult
|
1048
|
+
@CoverTaskResult = covertaskresult
|
1049
|
+
@OpeningEndingTaskResult = openingendingtaskresult
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
def deserialize(params)
|
1053
|
+
@TaskId = params['TaskId']
|
1054
|
+
@Status = params['Status']
|
1055
|
+
unless params['TagTaskResult'].nil?
|
1056
|
+
@TagTaskResult = TagTaskResult.new
|
1057
|
+
@TagTaskResult.deserialize(params['TagTaskResult'])
|
1058
|
+
end
|
1059
|
+
unless params['ClassificationTaskResult'].nil?
|
1060
|
+
@ClassificationTaskResult = ClassificationTaskResult.new
|
1061
|
+
@ClassificationTaskResult.deserialize(params['ClassificationTaskResult'])
|
1062
|
+
end
|
1063
|
+
unless params['StripTaskResult'].nil?
|
1064
|
+
@StripTaskResult = StripTaskResult.new
|
1065
|
+
@StripTaskResult.deserialize(params['StripTaskResult'])
|
1066
|
+
end
|
1067
|
+
unless params['HighlightsTaskResult'].nil?
|
1068
|
+
@HighlightsTaskResult = HighlightsTaskResult.new
|
1069
|
+
@HighlightsTaskResult.deserialize(params['HighlightsTaskResult'])
|
1070
|
+
end
|
1071
|
+
unless params['CoverTaskResult'].nil?
|
1072
|
+
@CoverTaskResult = CoverTaskResult.new
|
1073
|
+
@CoverTaskResult.deserialize(params['CoverTaskResult'])
|
1074
|
+
end
|
1075
|
+
unless params['OpeningEndingTaskResult'].nil?
|
1076
|
+
@OpeningEndingTaskResult = OpeningEndingTaskResult.new
|
1077
|
+
@OpeningEndingTaskResult.deserialize(params['OpeningEndingTaskResult'])
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
# 人脸保护参数
|
1083
|
+
class FaceProtect < TencentCloud::Common::AbstractModel
|
1084
|
+
# @param FaceUsmRatio: 人脸区域增强强度,可选项:0.0-1.0。小于0.0的默认为0.0,大于1.0的默认为1.0。
|
1085
|
+
# @type FaceUsmRatio: Float
|
1086
|
+
|
1087
|
+
attr_accessor :FaceUsmRatio
|
1088
|
+
|
1089
|
+
def initialize(faceusmratio=nil)
|
1090
|
+
@FaceUsmRatio = faceusmratio
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
def deserialize(params)
|
1094
|
+
@FaceUsmRatio = params['FaceUsmRatio']
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# 画质重生处理后文件的详细信息
|
1099
|
+
class FileInfo < TencentCloud::Common::AbstractModel
|
1100
|
+
# @param FileSize: 任务结束后生成的文件大小。
|
1101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1102
|
+
# @type FileSize: Integer
|
1103
|
+
# @param FileType: 任务结束后生成的文件格式,例如:mp4,flv等等。
|
1104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1105
|
+
# @type FileType: String
|
1106
|
+
# @param Bitrate: 任务结束后生成的文件整体码率,单位:bps。
|
1107
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1108
|
+
# @type Bitrate: Integer
|
1109
|
+
# @param Duration: 任务结束后生成的文件时长,单位:ms。
|
1110
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1111
|
+
# @type Duration: Integer
|
1112
|
+
# @param VideoInfoResult: 任务结束后生成的文件视频信息。
|
1113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1114
|
+
# @type VideoInfoResult: Array
|
1115
|
+
# @param AudioInfoResult: 任务结束后生成的文件音频信息。
|
1116
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1117
|
+
# @type AudioInfoResult: Array
|
1118
|
+
|
1119
|
+
attr_accessor :FileSize, :FileType, :Bitrate, :Duration, :VideoInfoResult, :AudioInfoResult
|
1120
|
+
|
1121
|
+
def initialize(filesize=nil, filetype=nil, bitrate=nil, duration=nil, videoinforesult=nil, audioinforesult=nil)
|
1122
|
+
@FileSize = filesize
|
1123
|
+
@FileType = filetype
|
1124
|
+
@Bitrate = bitrate
|
1125
|
+
@Duration = duration
|
1126
|
+
@VideoInfoResult = videoinforesult
|
1127
|
+
@AudioInfoResult = audioinforesult
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def deserialize(params)
|
1131
|
+
@FileSize = params['FileSize']
|
1132
|
+
@FileType = params['FileType']
|
1133
|
+
@Bitrate = params['Bitrate']
|
1134
|
+
@Duration = params['Duration']
|
1135
|
+
unless params['VideoInfoResult'].nil?
|
1136
|
+
@VideoInfoResult = []
|
1137
|
+
params['VideoInfoResult'].each do |i|
|
1138
|
+
videoinforesultitem_tmp = VideoInfoResultItem.new
|
1139
|
+
videoinforesultitem_tmp.deserialize(i)
|
1140
|
+
@VideoInfoResult << videoinforesultitem_tmp
|
1141
|
+
end
|
1142
|
+
end
|
1143
|
+
unless params['AudioInfoResult'].nil?
|
1144
|
+
@AudioInfoResult = []
|
1145
|
+
params['AudioInfoResult'].each do |i|
|
1146
|
+
audioinforesultitem_tmp = AudioInfoResultItem.new
|
1147
|
+
audioinforesultitem_tmp.deserialize(i)
|
1148
|
+
@AudioInfoResult << audioinforesultitem_tmp
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# 帧标签
|
1155
|
+
class FrameTagItem < TencentCloud::Common::AbstractModel
|
1156
|
+
# @param StartPts: 标签起始时间戳PTS(ms)
|
1157
|
+
# @type StartPts: Integer
|
1158
|
+
# @param EndPts: 语句结束时间戳PTS(ms)
|
1159
|
+
# @type EndPts: Integer
|
1160
|
+
# @param Period: 字符串形式的起始结束时间
|
1161
|
+
# @type Period: String
|
1162
|
+
# @param TagItems: 标签数组
|
1163
|
+
# @type TagItems: Array
|
1164
|
+
|
1165
|
+
attr_accessor :StartPts, :EndPts, :Period, :TagItems
|
1166
|
+
|
1167
|
+
def initialize(startpts=nil, endpts=nil, period=nil, tagitems=nil)
|
1168
|
+
@StartPts = startpts
|
1169
|
+
@EndPts = endpts
|
1170
|
+
@Period = period
|
1171
|
+
@TagItems = tagitems
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def deserialize(params)
|
1175
|
+
@StartPts = params['StartPts']
|
1176
|
+
@EndPts = params['EndPts']
|
1177
|
+
@Period = params['Period']
|
1178
|
+
unless params['TagItems'].nil?
|
1179
|
+
@TagItems = []
|
1180
|
+
params['TagItems'].each do |i|
|
1181
|
+
tagitem_tmp = TagItem.new
|
1182
|
+
tagitem_tmp.deserialize(i)
|
1183
|
+
@TagItems << tagitem_tmp
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# 帧标签任务参数
|
1190
|
+
class FrameTagRec < TencentCloud::Common::AbstractModel
|
1191
|
+
# @param TagType: 标签类型:
|
1192
|
+
# "Common": 通用类型
|
1193
|
+
# "Game":游戏类型
|
1194
|
+
# @type TagType: String
|
1195
|
+
# @param GameExtendType: 游戏具体类型:
|
1196
|
+
# "HonorOfKings_AnchorViews":王者荣耀主播视角
|
1197
|
+
# "HonorOfKings_GameViews":王者荣耀比赛视角
|
1198
|
+
# "LOL_AnchorViews":英雄联盟主播视角
|
1199
|
+
# "LOL_GameViews":英雄联盟比赛视角
|
1200
|
+
# "PUBG_AnchorViews":和平精英主播视角
|
1201
|
+
# "PUBG_GameViews":和平精英比赛视角
|
1202
|
+
# @type GameExtendType: String
|
1203
|
+
|
1204
|
+
attr_accessor :TagType, :GameExtendType
|
1205
|
+
|
1206
|
+
def initialize(tagtype=nil, gameextendtype=nil)
|
1207
|
+
@TagType = tagtype
|
1208
|
+
@GameExtendType = gameextendtype
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
def deserialize(params)
|
1212
|
+
@TagType = params['TagType']
|
1213
|
+
@GameExtendType = params['GameExtendType']
|
1214
|
+
end
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
# 帧标签结果
|
1218
|
+
class FrameTagResult < TencentCloud::Common::AbstractModel
|
1219
|
+
# @param FrameTagItems: 帧标签结果数组
|
1220
|
+
# @type FrameTagItems: Array
|
1221
|
+
|
1222
|
+
attr_accessor :FrameTagItems
|
1223
|
+
|
1224
|
+
def initialize(frametagitems=nil)
|
1225
|
+
@FrameTagItems = frametagitems
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
def deserialize(params)
|
1229
|
+
unless params['FrameTagItems'].nil?
|
1230
|
+
@FrameTagItems = []
|
1231
|
+
params['FrameTagItems'].each do |i|
|
1232
|
+
frametagitem_tmp = FrameTagItem.new
|
1233
|
+
frametagitem_tmp.deserialize(i)
|
1234
|
+
@FrameTagItems << frametagitem_tmp
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# 数字水印
|
1241
|
+
class HiddenMarkInfo < TencentCloud::Common::AbstractModel
|
1242
|
+
# @param Path: 数字水印路径,,如果不从Cos拉取水印,则必填
|
1243
|
+
# @type Path: String
|
1244
|
+
# @param Frequency: 数字水印频率,可选值:[1,256],默认值为30
|
1245
|
+
# @type Frequency: Integer
|
1246
|
+
# @param Strength: 数字水印强度,可选值:[32,128],默认值为64
|
1247
|
+
# @type Strength: Integer
|
1248
|
+
# @param CosInfo: 数字水印的Cos 信息,从Cos上拉取图片水印时必填。
|
1249
|
+
# @type CosInfo: :class:`Tencentcloud::Ie.v20200304.models.CosInfo`
|
1250
|
+
|
1251
|
+
attr_accessor :Path, :Frequency, :Strength, :CosInfo
|
1252
|
+
|
1253
|
+
def initialize(path=nil, frequency=nil, strength=nil, cosinfo=nil)
|
1254
|
+
@Path = path
|
1255
|
+
@Frequency = frequency
|
1256
|
+
@Strength = strength
|
1257
|
+
@CosInfo = cosinfo
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
def deserialize(params)
|
1261
|
+
@Path = params['Path']
|
1262
|
+
@Frequency = params['Frequency']
|
1263
|
+
@Strength = params['Strength']
|
1264
|
+
unless params['CosInfo'].nil?
|
1265
|
+
@CosInfo = CosInfo.new
|
1266
|
+
@CosInfo.deserialize(params['CosInfo'])
|
1267
|
+
end
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# 智能集锦任务参数信息
|
1272
|
+
class HighlightsEditingInfo < TencentCloud::Common::AbstractModel
|
1273
|
+
# @param Switch: 是否开启智能集锦。0为关闭,1为开启。其他非0非1值默认为0。
|
1274
|
+
# @type Switch: Integer
|
1275
|
+
# @param CustomInfo: 额外定制化服务参数。参数为序列化的Json字符串,例如:{"k1":"v1"}。
|
1276
|
+
# @type CustomInfo: String
|
1277
|
+
|
1278
|
+
attr_accessor :Switch, :CustomInfo
|
1279
|
+
|
1280
|
+
def initialize(switch=nil, custominfo=nil)
|
1281
|
+
@Switch = switch
|
1282
|
+
@CustomInfo = custominfo
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
def deserialize(params)
|
1286
|
+
@Switch = params['Switch']
|
1287
|
+
@CustomInfo = params['CustomInfo']
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# 智能集锦结果信息
|
1292
|
+
class HighlightsTaskResult < TencentCloud::Common::AbstractModel
|
1293
|
+
# @param Status: 编辑任务状态。
|
1294
|
+
# 1:执行中;2:成功;3:失败。
|
1295
|
+
# @type Status: Integer
|
1296
|
+
# @param ErrCode: 编辑任务失败错误码。
|
1297
|
+
# 0:成功;其他值:失败。
|
1298
|
+
# @type ErrCode: Integer
|
1299
|
+
# @param ErrMsg: 编辑任务失败错误描述。
|
1300
|
+
# @type ErrMsg: String
|
1301
|
+
# @param ItemSet: 智能集锦结果集。
|
1302
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1303
|
+
# @type ItemSet: Array
|
1304
|
+
|
1305
|
+
attr_accessor :Status, :ErrCode, :ErrMsg, :ItemSet
|
1306
|
+
|
1307
|
+
def initialize(status=nil, errcode=nil, errmsg=nil, itemset=nil)
|
1308
|
+
@Status = status
|
1309
|
+
@ErrCode = errcode
|
1310
|
+
@ErrMsg = errmsg
|
1311
|
+
@ItemSet = itemset
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
def deserialize(params)
|
1315
|
+
@Status = params['Status']
|
1316
|
+
@ErrCode = params['ErrCode']
|
1317
|
+
@ErrMsg = params['ErrMsg']
|
1318
|
+
unless params['ItemSet'].nil?
|
1319
|
+
@ItemSet = []
|
1320
|
+
params['ItemSet'].each do |i|
|
1321
|
+
highlightstaskresultitem_tmp = HighlightsTaskResultItem.new
|
1322
|
+
highlightstaskresultitem_tmp.deserialize(i)
|
1323
|
+
@ItemSet << highlightstaskresultitem_tmp
|
1324
|
+
end
|
1325
|
+
end
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# 智能集锦结果项
|
1330
|
+
class HighlightsTaskResultItem < TencentCloud::Common::AbstractModel
|
1331
|
+
# @param HighlightUrl: 智能集锦地址。
|
1332
|
+
# @type HighlightUrl: String
|
1333
|
+
# @param CovImgUrl: 智能集锦封面地址。
|
1334
|
+
# @type CovImgUrl: String
|
1335
|
+
# @param Confidence: 置信度,取值范围是 0 到 100。
|
1336
|
+
# @type Confidence: Float
|
1337
|
+
# @param Duration: 智能集锦持续时间,单位:秒。
|
1338
|
+
# @type Duration: Float
|
1339
|
+
# @param SegmentSet: 智能集锦子片段结果集,集锦片段由这些子片段拼接生成。
|
1340
|
+
# @type SegmentSet: Array
|
1341
|
+
|
1342
|
+
attr_accessor :HighlightUrl, :CovImgUrl, :Confidence, :Duration, :SegmentSet
|
1343
|
+
|
1344
|
+
def initialize(highlighturl=nil, covimgurl=nil, confidence=nil, duration=nil, segmentset=nil)
|
1345
|
+
@HighlightUrl = highlighturl
|
1346
|
+
@CovImgUrl = covimgurl
|
1347
|
+
@Confidence = confidence
|
1348
|
+
@Duration = duration
|
1349
|
+
@SegmentSet = segmentset
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
def deserialize(params)
|
1353
|
+
@HighlightUrl = params['HighlightUrl']
|
1354
|
+
@CovImgUrl = params['CovImgUrl']
|
1355
|
+
@Confidence = params['Confidence']
|
1356
|
+
@Duration = params['Duration']
|
1357
|
+
unless params['SegmentSet'].nil?
|
1358
|
+
@SegmentSet = []
|
1359
|
+
params['SegmentSet'].each do |i|
|
1360
|
+
highlightstaskresultitemsegment_tmp = HighlightsTaskResultItemSegment.new
|
1361
|
+
highlightstaskresultitemsegment_tmp.deserialize(i)
|
1362
|
+
@SegmentSet << highlightstaskresultitemsegment_tmp
|
1363
|
+
end
|
1364
|
+
end
|
1365
|
+
end
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
# 智能集锦结果片段
|
1369
|
+
class HighlightsTaskResultItemSegment < TencentCloud::Common::AbstractModel
|
1370
|
+
# @param Confidence: 置信度,取值范围是 0 到 100。
|
1371
|
+
# @type Confidence: Float
|
1372
|
+
# @param StartTimeOffset: 集锦片段起始的偏移时间,单位:秒。
|
1373
|
+
# @type StartTimeOffset: Float
|
1374
|
+
# @param EndTimeOffset: 集锦片段终止的偏移时间,单位:秒。
|
1375
|
+
# @type EndTimeOffset: Float
|
1376
|
+
|
1377
|
+
attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset
|
1378
|
+
|
1379
|
+
def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil)
|
1380
|
+
@Confidence = confidence
|
1381
|
+
@StartTimeOffset = starttimeoffset
|
1382
|
+
@EndTimeOffset = endtimeoffset
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
def deserialize(params)
|
1386
|
+
@Confidence = params['Confidence']
|
1387
|
+
@StartTimeOffset = params['StartTimeOffset']
|
1388
|
+
@EndTimeOffset = params['EndTimeOffset']
|
1389
|
+
end
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
# 周期时间点信息。
|
1393
|
+
class IntervalTime < TencentCloud::Common::AbstractModel
|
1394
|
+
# @param Interval: 间隔周期,单位ms
|
1395
|
+
# @type Interval: Integer
|
1396
|
+
# @param StartTime: 开始时间点,单位ms
|
1397
|
+
# @type StartTime: Integer
|
1398
|
+
|
1399
|
+
attr_accessor :Interval, :StartTime
|
1400
|
+
|
1401
|
+
def initialize(interval=nil, starttime=nil)
|
1402
|
+
@Interval = interval
|
1403
|
+
@StartTime = starttime
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
def deserialize(params)
|
1407
|
+
@Interval = params['Interval']
|
1408
|
+
@StartTime = params['StartTime']
|
1409
|
+
end
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
# 音频响度信息
|
1413
|
+
class LoudnessInfo < TencentCloud::Common::AbstractModel
|
1414
|
+
# @param Loudness: 音频整体响度
|
1415
|
+
# @type Loudness: Float
|
1416
|
+
# @param LoudnessRange: 音频响度范围
|
1417
|
+
# @type LoudnessRange: Float
|
1418
|
+
|
1419
|
+
attr_accessor :Loudness, :LoudnessRange
|
1420
|
+
|
1421
|
+
def initialize(loudness=nil, loudnessrange=nil)
|
1422
|
+
@Loudness = loudness
|
1423
|
+
@LoudnessRange = loudnessrange
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
def deserialize(params)
|
1427
|
+
@Loudness = params['Loudness']
|
1428
|
+
@LoudnessRange = params['LoudnessRange']
|
1429
|
+
end
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
# 低光照增强参数
|
1433
|
+
class LowLightEnhance < TencentCloud::Common::AbstractModel
|
1434
|
+
# @param Type: 低光照增强类型,可选项:normal。
|
1435
|
+
# @type Type: String
|
1436
|
+
|
1437
|
+
attr_accessor :Type
|
1438
|
+
|
1439
|
+
def initialize(type=nil)
|
1440
|
+
@Type = type
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
def deserialize(params)
|
1444
|
+
@Type = params['Type']
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# 编辑处理/剪切任务信息
|
1449
|
+
class MediaCuttingInfo < TencentCloud::Common::AbstractModel
|
1450
|
+
# @param TimeInfo: 截取时间信息。
|
1451
|
+
# @type TimeInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaCuttingTimeInfo`
|
1452
|
+
# @param TargetInfo: 输出结果信息。
|
1453
|
+
# @type TargetInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaTargetInfo`
|
1454
|
+
# @param OutForm: 截取结果形式信息。
|
1455
|
+
# @type OutForm: :class:`Tencentcloud::Ie.v20200304.models.MediaCuttingOutForm`
|
1456
|
+
# @param ResultListSaveType: 列表文件形式,存储到用户存储服务中,可选值:
|
1457
|
+
# UseSaveInfo:默认,结果列表和结果存储同一位置;
|
1458
|
+
# NoListFile:不存储结果列表。
|
1459
|
+
# @type ResultListSaveType: String
|
1460
|
+
|
1461
|
+
attr_accessor :TimeInfo, :TargetInfo, :OutForm, :ResultListSaveType
|
1462
|
+
|
1463
|
+
def initialize(timeinfo=nil, targetinfo=nil, outform=nil, resultlistsavetype=nil)
|
1464
|
+
@TimeInfo = timeinfo
|
1465
|
+
@TargetInfo = targetinfo
|
1466
|
+
@OutForm = outform
|
1467
|
+
@ResultListSaveType = resultlistsavetype
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
def deserialize(params)
|
1471
|
+
unless params['TimeInfo'].nil?
|
1472
|
+
@TimeInfo = MediaCuttingTimeInfo.new
|
1473
|
+
@TimeInfo.deserialize(params['TimeInfo'])
|
1474
|
+
end
|
1475
|
+
unless params['TargetInfo'].nil?
|
1476
|
+
@TargetInfo = MediaTargetInfo.new
|
1477
|
+
@TargetInfo.deserialize(params['TargetInfo'])
|
1478
|
+
end
|
1479
|
+
unless params['OutForm'].nil?
|
1480
|
+
@OutForm = MediaCuttingOutForm.new
|
1481
|
+
@OutForm.deserialize(params['OutForm'])
|
1482
|
+
end
|
1483
|
+
@ResultListSaveType = params['ResultListSaveType']
|
1484
|
+
end
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# 编辑处理/剪切任务/输出形式信息
|
1488
|
+
class MediaCuttingOutForm < TencentCloud::Common::AbstractModel
|
1489
|
+
# @param Type: 输出类型,可选值:
|
1490
|
+
# Static:静态图;
|
1491
|
+
# Dynamic:动态图;
|
1492
|
+
# Sprite:雪碧图;
|
1493
|
+
# Video:视频。
|
1494
|
+
|
1495
|
+
# 注1:不同类型时,对应的 TargetInfo.Format 格式支持如下:
|
1496
|
+
# Static:jpg、png;
|
1497
|
+
# Dynamic:gif;
|
1498
|
+
# Sprite:jpg、png;
|
1499
|
+
# Video:mp4。
|
1500
|
+
|
1501
|
+
# 注2:当 Type=Sprite时,TargetInfo指定的尺寸表示小图的大小,最终结果尺寸以输出为准。
|
1502
|
+
# @type Type: String
|
1503
|
+
# @param FillType: 背景填充方式,可选值:
|
1504
|
+
# White:白色填充;
|
1505
|
+
# Black:黑色填充;
|
1506
|
+
# Stretch:拉伸;
|
1507
|
+
# Gaussian:高斯模糊;
|
1508
|
+
# 默认White。
|
1509
|
+
# @type FillType: String
|
1510
|
+
# @param SpriteRowCount: Type=Sprite时有效,表示雪碧图行数,范围为 [1,200],默认100。
|
1511
|
+
# @type SpriteRowCount: Integer
|
1512
|
+
# @param SpriteColumnCount: Type=Sprite时有效,表示雪碧图列数,范围为 [1,200],默认100。
|
1513
|
+
# @type SpriteColumnCount: Integer
|
1514
|
+
|
1515
|
+
attr_accessor :Type, :FillType, :SpriteRowCount, :SpriteColumnCount
|
1516
|
+
|
1517
|
+
def initialize(type=nil, filltype=nil, spriterowcount=nil, spritecolumncount=nil)
|
1518
|
+
@Type = type
|
1519
|
+
@FillType = filltype
|
1520
|
+
@SpriteRowCount = spriterowcount
|
1521
|
+
@SpriteColumnCount = spritecolumncount
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
def deserialize(params)
|
1525
|
+
@Type = params['Type']
|
1526
|
+
@FillType = params['FillType']
|
1527
|
+
@SpriteRowCount = params['SpriteRowCount']
|
1528
|
+
@SpriteColumnCount = params['SpriteColumnCount']
|
1529
|
+
end
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# 编辑处理/剪切任务/处理结果
|
1533
|
+
class MediaCuttingTaskResult < TencentCloud::Common::AbstractModel
|
1534
|
+
# @param ListFile: 如果ResultListType不为NoListFile时,结果(TaskResultFile)列表文件的存储位置。
|
1535
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1536
|
+
# @type ListFile: :class:`Tencentcloud::Ie.v20200304.models.TaskResultFile`
|
1537
|
+
# @param ResultCount: 结果个数。
|
1538
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1539
|
+
# @type ResultCount: Integer
|
1540
|
+
# @param FirstFile: 第一个结果文件。
|
1541
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1542
|
+
# @type FirstFile: :class:`Tencentcloud::Ie.v20200304.models.TaskResultFile`
|
1543
|
+
# @param LastFile: 最后一个结果文件。
|
1544
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1545
|
+
# @type LastFile: :class:`Tencentcloud::Ie.v20200304.models.TaskResultFile`
|
1546
|
+
|
1547
|
+
attr_accessor :ListFile, :ResultCount, :FirstFile, :LastFile
|
1548
|
+
|
1549
|
+
def initialize(listfile=nil, resultcount=nil, firstfile=nil, lastfile=nil)
|
1550
|
+
@ListFile = listfile
|
1551
|
+
@ResultCount = resultcount
|
1552
|
+
@FirstFile = firstfile
|
1553
|
+
@LastFile = lastfile
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
def deserialize(params)
|
1557
|
+
unless params['ListFile'].nil?
|
1558
|
+
@ListFile = TaskResultFile.new
|
1559
|
+
@ListFile.deserialize(params['ListFile'])
|
1560
|
+
end
|
1561
|
+
@ResultCount = params['ResultCount']
|
1562
|
+
unless params['FirstFile'].nil?
|
1563
|
+
@FirstFile = TaskResultFile.new
|
1564
|
+
@FirstFile.deserialize(params['FirstFile'])
|
1565
|
+
end
|
1566
|
+
unless params['LastFile'].nil?
|
1567
|
+
@LastFile = TaskResultFile.new
|
1568
|
+
@LastFile.deserialize(params['LastFile'])
|
1569
|
+
end
|
1570
|
+
end
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
# 编辑处理/剪切任务/时间信息
|
1574
|
+
class MediaCuttingTimeInfo < TencentCloud::Common::AbstractModel
|
1575
|
+
# @param Type: 时间类型,可选值:
|
1576
|
+
# PointSet:时间点集合;
|
1577
|
+
# IntervalPoint:周期采样点;
|
1578
|
+
# SectionSet:时间片段集合。
|
1579
|
+
# @type Type: String
|
1580
|
+
# @param PointSet: 截取时间点集合,单位毫秒,Type=PointSet时必选。
|
1581
|
+
# @type PointSet: Array
|
1582
|
+
# @param IntervalPoint: 周期采样点信息,Type=IntervalPoint时必选。
|
1583
|
+
# @type IntervalPoint: :class:`Tencentcloud::Ie.v20200304.models.IntervalTime`
|
1584
|
+
# @param SectionSet: 时间区间集合信息,Type=SectionSet时必选。
|
1585
|
+
# @type SectionSet: Array
|
1586
|
+
|
1587
|
+
attr_accessor :Type, :PointSet, :IntervalPoint, :SectionSet
|
1588
|
+
|
1589
|
+
def initialize(type=nil, pointset=nil, intervalpoint=nil, sectionset=nil)
|
1590
|
+
@Type = type
|
1591
|
+
@PointSet = pointset
|
1592
|
+
@IntervalPoint = intervalpoint
|
1593
|
+
@SectionSet = sectionset
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
def deserialize(params)
|
1597
|
+
@Type = params['Type']
|
1598
|
+
@PointSet = params['PointSet']
|
1599
|
+
unless params['IntervalPoint'].nil?
|
1600
|
+
@IntervalPoint = IntervalTime.new
|
1601
|
+
@IntervalPoint.deserialize(params['IntervalPoint'])
|
1602
|
+
end
|
1603
|
+
unless params['SectionSet'].nil?
|
1604
|
+
@SectionSet = []
|
1605
|
+
params['SectionSet'].each do |i|
|
1606
|
+
sectiontime_tmp = SectionTime.new
|
1607
|
+
sectiontime_tmp.deserialize(i)
|
1608
|
+
@SectionSet << sectiontime_tmp
|
1609
|
+
end
|
1610
|
+
end
|
1611
|
+
end
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
# 编辑处理/拼接任务信息
|
1615
|
+
class MediaJoiningInfo < TencentCloud::Common::AbstractModel
|
1616
|
+
# @param TargetInfo: 输出目标信息,拼接只采用FileName和Format,用于指定目标文件名和格式。
|
1617
|
+
# 其中Format只支持mp4.
|
1618
|
+
# @type TargetInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaTargetInfo`
|
1619
|
+
|
1620
|
+
attr_accessor :TargetInfo
|
1621
|
+
|
1622
|
+
def initialize(targetinfo=nil)
|
1623
|
+
@TargetInfo = targetinfo
|
1624
|
+
end
|
1625
|
+
|
1626
|
+
def deserialize(params)
|
1627
|
+
unless params['TargetInfo'].nil?
|
1628
|
+
@TargetInfo = MediaTargetInfo.new
|
1629
|
+
@TargetInfo.deserialize(params['TargetInfo'])
|
1630
|
+
end
|
1631
|
+
end
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
# 编辑处理/拼接任务/处理结果
|
1635
|
+
class MediaJoiningTaskResult < TencentCloud::Common::AbstractModel
|
1636
|
+
# @param File: 拼接结果文件。
|
1637
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1638
|
+
# @type File: :class:`Tencentcloud::Ie.v20200304.models.TaskResultFile`
|
1639
|
+
|
1640
|
+
attr_accessor :File
|
1641
|
+
|
1642
|
+
def initialize(file=nil)
|
1643
|
+
@File = file
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
def deserialize(params)
|
1647
|
+
unless params['File'].nil?
|
1648
|
+
@File = TaskResultFile.new
|
1649
|
+
@File.deserialize(params['File'])
|
1650
|
+
end
|
1651
|
+
end
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
# 编辑处理/任务信息
|
1655
|
+
class MediaProcessInfo < TencentCloud::Common::AbstractModel
|
1656
|
+
# @param Type: 编辑处理任务类型,可选值:
|
1657
|
+
# MediaEditing:媒体编辑(待上线);
|
1658
|
+
# MediaCutting:媒体剪切;
|
1659
|
+
# MediaJoining:媒体拼接。
|
1660
|
+
# MediaRecognition: 媒体识别。
|
1661
|
+
# @type Type: String
|
1662
|
+
# @param MediaCuttingInfo: 视频剪切任务参数,Type=MediaCutting时必选。
|
1663
|
+
# @type MediaCuttingInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaCuttingInfo`
|
1664
|
+
# @param MediaJoiningInfo: 视频拼接任务参数,Type=MediaJoining时必选。
|
1665
|
+
# @type MediaJoiningInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaJoiningInfo`
|
1666
|
+
# @param MediaRecognitionInfo: 媒体识别任务参数,Type=MediaRecognition时必选
|
1667
|
+
# @type MediaRecognitionInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaRecognitionInfo`
|
1668
|
+
|
1669
|
+
attr_accessor :Type, :MediaCuttingInfo, :MediaJoiningInfo, :MediaRecognitionInfo
|
1670
|
+
|
1671
|
+
def initialize(type=nil, mediacuttinginfo=nil, mediajoininginfo=nil, mediarecognitioninfo=nil)
|
1672
|
+
@Type = type
|
1673
|
+
@MediaCuttingInfo = mediacuttinginfo
|
1674
|
+
@MediaJoiningInfo = mediajoininginfo
|
1675
|
+
@MediaRecognitionInfo = mediarecognitioninfo
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
def deserialize(params)
|
1679
|
+
@Type = params['Type']
|
1680
|
+
unless params['MediaCuttingInfo'].nil?
|
1681
|
+
@MediaCuttingInfo = MediaCuttingInfo.new
|
1682
|
+
@MediaCuttingInfo.deserialize(params['MediaCuttingInfo'])
|
1683
|
+
end
|
1684
|
+
unless params['MediaJoiningInfo'].nil?
|
1685
|
+
@MediaJoiningInfo = MediaJoiningInfo.new
|
1686
|
+
@MediaJoiningInfo.deserialize(params['MediaJoiningInfo'])
|
1687
|
+
end
|
1688
|
+
unless params['MediaRecognitionInfo'].nil?
|
1689
|
+
@MediaRecognitionInfo = MediaRecognitionInfo.new
|
1690
|
+
@MediaRecognitionInfo.deserialize(params['MediaRecognitionInfo'])
|
1691
|
+
end
|
1692
|
+
end
|
1693
|
+
end
|
1694
|
+
|
1695
|
+
# 编辑处理/任务处理结果
|
1696
|
+
class MediaProcessTaskResult < TencentCloud::Common::AbstractModel
|
1697
|
+
# @param TaskId: 编辑处理任务ID。
|
1698
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1699
|
+
# @type TaskId: String
|
1700
|
+
# @param Type: 编辑处理任务类型,取值:
|
1701
|
+
# MediaEditing:视频编辑(待上线);
|
1702
|
+
# MediaCutting:视频剪切;
|
1703
|
+
# MediaJoining:视频拼接。
|
1704
|
+
# MediaRecognition:媒体识别;
|
1705
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1706
|
+
# @type Type: String
|
1707
|
+
# @param Progress: 处理进度,范围:[0,100]
|
1708
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1709
|
+
# @type Progress: Integer
|
1710
|
+
# @param Status: 任务状态:
|
1711
|
+
# 1100:等待中;
|
1712
|
+
# 1200:执行中;
|
1713
|
+
# 2000:成功;
|
1714
|
+
# 5000:失败。
|
1715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1716
|
+
# @type Status: Integer
|
1717
|
+
# @param ErrCode: 任务错误码。
|
1718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1719
|
+
# @type ErrCode: Integer
|
1720
|
+
# @param ErrMsg: 任务错误信息。
|
1721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1722
|
+
# @type ErrMsg: String
|
1723
|
+
# @param MediaCuttingTaskResult: 剪切任务处理结果,当Type=MediaCutting时才有效。
|
1724
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1725
|
+
# @type MediaCuttingTaskResult: :class:`Tencentcloud::Ie.v20200304.models.MediaCuttingTaskResult`
|
1726
|
+
# @param MediaJoiningTaskResult: 拼接任务处理结果,当Type=MediaJoining时才有效。
|
1727
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1728
|
+
# @type MediaJoiningTaskResult: :class:`Tencentcloud::Ie.v20200304.models.MediaJoiningTaskResult`
|
1729
|
+
# @param MediaRecognitionTaskResult: 媒体识别任务处理结果,当Type=MediaRecognition时才有效。
|
1730
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1731
|
+
# @type MediaRecognitionTaskResult: :class:`Tencentcloud::Ie.v20200304.models.MediaRecognitionTaskResult`
|
1732
|
+
|
1733
|
+
attr_accessor :TaskId, :Type, :Progress, :Status, :ErrCode, :ErrMsg, :MediaCuttingTaskResult, :MediaJoiningTaskResult, :MediaRecognitionTaskResult
|
1734
|
+
|
1735
|
+
def initialize(taskid=nil, type=nil, progress=nil, status=nil, errcode=nil, errmsg=nil, mediacuttingtaskresult=nil, mediajoiningtaskresult=nil, mediarecognitiontaskresult=nil)
|
1736
|
+
@TaskId = taskid
|
1737
|
+
@Type = type
|
1738
|
+
@Progress = progress
|
1739
|
+
@Status = status
|
1740
|
+
@ErrCode = errcode
|
1741
|
+
@ErrMsg = errmsg
|
1742
|
+
@MediaCuttingTaskResult = mediacuttingtaskresult
|
1743
|
+
@MediaJoiningTaskResult = mediajoiningtaskresult
|
1744
|
+
@MediaRecognitionTaskResult = mediarecognitiontaskresult
|
1745
|
+
end
|
1746
|
+
|
1747
|
+
def deserialize(params)
|
1748
|
+
@TaskId = params['TaskId']
|
1749
|
+
@Type = params['Type']
|
1750
|
+
@Progress = params['Progress']
|
1751
|
+
@Status = params['Status']
|
1752
|
+
@ErrCode = params['ErrCode']
|
1753
|
+
@ErrMsg = params['ErrMsg']
|
1754
|
+
unless params['MediaCuttingTaskResult'].nil?
|
1755
|
+
@MediaCuttingTaskResult = MediaCuttingTaskResult.new
|
1756
|
+
@MediaCuttingTaskResult.deserialize(params['MediaCuttingTaskResult'])
|
1757
|
+
end
|
1758
|
+
unless params['MediaJoiningTaskResult'].nil?
|
1759
|
+
@MediaJoiningTaskResult = MediaJoiningTaskResult.new
|
1760
|
+
@MediaJoiningTaskResult.deserialize(params['MediaJoiningTaskResult'])
|
1761
|
+
end
|
1762
|
+
unless params['MediaRecognitionTaskResult'].nil?
|
1763
|
+
@MediaRecognitionTaskResult = MediaRecognitionTaskResult.new
|
1764
|
+
@MediaRecognitionTaskResult.deserialize(params['MediaRecognitionTaskResult'])
|
1765
|
+
end
|
1766
|
+
end
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
# 画质重生任务结果
|
1770
|
+
class MediaQualityRestorationTaskResult < TencentCloud::Common::AbstractModel
|
1771
|
+
# @param TaskId: 画质重生任务ID
|
1772
|
+
# @type TaskId: String
|
1773
|
+
# @param SubTaskResult: 画质重生处理后文件的详细信息。
|
1774
|
+
# @type SubTaskResult: Array
|
1775
|
+
|
1776
|
+
attr_accessor :TaskId, :SubTaskResult
|
1777
|
+
|
1778
|
+
def initialize(taskid=nil, subtaskresult=nil)
|
1779
|
+
@TaskId = taskid
|
1780
|
+
@SubTaskResult = subtaskresult
|
1781
|
+
end
|
1782
|
+
|
1783
|
+
def deserialize(params)
|
1784
|
+
@TaskId = params['TaskId']
|
1785
|
+
unless params['SubTaskResult'].nil?
|
1786
|
+
@SubTaskResult = []
|
1787
|
+
params['SubTaskResult'].each do |i|
|
1788
|
+
subtaskresultitem_tmp = SubTaskResultItem.new
|
1789
|
+
subtaskresultitem_tmp.deserialize(i)
|
1790
|
+
@SubTaskResult << subtaskresultitem_tmp
|
1791
|
+
end
|
1792
|
+
end
|
1793
|
+
end
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
# 媒体识别任务参数
|
1797
|
+
class MediaRecognitionInfo < TencentCloud::Common::AbstractModel
|
1798
|
+
# @param FrameTagRec: 帧标签识别
|
1799
|
+
# @type FrameTagRec: :class:`Tencentcloud::Ie.v20200304.models.FrameTagRec`
|
1800
|
+
# @param SubtitleRec: 语音字幕识别
|
1801
|
+
# @type SubtitleRec: :class:`Tencentcloud::Ie.v20200304.models.SubtitleRec`
|
1802
|
+
|
1803
|
+
attr_accessor :FrameTagRec, :SubtitleRec
|
1804
|
+
|
1805
|
+
def initialize(frametagrec=nil, subtitlerec=nil)
|
1806
|
+
@FrameTagRec = frametagrec
|
1807
|
+
@SubtitleRec = subtitlerec
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
def deserialize(params)
|
1811
|
+
unless params['FrameTagRec'].nil?
|
1812
|
+
@FrameTagRec = FrameTagRec.new
|
1813
|
+
@FrameTagRec.deserialize(params['FrameTagRec'])
|
1814
|
+
end
|
1815
|
+
unless params['SubtitleRec'].nil?
|
1816
|
+
@SubtitleRec = SubtitleRec.new
|
1817
|
+
@SubtitleRec.deserialize(params['SubtitleRec'])
|
1818
|
+
end
|
1819
|
+
end
|
1820
|
+
end
|
1821
|
+
|
1822
|
+
# 媒体识别任务处理结果
|
1823
|
+
class MediaRecognitionTaskResult < TencentCloud::Common::AbstractModel
|
1824
|
+
# @param FrameTagResults: 帧标签识别结果
|
1825
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1826
|
+
# @type FrameTagResults: :class:`Tencentcloud::Ie.v20200304.models.FrameTagResult`
|
1827
|
+
# @param SubtitleResults: 语音字幕识别结果
|
1828
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1829
|
+
# @type SubtitleResults: :class:`Tencentcloud::Ie.v20200304.models.SubtitleResult`
|
1830
|
+
|
1831
|
+
attr_accessor :FrameTagResults, :SubtitleResults
|
1832
|
+
|
1833
|
+
def initialize(frametagresults=nil, subtitleresults=nil)
|
1834
|
+
@FrameTagResults = frametagresults
|
1835
|
+
@SubtitleResults = subtitleresults
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
def deserialize(params)
|
1839
|
+
unless params['FrameTagResults'].nil?
|
1840
|
+
@FrameTagResults = FrameTagResult.new
|
1841
|
+
@FrameTagResults.deserialize(params['FrameTagResults'])
|
1842
|
+
end
|
1843
|
+
unless params['SubtitleResults'].nil?
|
1844
|
+
@SubtitleResults = SubtitleResult.new
|
1845
|
+
@SubtitleResults.deserialize(params['SubtitleResults'])
|
1846
|
+
end
|
1847
|
+
end
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# 结果文件媒体信息
|
1851
|
+
class MediaResultInfo < TencentCloud::Common::AbstractModel
|
1852
|
+
# @param Duration: 媒体时长,单位:毫秒
|
1853
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1854
|
+
# @type Duration: Integer
|
1855
|
+
# @param ResultVideoInfoSet: 视频流信息
|
1856
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1857
|
+
# @type ResultVideoInfoSet: Array
|
1858
|
+
# @param ResultAudioInfoSet: 音频流信息
|
1859
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1860
|
+
# @type ResultAudioInfoSet: Array
|
1861
|
+
|
1862
|
+
attr_accessor :Duration, :ResultVideoInfoSet, :ResultAudioInfoSet
|
1863
|
+
|
1864
|
+
def initialize(duration=nil, resultvideoinfoset=nil, resultaudioinfoset=nil)
|
1865
|
+
@Duration = duration
|
1866
|
+
@ResultVideoInfoSet = resultvideoinfoset
|
1867
|
+
@ResultAudioInfoSet = resultaudioinfoset
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
def deserialize(params)
|
1871
|
+
@Duration = params['Duration']
|
1872
|
+
unless params['ResultVideoInfoSet'].nil?
|
1873
|
+
@ResultVideoInfoSet = []
|
1874
|
+
params['ResultVideoInfoSet'].each do |i|
|
1875
|
+
resultvideoinfo_tmp = ResultVideoInfo.new
|
1876
|
+
resultvideoinfo_tmp.deserialize(i)
|
1877
|
+
@ResultVideoInfoSet << resultvideoinfo_tmp
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
unless params['ResultAudioInfoSet'].nil?
|
1881
|
+
@ResultAudioInfoSet = []
|
1882
|
+
params['ResultAudioInfoSet'].each do |i|
|
1883
|
+
resultaudioinfo_tmp = ResultAudioInfo.new
|
1884
|
+
resultaudioinfo_tmp.deserialize(i)
|
1885
|
+
@ResultAudioInfoSet << resultaudioinfo_tmp
|
1886
|
+
end
|
1887
|
+
end
|
1888
|
+
end
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
# 编辑处理的媒体源
|
1892
|
+
class MediaSourceInfo < TencentCloud::Common::AbstractModel
|
1893
|
+
# @param DownInfo: 媒体源资源下载信息。
|
1894
|
+
# @type DownInfo: :class:`Tencentcloud::Ie.v20200304.models.DownInfo`
|
1895
|
+
# @param Id: 媒体源ID标记,用于多个输入源时,请内媒体源的定位,对于多输入的任务,一般要求必选。
|
1896
|
+
# ID只能包含字母、数字、下划线、中划线,长读不能超过128。
|
1897
|
+
# @type Id: String
|
1898
|
+
# @param Type: 媒体源类型,具体类型如下:
|
1899
|
+
# Video:视频
|
1900
|
+
# Image:图片
|
1901
|
+
# Audio:音频
|
1902
|
+
# @type Type: String
|
1903
|
+
|
1904
|
+
attr_accessor :DownInfo, :Id, :Type
|
1905
|
+
|
1906
|
+
def initialize(downinfo=nil, id=nil, type=nil)
|
1907
|
+
@DownInfo = downinfo
|
1908
|
+
@Id = id
|
1909
|
+
@Type = type
|
1910
|
+
end
|
1911
|
+
|
1912
|
+
def deserialize(params)
|
1913
|
+
unless params['DownInfo'].nil?
|
1914
|
+
@DownInfo = DownInfo.new
|
1915
|
+
@DownInfo.deserialize(params['DownInfo'])
|
1916
|
+
end
|
1917
|
+
@Id = params['Id']
|
1918
|
+
@Type = params['Type']
|
1919
|
+
end
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
# 目标媒体信息。
|
1923
|
+
class MediaTargetInfo < TencentCloud::Common::AbstractModel
|
1924
|
+
# @param FileName: 目标文件名,不能带特殊字符(如/等),无需后缀名,最长200字符。
|
1925
|
+
|
1926
|
+
# 注1:部分子服务支持占位符,形式为: {parameter}
|
1927
|
+
# 预设parameter有:
|
1928
|
+
# index:序号;
|
1929
|
+
# @type FileName: String
|
1930
|
+
# @param Format: 媒体封装格式,最长5字符,具体格式支持根据子任务确定。
|
1931
|
+
# @type Format: String
|
1932
|
+
# @param TargetVideoInfo: 视频流信息。
|
1933
|
+
# @type TargetVideoInfo: :class:`Tencentcloud::Ie.v20200304.models.TargetVideoInfo`
|
1934
|
+
# @param ResultListSaveType: 【不再使用】 对于多输出任务,部分子服务推荐结果信息以列表文件形式,存储到用户存储服务中,可选值:
|
1935
|
+
# UseSaveInfo:默认,结果列表和结果存储同一位置;
|
1936
|
+
# NoListFile:不存储结果列表。
|
1937
|
+
# @type ResultListSaveType: String
|
1938
|
+
|
1939
|
+
attr_accessor :FileName, :Format, :TargetVideoInfo, :ResultListSaveType
|
1940
|
+
|
1941
|
+
def initialize(filename=nil, format=nil, targetvideoinfo=nil, resultlistsavetype=nil)
|
1942
|
+
@FileName = filename
|
1943
|
+
@Format = format
|
1944
|
+
@TargetVideoInfo = targetvideoinfo
|
1945
|
+
@ResultListSaveType = resultlistsavetype
|
1946
|
+
end
|
1947
|
+
|
1948
|
+
def deserialize(params)
|
1949
|
+
@FileName = params['FileName']
|
1950
|
+
@Format = params['Format']
|
1951
|
+
unless params['TargetVideoInfo'].nil?
|
1952
|
+
@TargetVideoInfo = TargetVideoInfo.new
|
1953
|
+
@TargetVideoInfo.deserialize(params['TargetVideoInfo'])
|
1954
|
+
end
|
1955
|
+
@ResultListSaveType = params['ResultListSaveType']
|
1956
|
+
end
|
1957
|
+
end
|
1958
|
+
|
1959
|
+
# 流封装信息
|
1960
|
+
class MuxInfo < TencentCloud::Common::AbstractModel
|
1961
|
+
# @param DeleteStream: 删除流,可选项:video,audio。
|
1962
|
+
# @type DeleteStream: String
|
1963
|
+
# @param FlvFlags: Flv 参数,目前支持add_keyframe_index
|
1964
|
+
# @type FlvFlags: String
|
1965
|
+
|
1966
|
+
attr_accessor :DeleteStream, :FlvFlags
|
1967
|
+
|
1968
|
+
def initialize(deletestream=nil, flvflags=nil)
|
1969
|
+
@DeleteStream = deletestream
|
1970
|
+
@FlvFlags = flvflags
|
1971
|
+
end
|
1972
|
+
|
1973
|
+
def deserialize(params)
|
1974
|
+
@DeleteStream = params['DeleteStream']
|
1975
|
+
@FlvFlags = params['FlvFlags']
|
1976
|
+
end
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
# 片头片尾识别任务参数信息
|
1980
|
+
class OpeningEndingEditingInfo < TencentCloud::Common::AbstractModel
|
1981
|
+
# @param Switch: 是否开启片头片尾识别。0为关闭,1为开启。其他非0非1值默认为0。
|
1982
|
+
# @type Switch: Integer
|
1983
|
+
# @param CustomInfo: 额外定制化服务参数。参数为序列化的Json字符串,例如:{"k1":"v1"}。
|
1984
|
+
# @type CustomInfo: String
|
1985
|
+
|
1986
|
+
attr_accessor :Switch, :CustomInfo
|
1987
|
+
|
1988
|
+
def initialize(switch=nil, custominfo=nil)
|
1989
|
+
@Switch = switch
|
1990
|
+
@CustomInfo = custominfo
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
def deserialize(params)
|
1994
|
+
@Switch = params['Switch']
|
1995
|
+
@CustomInfo = params['CustomInfo']
|
1996
|
+
end
|
1997
|
+
end
|
1998
|
+
|
1999
|
+
# 片头片尾识别结果信息
|
2000
|
+
class OpeningEndingTaskResult < TencentCloud::Common::AbstractModel
|
2001
|
+
# @param Status: 编辑任务状态。
|
2002
|
+
# 1:执行中;2:成功;3:失败。
|
2003
|
+
# @type Status: Integer
|
2004
|
+
# @param ErrCode: 编辑任务失败错误码。
|
2005
|
+
# 0:成功;其他值:失败。
|
2006
|
+
# @type ErrCode: Integer
|
2007
|
+
# @param ErrMsg: 编辑任务失败错误描述。
|
2008
|
+
# @type ErrMsg: String
|
2009
|
+
# @param Item: 片头片尾识别结果项。
|
2010
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2011
|
+
# @type Item: :class:`Tencentcloud::Ie.v20200304.models.OpeningEndingTaskResultItem`
|
2012
|
+
|
2013
|
+
attr_accessor :Status, :ErrCode, :ErrMsg, :Item
|
2014
|
+
|
2015
|
+
def initialize(status=nil, errcode=nil, errmsg=nil, item=nil)
|
2016
|
+
@Status = status
|
2017
|
+
@ErrCode = errcode
|
2018
|
+
@ErrMsg = errmsg
|
2019
|
+
@Item = item
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
def deserialize(params)
|
2023
|
+
@Status = params['Status']
|
2024
|
+
@ErrCode = params['ErrCode']
|
2025
|
+
@ErrMsg = params['ErrMsg']
|
2026
|
+
unless params['Item'].nil?
|
2027
|
+
@Item = OpeningEndingTaskResultItem.new
|
2028
|
+
@Item.deserialize(params['Item'])
|
2029
|
+
end
|
2030
|
+
end
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
# 片头片尾识别结果项
|
2034
|
+
class OpeningEndingTaskResultItem < TencentCloud::Common::AbstractModel
|
2035
|
+
# @param OpeningTimeOffset: 视频片头的结束时间点,单位:秒。
|
2036
|
+
# @type OpeningTimeOffset: Float
|
2037
|
+
# @param OpeningConfidence: 片头识别置信度,取值范围是 0 到 100。
|
2038
|
+
# @type OpeningConfidence: Float
|
2039
|
+
# @param EndingTimeOffset: 视频片尾的开始时间点,单位:秒。
|
2040
|
+
# @type EndingTimeOffset: Float
|
2041
|
+
# @param EndingConfidence: 片尾识别置信度,取值范围是 0 到 100。
|
2042
|
+
# @type EndingConfidence: Float
|
2043
|
+
|
2044
|
+
attr_accessor :OpeningTimeOffset, :OpeningConfidence, :EndingTimeOffset, :EndingConfidence
|
2045
|
+
|
2046
|
+
def initialize(openingtimeoffset=nil, openingconfidence=nil, endingtimeoffset=nil, endingconfidence=nil)
|
2047
|
+
@OpeningTimeOffset = openingtimeoffset
|
2048
|
+
@OpeningConfidence = openingconfidence
|
2049
|
+
@EndingTimeOffset = endingtimeoffset
|
2050
|
+
@EndingConfidence = endingconfidence
|
2051
|
+
end
|
2052
|
+
|
2053
|
+
def deserialize(params)
|
2054
|
+
@OpeningTimeOffset = params['OpeningTimeOffset']
|
2055
|
+
@OpeningConfidence = params['OpeningConfidence']
|
2056
|
+
@EndingTimeOffset = params['EndingTimeOffset']
|
2057
|
+
@EndingConfidence = params['EndingConfidence']
|
2058
|
+
end
|
2059
|
+
end
|
2060
|
+
|
2061
|
+
# 图片水印信息
|
2062
|
+
class PicMarkInfoItem < TencentCloud::Common::AbstractModel
|
2063
|
+
# @param PosX: 图片水印的X坐标。
|
2064
|
+
# @type PosX: Integer
|
2065
|
+
# @param PosY: 图片水印的Y坐标 。
|
2066
|
+
# @type PosY: Integer
|
2067
|
+
# @param Path: 图片水印路径,,如果不从Cos拉取水印,则必填
|
2068
|
+
# @type Path: String
|
2069
|
+
# @param CosInfo: 图片水印的Cos 信息,从Cos上拉取图片水印时必填。
|
2070
|
+
# @type CosInfo: :class:`Tencentcloud::Ie.v20200304.models.CosInfo`
|
2071
|
+
# @param Width: 图片水印宽度,不填为图片原始宽度。
|
2072
|
+
# @type Width: Integer
|
2073
|
+
# @param Height: 图片水印高度,不填为图片原始高度。
|
2074
|
+
# @type Height: Integer
|
2075
|
+
# @param StartTime: 添加图片水印的开始时间,单位:ms。
|
2076
|
+
# @type StartTime: Integer
|
2077
|
+
# @param EndTime: 添加图片水印的结束时间,单位:ms。
|
2078
|
+
# @type EndTime: Integer
|
2079
|
+
|
2080
|
+
attr_accessor :PosX, :PosY, :Path, :CosInfo, :Width, :Height, :StartTime, :EndTime
|
2081
|
+
|
2082
|
+
def initialize(posx=nil, posy=nil, path=nil, cosinfo=nil, width=nil, height=nil, starttime=nil, endtime=nil)
|
2083
|
+
@PosX = posx
|
2084
|
+
@PosY = posy
|
2085
|
+
@Path = path
|
2086
|
+
@CosInfo = cosinfo
|
2087
|
+
@Width = width
|
2088
|
+
@Height = height
|
2089
|
+
@StartTime = starttime
|
2090
|
+
@EndTime = endtime
|
2091
|
+
end
|
2092
|
+
|
2093
|
+
def deserialize(params)
|
2094
|
+
@PosX = params['PosX']
|
2095
|
+
@PosY = params['PosY']
|
2096
|
+
@Path = params['Path']
|
2097
|
+
unless params['CosInfo'].nil?
|
2098
|
+
@CosInfo = CosInfo.new
|
2099
|
+
@CosInfo.deserialize(params['CosInfo'])
|
2100
|
+
end
|
2101
|
+
@Width = params['Width']
|
2102
|
+
@Height = params['Height']
|
2103
|
+
@StartTime = params['StartTime']
|
2104
|
+
@EndTime = params['EndTime']
|
2105
|
+
end
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
# 媒体质检任务参数信息
|
2109
|
+
class QualityControlInfo < TencentCloud::Common::AbstractModel
|
2110
|
+
# @param Interval: 对流进行截图的间隔ms,默认1000ms
|
2111
|
+
# @type Interval: Integer
|
2112
|
+
# @param VideoShot: 是否保存截图
|
2113
|
+
# @type VideoShot: Boolean
|
2114
|
+
# @param Jitter: 是否检测抖动重影
|
2115
|
+
# @type Jitter: Boolean
|
2116
|
+
# @param Blur: 是否检测模糊
|
2117
|
+
# @type Blur: Boolean
|
2118
|
+
# @param AbnormalLighting: 是否检测低光照、过曝
|
2119
|
+
# @type AbnormalLighting: Boolean
|
2120
|
+
# @param CrashScreen: 是否检测花屏
|
2121
|
+
# @type CrashScreen: Boolean
|
2122
|
+
# @param BlackWhiteEdge: 是否检测黑边、白边、黑屏、白屏、绿屏
|
2123
|
+
# @type BlackWhiteEdge: Boolean
|
2124
|
+
# @param Noise: 是否检测噪点
|
2125
|
+
# @type Noise: Boolean
|
2126
|
+
# @param Mosaic: 是否检测马赛克
|
2127
|
+
# @type Mosaic: Boolean
|
2128
|
+
# @param QRCode: 是否检测二维码,包括小程序码、条形码
|
2129
|
+
# @type QRCode: Boolean
|
2130
|
+
# @param QualityEvaluation: 是否开启画面质量评价
|
2131
|
+
# @type QualityEvaluation: Boolean
|
2132
|
+
# @param QualityEvalScore: 画面质量评价过滤阈值,结果只返回低于阈值的时间段,默认60
|
2133
|
+
# @type QualityEvalScore: Integer
|
2134
|
+
# @param Voice: 是否检测视频音频,包含静音、低音、爆音
|
2135
|
+
# @type Voice: Boolean
|
2136
|
+
|
2137
|
+
attr_accessor :Interval, :VideoShot, :Jitter, :Blur, :AbnormalLighting, :CrashScreen, :BlackWhiteEdge, :Noise, :Mosaic, :QRCode, :QualityEvaluation, :QualityEvalScore, :Voice
|
2138
|
+
|
2139
|
+
def initialize(interval=nil, videoshot=nil, jitter=nil, blur=nil, abnormallighting=nil, crashscreen=nil, blackwhiteedge=nil, noise=nil, mosaic=nil, qrcode=nil, qualityevaluation=nil, qualityevalscore=nil, voice=nil)
|
2140
|
+
@Interval = interval
|
2141
|
+
@VideoShot = videoshot
|
2142
|
+
@Jitter = jitter
|
2143
|
+
@Blur = blur
|
2144
|
+
@AbnormalLighting = abnormallighting
|
2145
|
+
@CrashScreen = crashscreen
|
2146
|
+
@BlackWhiteEdge = blackwhiteedge
|
2147
|
+
@Noise = noise
|
2148
|
+
@Mosaic = mosaic
|
2149
|
+
@QRCode = qrcode
|
2150
|
+
@QualityEvaluation = qualityevaluation
|
2151
|
+
@QualityEvalScore = qualityevalscore
|
2152
|
+
@Voice = voice
|
2153
|
+
end
|
2154
|
+
|
2155
|
+
def deserialize(params)
|
2156
|
+
@Interval = params['Interval']
|
2157
|
+
@VideoShot = params['VideoShot']
|
2158
|
+
@Jitter = params['Jitter']
|
2159
|
+
@Blur = params['Blur']
|
2160
|
+
@AbnormalLighting = params['AbnormalLighting']
|
2161
|
+
@CrashScreen = params['CrashScreen']
|
2162
|
+
@BlackWhiteEdge = params['BlackWhiteEdge']
|
2163
|
+
@Noise = params['Noise']
|
2164
|
+
@Mosaic = params['Mosaic']
|
2165
|
+
@QRCode = params['QRCode']
|
2166
|
+
@QualityEvaluation = params['QualityEvaluation']
|
2167
|
+
@QualityEvalScore = params['QualityEvalScore']
|
2168
|
+
@Voice = params['Voice']
|
2169
|
+
end
|
2170
|
+
end
|
2171
|
+
|
2172
|
+
# 媒体质检结果信息
|
2173
|
+
class QualityControlInfoTaskResult < TencentCloud::Common::AbstractModel
|
2174
|
+
# @param TaskId: 质检任务 ID
|
2175
|
+
# @type TaskId: String
|
2176
|
+
# @param Status: 质检任务状态。
|
2177
|
+
# 1:执行中;2:成功;3:失败
|
2178
|
+
# @type Status: Integer
|
2179
|
+
# @param Progress: 表示处理进度百分比
|
2180
|
+
# @type Progress: Integer
|
2181
|
+
# @param UsedTime: 处理时长(s)
|
2182
|
+
# @type UsedTime: Integer
|
2183
|
+
# @param Duration: 计费时长(s)
|
2184
|
+
# @type Duration: Integer
|
2185
|
+
# @param NoAudio: 为true时表示视频无音频轨
|
2186
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2187
|
+
# @type NoAudio: Boolean
|
2188
|
+
# @param NoVideo: 为true时表示视频无视频轨
|
2189
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2190
|
+
# @type NoVideo: Boolean
|
2191
|
+
# @param QualityEvaluationScore: 视频无参考质量打分,百分制
|
2192
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2193
|
+
# @type QualityEvaluationScore: Integer
|
2194
|
+
# @param QualityEvaluationResults: 视频画面无参考评分低于阈值的时间段
|
2195
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2196
|
+
# @type QualityEvaluationResults: Array
|
2197
|
+
# @param JitterResults: 视频画面抖动时间段
|
2198
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2199
|
+
# @type JitterResults: Array
|
2200
|
+
# @param BlurResults: 视频画面模糊时间段
|
2201
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2202
|
+
# @type BlurResults: Array
|
2203
|
+
# @param AbnormalLightingResults: 视频画面低光、过曝时间段
|
2204
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2205
|
+
# @type AbnormalLightingResults: Array
|
2206
|
+
# @param CrashScreenResults: 视频画面花屏时间段
|
2207
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2208
|
+
# @type CrashScreenResults: Array
|
2209
|
+
# @param BlackWhiteEdgeResults: 视频画面黑边、白边、黑屏、白屏、纯色屏时间段
|
2210
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2211
|
+
# @type BlackWhiteEdgeResults: Array
|
2212
|
+
# @param NoiseResults: 视频画面有噪点时间段
|
2213
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2214
|
+
# @type NoiseResults: Array
|
2215
|
+
# @param MosaicResults: 视频画面有马赛克时间段
|
2216
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2217
|
+
# @type MosaicResults: Array
|
2218
|
+
# @param QRCodeResults: 视频画面有二维码的时间段,包括小程序码、条形码
|
2219
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2220
|
+
# @type QRCodeResults: Array
|
2221
|
+
# @param VoiceResults: 视频音频异常时间段,包括静音、低音、爆音
|
2222
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2223
|
+
# @type VoiceResults: Array
|
2224
|
+
# @param ErrCode: 任务错误码
|
2225
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2226
|
+
# @type ErrCode: Integer
|
2227
|
+
# @param ErrMsg: 任务错误信息
|
2228
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2229
|
+
# @type ErrMsg: String
|
2230
|
+
|
2231
|
+
attr_accessor :TaskId, :Status, :Progress, :UsedTime, :Duration, :NoAudio, :NoVideo, :QualityEvaluationScore, :QualityEvaluationResults, :JitterResults, :BlurResults, :AbnormalLightingResults, :CrashScreenResults, :BlackWhiteEdgeResults, :NoiseResults, :MosaicResults, :QRCodeResults, :VoiceResults, :ErrCode, :ErrMsg
|
2232
|
+
|
2233
|
+
def initialize(taskid=nil, status=nil, progress=nil, usedtime=nil, duration=nil, noaudio=nil, novideo=nil, qualityevaluationscore=nil, qualityevaluationresults=nil, jitterresults=nil, blurresults=nil, abnormallightingresults=nil, crashscreenresults=nil, blackwhiteedgeresults=nil, noiseresults=nil, mosaicresults=nil, qrcoderesults=nil, voiceresults=nil, errcode=nil, errmsg=nil)
|
2234
|
+
@TaskId = taskid
|
2235
|
+
@Status = status
|
2236
|
+
@Progress = progress
|
2237
|
+
@UsedTime = usedtime
|
2238
|
+
@Duration = duration
|
2239
|
+
@NoAudio = noaudio
|
2240
|
+
@NoVideo = novideo
|
2241
|
+
@QualityEvaluationScore = qualityevaluationscore
|
2242
|
+
@QualityEvaluationResults = qualityevaluationresults
|
2243
|
+
@JitterResults = jitterresults
|
2244
|
+
@BlurResults = blurresults
|
2245
|
+
@AbnormalLightingResults = abnormallightingresults
|
2246
|
+
@CrashScreenResults = crashscreenresults
|
2247
|
+
@BlackWhiteEdgeResults = blackwhiteedgeresults
|
2248
|
+
@NoiseResults = noiseresults
|
2249
|
+
@MosaicResults = mosaicresults
|
2250
|
+
@QRCodeResults = qrcoderesults
|
2251
|
+
@VoiceResults = voiceresults
|
2252
|
+
@ErrCode = errcode
|
2253
|
+
@ErrMsg = errmsg
|
2254
|
+
end
|
2255
|
+
|
2256
|
+
def deserialize(params)
|
2257
|
+
@TaskId = params['TaskId']
|
2258
|
+
@Status = params['Status']
|
2259
|
+
@Progress = params['Progress']
|
2260
|
+
@UsedTime = params['UsedTime']
|
2261
|
+
@Duration = params['Duration']
|
2262
|
+
@NoAudio = params['NoAudio']
|
2263
|
+
@NoVideo = params['NoVideo']
|
2264
|
+
@QualityEvaluationScore = params['QualityEvaluationScore']
|
2265
|
+
unless params['QualityEvaluationResults'].nil?
|
2266
|
+
@QualityEvaluationResults = []
|
2267
|
+
params['QualityEvaluationResults'].each do |i|
|
2268
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2269
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2270
|
+
@QualityEvaluationResults << qualitycontrolresultitems_tmp
|
2271
|
+
end
|
2272
|
+
end
|
2273
|
+
unless params['JitterResults'].nil?
|
2274
|
+
@JitterResults = []
|
2275
|
+
params['JitterResults'].each do |i|
|
2276
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2277
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2278
|
+
@JitterResults << qualitycontrolresultitems_tmp
|
2279
|
+
end
|
2280
|
+
end
|
2281
|
+
unless params['BlurResults'].nil?
|
2282
|
+
@BlurResults = []
|
2283
|
+
params['BlurResults'].each do |i|
|
2284
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2285
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2286
|
+
@BlurResults << qualitycontrolresultitems_tmp
|
2287
|
+
end
|
2288
|
+
end
|
2289
|
+
unless params['AbnormalLightingResults'].nil?
|
2290
|
+
@AbnormalLightingResults = []
|
2291
|
+
params['AbnormalLightingResults'].each do |i|
|
2292
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2293
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2294
|
+
@AbnormalLightingResults << qualitycontrolresultitems_tmp
|
2295
|
+
end
|
2296
|
+
end
|
2297
|
+
unless params['CrashScreenResults'].nil?
|
2298
|
+
@CrashScreenResults = []
|
2299
|
+
params['CrashScreenResults'].each do |i|
|
2300
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2301
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2302
|
+
@CrashScreenResults << qualitycontrolresultitems_tmp
|
2303
|
+
end
|
2304
|
+
end
|
2305
|
+
unless params['BlackWhiteEdgeResults'].nil?
|
2306
|
+
@BlackWhiteEdgeResults = []
|
2307
|
+
params['BlackWhiteEdgeResults'].each do |i|
|
2308
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2309
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2310
|
+
@BlackWhiteEdgeResults << qualitycontrolresultitems_tmp
|
2311
|
+
end
|
2312
|
+
end
|
2313
|
+
unless params['NoiseResults'].nil?
|
2314
|
+
@NoiseResults = []
|
2315
|
+
params['NoiseResults'].each do |i|
|
2316
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2317
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2318
|
+
@NoiseResults << qualitycontrolresultitems_tmp
|
2319
|
+
end
|
2320
|
+
end
|
2321
|
+
unless params['MosaicResults'].nil?
|
2322
|
+
@MosaicResults = []
|
2323
|
+
params['MosaicResults'].each do |i|
|
2324
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2325
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2326
|
+
@MosaicResults << qualitycontrolresultitems_tmp
|
2327
|
+
end
|
2328
|
+
end
|
2329
|
+
unless params['QRCodeResults'].nil?
|
2330
|
+
@QRCodeResults = []
|
2331
|
+
params['QRCodeResults'].each do |i|
|
2332
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2333
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2334
|
+
@QRCodeResults << qualitycontrolresultitems_tmp
|
2335
|
+
end
|
2336
|
+
end
|
2337
|
+
unless params['VoiceResults'].nil?
|
2338
|
+
@VoiceResults = []
|
2339
|
+
params['VoiceResults'].each do |i|
|
2340
|
+
qualitycontrolresultitems_tmp = QualityControlResultItems.new
|
2341
|
+
qualitycontrolresultitems_tmp.deserialize(i)
|
2342
|
+
@VoiceResults << qualitycontrolresultitems_tmp
|
2343
|
+
end
|
2344
|
+
end
|
2345
|
+
@ErrCode = params['ErrCode']
|
2346
|
+
@ErrMsg = params['ErrMsg']
|
2347
|
+
end
|
2348
|
+
end
|
2349
|
+
|
2350
|
+
# 质检结果项
|
2351
|
+
class QualityControlItem < TencentCloud::Common::AbstractModel
|
2352
|
+
# @param Confidence: 置信度,取值范围是 0 到 100
|
2353
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2354
|
+
# @type Confidence: Integer
|
2355
|
+
# @param StartTimeOffset: 出现的起始时间戳,秒
|
2356
|
+
# @type StartTimeOffset: Float
|
2357
|
+
# @param EndTimeOffset: 出现的结束时间戳,秒
|
2358
|
+
# @type EndTimeOffset: Float
|
2359
|
+
# @param AreaCoordsSet: 区域坐标(px),即左上角坐标、右下角坐标
|
2360
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2361
|
+
# @type AreaCoordsSet: Array
|
2362
|
+
|
2363
|
+
attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :AreaCoordsSet
|
2364
|
+
|
2365
|
+
def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, areacoordsset=nil)
|
2366
|
+
@Confidence = confidence
|
2367
|
+
@StartTimeOffset = starttimeoffset
|
2368
|
+
@EndTimeOffset = endtimeoffset
|
2369
|
+
@AreaCoordsSet = areacoordsset
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
def deserialize(params)
|
2373
|
+
@Confidence = params['Confidence']
|
2374
|
+
@StartTimeOffset = params['StartTimeOffset']
|
2375
|
+
@EndTimeOffset = params['EndTimeOffset']
|
2376
|
+
@AreaCoordsSet = params['AreaCoordsSet']
|
2377
|
+
end
|
2378
|
+
end
|
2379
|
+
|
2380
|
+
# 质检结果项数组
|
2381
|
+
class QualityControlResultItems < TencentCloud::Common::AbstractModel
|
2382
|
+
# @param Id: 异常类型
|
2383
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2384
|
+
# @type Id: String
|
2385
|
+
# @param QualityControlItems: 质检结果项
|
2386
|
+
# @type QualityControlItems: Array
|
2387
|
+
|
2388
|
+
attr_accessor :Id, :QualityControlItems
|
2389
|
+
|
2390
|
+
def initialize(id=nil, qualitycontrolitems=nil)
|
2391
|
+
@Id = id
|
2392
|
+
@QualityControlItems = qualitycontrolitems
|
2393
|
+
end
|
2394
|
+
|
2395
|
+
def deserialize(params)
|
2396
|
+
@Id = params['Id']
|
2397
|
+
unless params['QualityControlItems'].nil?
|
2398
|
+
@QualityControlItems = []
|
2399
|
+
params['QualityControlItems'].each do |i|
|
2400
|
+
qualitycontrolitem_tmp = QualityControlItem.new
|
2401
|
+
qualitycontrolitem_tmp.deserialize(i)
|
2402
|
+
@QualityControlItems << qualitycontrolitem_tmp
|
2403
|
+
end
|
2404
|
+
end
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
|
2408
|
+
# 音频去除混响
|
2409
|
+
class RemoveReverb < TencentCloud::Common::AbstractModel
|
2410
|
+
# @param Type: 去混响类型,可选项:normal
|
2411
|
+
# @type Type: String
|
2412
|
+
|
2413
|
+
attr_accessor :Type
|
2414
|
+
|
2415
|
+
def initialize(type=nil)
|
2416
|
+
@Type = type
|
2417
|
+
end
|
2418
|
+
|
2419
|
+
def deserialize(params)
|
2420
|
+
@Type = params['Type']
|
2421
|
+
end
|
2422
|
+
end
|
2423
|
+
|
2424
|
+
# 结果媒体文件的视频流信息
|
2425
|
+
class ResultAudioInfo < TencentCloud::Common::AbstractModel
|
2426
|
+
# @param StreamId: 流在媒体文件中的流ID
|
2427
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2428
|
+
# @type StreamId: Integer
|
2429
|
+
# @param Duration: 流的时长,单位:毫秒
|
2430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2431
|
+
# @type Duration: Integer
|
2432
|
+
|
2433
|
+
attr_accessor :StreamId, :Duration
|
2434
|
+
|
2435
|
+
def initialize(streamid=nil, duration=nil)
|
2436
|
+
@StreamId = streamid
|
2437
|
+
@Duration = duration
|
2438
|
+
end
|
2439
|
+
|
2440
|
+
def deserialize(params)
|
2441
|
+
@StreamId = params['StreamId']
|
2442
|
+
@Duration = params['Duration']
|
2443
|
+
end
|
2444
|
+
end
|
2445
|
+
|
2446
|
+
# 结果媒体文件的视频流信息
|
2447
|
+
class ResultVideoInfo < TencentCloud::Common::AbstractModel
|
2448
|
+
# @param StreamId: 流在媒体文件中的流ID
|
2449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2450
|
+
# @type StreamId: Integer
|
2451
|
+
# @param Duration: 流的时长,单位:毫秒
|
2452
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2453
|
+
# @type Duration: Integer
|
2454
|
+
# @param Width: 画面宽度
|
2455
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2456
|
+
# @type Width: Integer
|
2457
|
+
# @param Height: 画面高度
|
2458
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2459
|
+
# @type Height: Integer
|
2460
|
+
# @param Fps: 视频帧率
|
2461
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2462
|
+
# @type Fps: Integer
|
2463
|
+
|
2464
|
+
attr_accessor :StreamId, :Duration, :Width, :Height, :Fps
|
2465
|
+
|
2466
|
+
def initialize(streamid=nil, duration=nil, width=nil, height=nil, fps=nil)
|
2467
|
+
@StreamId = streamid
|
2468
|
+
@Duration = duration
|
2469
|
+
@Width = width
|
2470
|
+
@Height = height
|
2471
|
+
@Fps = fps
|
2472
|
+
end
|
2473
|
+
|
2474
|
+
def deserialize(params)
|
2475
|
+
@StreamId = params['StreamId']
|
2476
|
+
@Duration = params['Duration']
|
2477
|
+
@Width = params['Width']
|
2478
|
+
@Height = params['Height']
|
2479
|
+
@Fps = params['Fps']
|
2480
|
+
end
|
2481
|
+
end
|
2482
|
+
|
2483
|
+
# 任务存储信息
|
2484
|
+
class SaveInfo < TencentCloud::Common::AbstractModel
|
2485
|
+
# @param Type: 存储类型,可选值:
|
2486
|
+
# 1:CosInfo。
|
2487
|
+
# @type Type: Integer
|
2488
|
+
# @param CosInfo: Cos形式存储信息,当Type等于1时必选。
|
2489
|
+
# @type CosInfo: :class:`Tencentcloud::Ie.v20200304.models.CosInfo`
|
2490
|
+
|
2491
|
+
attr_accessor :Type, :CosInfo
|
2492
|
+
|
2493
|
+
def initialize(type=nil, cosinfo=nil)
|
2494
|
+
@Type = type
|
2495
|
+
@CosInfo = cosinfo
|
2496
|
+
end
|
2497
|
+
|
2498
|
+
def deserialize(params)
|
2499
|
+
@Type = params['Type']
|
2500
|
+
unless params['CosInfo'].nil?
|
2501
|
+
@CosInfo = CosInfo.new
|
2502
|
+
@CosInfo.deserialize(params['CosInfo'])
|
2503
|
+
end
|
2504
|
+
end
|
2505
|
+
end
|
2506
|
+
|
2507
|
+
# 去划痕参数
|
2508
|
+
class ScratchRepair < TencentCloud::Common::AbstractModel
|
2509
|
+
# @param Type: 去划痕方式,取值:normal。
|
2510
|
+
# @type Type: String
|
2511
|
+
# @param Ratio: 去划痕强度, 可选项:0.0-1.0。小于0.0的默认为0.0,大于1.0的默认为1.0。
|
2512
|
+
# @type Ratio: Float
|
2513
|
+
|
2514
|
+
attr_accessor :Type, :Ratio
|
2515
|
+
|
2516
|
+
def initialize(type=nil, ratio=nil)
|
2517
|
+
@Type = type
|
2518
|
+
@Ratio = ratio
|
2519
|
+
end
|
2520
|
+
|
2521
|
+
def deserialize(params)
|
2522
|
+
@Type = params['Type']
|
2523
|
+
@Ratio = params['Ratio']
|
2524
|
+
end
|
2525
|
+
end
|
2526
|
+
|
2527
|
+
# 时间区间。
|
2528
|
+
class SectionTime < TencentCloud::Common::AbstractModel
|
2529
|
+
# @param StartTime: 开始时间点,单位ms
|
2530
|
+
# @type StartTime: Integer
|
2531
|
+
# @param Duration: 时间区间时长,单位ms
|
2532
|
+
# @type Duration: Integer
|
2533
|
+
|
2534
|
+
attr_accessor :StartTime, :Duration
|
2535
|
+
|
2536
|
+
def initialize(starttime=nil, duration=nil)
|
2537
|
+
@StartTime = starttime
|
2538
|
+
@Duration = duration
|
2539
|
+
end
|
2540
|
+
|
2541
|
+
def deserialize(params)
|
2542
|
+
@StartTime = params['StartTime']
|
2543
|
+
@Duration = params['Duration']
|
2544
|
+
end
|
2545
|
+
end
|
2546
|
+
|
2547
|
+
# 输出文件切片信息
|
2548
|
+
class SegmentInfo < TencentCloud::Common::AbstractModel
|
2549
|
+
# @param FragmentTime: 每个切片平均时长,默认10s。
|
2550
|
+
# @type FragmentTime: Integer
|
2551
|
+
# @param SegmentType: 切片类型,可选项:hls,不填时默认hls。
|
2552
|
+
# @type SegmentType: String
|
2553
|
+
# @param FragmentName: 切片文件名字。注意:
|
2554
|
+
# 1.不填切片文件名时,默认按照按照如下格式命名:m3u8文件名{order}。
|
2555
|
+
# 2.若填了切片文件名字,则会按照如下格式命名:用户指定文件名{order}。
|
2556
|
+
# @type FragmentName: String
|
2557
|
+
|
2558
|
+
attr_accessor :FragmentTime, :SegmentType, :FragmentName
|
2559
|
+
|
2560
|
+
def initialize(fragmenttime=nil, segmenttype=nil, fragmentname=nil)
|
2561
|
+
@FragmentTime = fragmenttime
|
2562
|
+
@SegmentType = segmenttype
|
2563
|
+
@FragmentName = fragmentname
|
2564
|
+
end
|
2565
|
+
|
2566
|
+
def deserialize(params)
|
2567
|
+
@FragmentTime = params['FragmentTime']
|
2568
|
+
@SegmentType = params['SegmentType']
|
2569
|
+
@FragmentName = params['FragmentName']
|
2570
|
+
end
|
2571
|
+
end
|
2572
|
+
|
2573
|
+
# 细节增强参数
|
2574
|
+
class Sharp < TencentCloud::Common::AbstractModel
|
2575
|
+
# @param Type: 细节增强方式,取值:normal。
|
2576
|
+
# @type Type: String
|
2577
|
+
# @param Ratio: 细节增强强度,可选项:0.0-1.0。小于0.0的默认为0.0,大于1.0的默认为1.0。
|
2578
|
+
# @type Ratio: Float
|
2579
|
+
|
2580
|
+
attr_accessor :Type, :Ratio
|
2581
|
+
|
2582
|
+
def initialize(type=nil, ratio=nil)
|
2583
|
+
@Type = type
|
2584
|
+
@Ratio = ratio
|
2585
|
+
end
|
2586
|
+
|
2587
|
+
def deserialize(params)
|
2588
|
+
@Type = params['Type']
|
2589
|
+
@Ratio = params['Ratio']
|
2590
|
+
end
|
2591
|
+
end
|
2592
|
+
|
2593
|
+
# StopMediaProcessTask请求参数结构体
|
2594
|
+
class StopMediaProcessTaskRequest < TencentCloud::Common::AbstractModel
|
2595
|
+
# @param TaskId: 编辑处理任务ID。
|
2596
|
+
# @type TaskId: String
|
2597
|
+
|
2598
|
+
attr_accessor :TaskId
|
2599
|
+
|
2600
|
+
def initialize(taskid=nil)
|
2601
|
+
@TaskId = taskid
|
2602
|
+
end
|
2603
|
+
|
2604
|
+
def deserialize(params)
|
2605
|
+
@TaskId = params['TaskId']
|
2606
|
+
end
|
2607
|
+
end
|
2608
|
+
|
2609
|
+
# StopMediaProcessTask返回参数结构体
|
2610
|
+
class StopMediaProcessTaskResponse < TencentCloud::Common::AbstractModel
|
2611
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2612
|
+
# @type RequestId: String
|
2613
|
+
|
2614
|
+
attr_accessor :RequestId
|
2615
|
+
|
2616
|
+
def initialize(requestid=nil)
|
2617
|
+
@RequestId = requestid
|
2618
|
+
end
|
2619
|
+
|
2620
|
+
def deserialize(params)
|
2621
|
+
@RequestId = params['RequestId']
|
2622
|
+
end
|
2623
|
+
end
|
2624
|
+
|
2625
|
+
# StopMediaQualityRestorationTask请求参数结构体
|
2626
|
+
class StopMediaQualityRestorationTaskRequest < TencentCloud::Common::AbstractModel
|
2627
|
+
# @param TaskId: 要删除的画质重生任务ID。
|
2628
|
+
# @type TaskId: String
|
2629
|
+
|
2630
|
+
attr_accessor :TaskId
|
2631
|
+
|
2632
|
+
def initialize(taskid=nil)
|
2633
|
+
@TaskId = taskid
|
2634
|
+
end
|
2635
|
+
|
2636
|
+
def deserialize(params)
|
2637
|
+
@TaskId = params['TaskId']
|
2638
|
+
end
|
2639
|
+
end
|
2640
|
+
|
2641
|
+
# StopMediaQualityRestorationTask返回参数结构体
|
2642
|
+
class StopMediaQualityRestorationTaskResponse < TencentCloud::Common::AbstractModel
|
2643
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2644
|
+
# @type RequestId: String
|
2645
|
+
|
2646
|
+
attr_accessor :RequestId
|
2647
|
+
|
2648
|
+
def initialize(requestid=nil)
|
2649
|
+
@RequestId = requestid
|
2650
|
+
end
|
2651
|
+
|
2652
|
+
def deserialize(params)
|
2653
|
+
@RequestId = params['RequestId']
|
2654
|
+
end
|
2655
|
+
end
|
2656
|
+
|
2657
|
+
# 智能拆条任务参数信息
|
2658
|
+
class StripEditingInfo < TencentCloud::Common::AbstractModel
|
2659
|
+
# @param Switch: 是否开启智能拆条。0为关闭,1为开启。其他非0非1值默认为0。
|
2660
|
+
# @type Switch: Integer
|
2661
|
+
# @param CustomInfo: 额外定制化服务参数。参数为序列化的Json字符串,例如:{"k1":"v1"}。
|
2662
|
+
# @type CustomInfo: String
|
2663
|
+
|
2664
|
+
attr_accessor :Switch, :CustomInfo
|
2665
|
+
|
2666
|
+
def initialize(switch=nil, custominfo=nil)
|
2667
|
+
@Switch = switch
|
2668
|
+
@CustomInfo = custominfo
|
2669
|
+
end
|
2670
|
+
|
2671
|
+
def deserialize(params)
|
2672
|
+
@Switch = params['Switch']
|
2673
|
+
@CustomInfo = params['CustomInfo']
|
2674
|
+
end
|
2675
|
+
end
|
2676
|
+
|
2677
|
+
# 智能拆条结果信息
|
2678
|
+
class StripTaskResult < TencentCloud::Common::AbstractModel
|
2679
|
+
# @param Status: 编辑任务状态。
|
2680
|
+
# 1:执行中;2:成功;3:失败。
|
2681
|
+
# @type Status: Integer
|
2682
|
+
# @param ErrCode: 编辑任务失败错误码。
|
2683
|
+
# 0:成功;其他值:失败。
|
2684
|
+
# @type ErrCode: Integer
|
2685
|
+
# @param ErrMsg: 编辑任务失败错误描述。
|
2686
|
+
# @type ErrMsg: String
|
2687
|
+
# @param ItemSet: 智能拆条结果集。
|
2688
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2689
|
+
# @type ItemSet: Array
|
2690
|
+
|
2691
|
+
attr_accessor :Status, :ErrCode, :ErrMsg, :ItemSet
|
2692
|
+
|
2693
|
+
def initialize(status=nil, errcode=nil, errmsg=nil, itemset=nil)
|
2694
|
+
@Status = status
|
2695
|
+
@ErrCode = errcode
|
2696
|
+
@ErrMsg = errmsg
|
2697
|
+
@ItemSet = itemset
|
2698
|
+
end
|
2699
|
+
|
2700
|
+
def deserialize(params)
|
2701
|
+
@Status = params['Status']
|
2702
|
+
@ErrCode = params['ErrCode']
|
2703
|
+
@ErrMsg = params['ErrMsg']
|
2704
|
+
unless params['ItemSet'].nil?
|
2705
|
+
@ItemSet = []
|
2706
|
+
params['ItemSet'].each do |i|
|
2707
|
+
striptaskresultitem_tmp = StripTaskResultItem.new
|
2708
|
+
striptaskresultitem_tmp.deserialize(i)
|
2709
|
+
@ItemSet << striptaskresultitem_tmp
|
2710
|
+
end
|
2711
|
+
end
|
2712
|
+
end
|
2713
|
+
end
|
2714
|
+
|
2715
|
+
# 智能拆条结果项
|
2716
|
+
class StripTaskResultItem < TencentCloud::Common::AbstractModel
|
2717
|
+
# @param SegmentUrl: 视频拆条片段地址。
|
2718
|
+
# @type SegmentUrl: String
|
2719
|
+
# @param CovImgUrl: 拆条封面图片地址。
|
2720
|
+
# @type CovImgUrl: String
|
2721
|
+
# @param Confidence: 置信度,取值范围是 0 到 100。
|
2722
|
+
# @type Confidence: Float
|
2723
|
+
# @param StartTimeOffset: 拆条片段起始的偏移时间,单位:秒。
|
2724
|
+
# @type StartTimeOffset: Float
|
2725
|
+
# @param EndTimeOffset: 拆条片段终止的偏移时间,单位:秒。
|
2726
|
+
# @type EndTimeOffset: Float
|
2727
|
+
|
2728
|
+
attr_accessor :SegmentUrl, :CovImgUrl, :Confidence, :StartTimeOffset, :EndTimeOffset
|
2729
|
+
|
2730
|
+
def initialize(segmenturl=nil, covimgurl=nil, confidence=nil, starttimeoffset=nil, endtimeoffset=nil)
|
2731
|
+
@SegmentUrl = segmenturl
|
2732
|
+
@CovImgUrl = covimgurl
|
2733
|
+
@Confidence = confidence
|
2734
|
+
@StartTimeOffset = starttimeoffset
|
2735
|
+
@EndTimeOffset = endtimeoffset
|
2736
|
+
end
|
2737
|
+
|
2738
|
+
def deserialize(params)
|
2739
|
+
@SegmentUrl = params['SegmentUrl']
|
2740
|
+
@CovImgUrl = params['CovImgUrl']
|
2741
|
+
@Confidence = params['Confidence']
|
2742
|
+
@StartTimeOffset = params['StartTimeOffset']
|
2743
|
+
@EndTimeOffset = params['EndTimeOffset']
|
2744
|
+
end
|
2745
|
+
end
|
2746
|
+
|
2747
|
+
# 画质重生子任务结果
|
2748
|
+
class SubTaskResultItem < TencentCloud::Common::AbstractModel
|
2749
|
+
# @param TaskName: 子任务名称。
|
2750
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2751
|
+
# @type TaskName: String
|
2752
|
+
# @param StatusCode: 子任务状态。
|
2753
|
+
# 0:成功;
|
2754
|
+
# 1:执行中;
|
2755
|
+
# 其他值:失败。
|
2756
|
+
# @type StatusCode: Integer
|
2757
|
+
# @param StatusMsg: 子任务状态描述。
|
2758
|
+
# @type StatusMsg: String
|
2759
|
+
# @param ProgressRate: 子任务进度。
|
2760
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2761
|
+
# @type ProgressRate: Integer
|
2762
|
+
# @param DownloadUrl: 画质重生处理后文件的下载地址。
|
2763
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2764
|
+
# @type DownloadUrl: String
|
2765
|
+
# @param Md5: 画质重生处理后文件的MD5。
|
2766
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2767
|
+
# @type Md5: String
|
2768
|
+
# @param FileInfo: 画质重生处理后文件的详细信息。
|
2769
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2770
|
+
# @type FileInfo: :class:`Tencentcloud::Ie.v20200304.models.FileInfo`
|
2771
|
+
|
2772
|
+
attr_accessor :TaskName, :StatusCode, :StatusMsg, :ProgressRate, :DownloadUrl, :Md5, :FileInfo
|
2773
|
+
|
2774
|
+
def initialize(taskname=nil, statuscode=nil, statusmsg=nil, progressrate=nil, downloadurl=nil, md5=nil, fileinfo=nil)
|
2775
|
+
@TaskName = taskname
|
2776
|
+
@StatusCode = statuscode
|
2777
|
+
@StatusMsg = statusmsg
|
2778
|
+
@ProgressRate = progressrate
|
2779
|
+
@DownloadUrl = downloadurl
|
2780
|
+
@Md5 = md5
|
2781
|
+
@FileInfo = fileinfo
|
2782
|
+
end
|
2783
|
+
|
2784
|
+
def deserialize(params)
|
2785
|
+
@TaskName = params['TaskName']
|
2786
|
+
@StatusCode = params['StatusCode']
|
2787
|
+
@StatusMsg = params['StatusMsg']
|
2788
|
+
@ProgressRate = params['ProgressRate']
|
2789
|
+
@DownloadUrl = params['DownloadUrl']
|
2790
|
+
@Md5 = params['Md5']
|
2791
|
+
unless params['FileInfo'].nil?
|
2792
|
+
@FileInfo = FileInfo.new
|
2793
|
+
@FileInfo.deserialize(params['FileInfo'])
|
2794
|
+
end
|
2795
|
+
end
|
2796
|
+
end
|
2797
|
+
|
2798
|
+
# 画质重生子任务参数信息
|
2799
|
+
class SubTaskTranscodeInfo < TencentCloud::Common::AbstractModel
|
2800
|
+
# @param TaskName: 子任务名称。
|
2801
|
+
# @type TaskName: String
|
2802
|
+
# @param TargetInfo: 目标文件信息。
|
2803
|
+
# @type TargetInfo: :class:`Tencentcloud::Ie.v20200304.models.TargetInfo`
|
2804
|
+
# @param EditInfo: 视频剪辑信息。注意:如果填写了EditInfo,则VideoInfo和AudioInfo必填
|
2805
|
+
# @type EditInfo: :class:`Tencentcloud::Ie.v20200304.models.EditInfo`
|
2806
|
+
# @param VideoInfo: 视频转码信息,不填保持和源文件一致。
|
2807
|
+
# @type VideoInfo: :class:`Tencentcloud::Ie.v20200304.models.VideoInfo`
|
2808
|
+
# @param AudioInfo: 音频转码信息,不填保持和源文件一致。
|
2809
|
+
# @type AudioInfo: :class:`Tencentcloud::Ie.v20200304.models.AudioInfo`
|
2810
|
+
# @param MuxInfo: 指定封装信息。
|
2811
|
+
# @type MuxInfo: :class:`Tencentcloud::Ie.v20200304.models.MuxInfo`
|
2812
|
+
|
2813
|
+
attr_accessor :TaskName, :TargetInfo, :EditInfo, :VideoInfo, :AudioInfo, :MuxInfo
|
2814
|
+
|
2815
|
+
def initialize(taskname=nil, targetinfo=nil, editinfo=nil, videoinfo=nil, audioinfo=nil, muxinfo=nil)
|
2816
|
+
@TaskName = taskname
|
2817
|
+
@TargetInfo = targetinfo
|
2818
|
+
@EditInfo = editinfo
|
2819
|
+
@VideoInfo = videoinfo
|
2820
|
+
@AudioInfo = audioinfo
|
2821
|
+
@MuxInfo = muxinfo
|
2822
|
+
end
|
2823
|
+
|
2824
|
+
def deserialize(params)
|
2825
|
+
@TaskName = params['TaskName']
|
2826
|
+
unless params['TargetInfo'].nil?
|
2827
|
+
@TargetInfo = TargetInfo.new
|
2828
|
+
@TargetInfo.deserialize(params['TargetInfo'])
|
2829
|
+
end
|
2830
|
+
unless params['EditInfo'].nil?
|
2831
|
+
@EditInfo = EditInfo.new
|
2832
|
+
@EditInfo.deserialize(params['EditInfo'])
|
2833
|
+
end
|
2834
|
+
unless params['VideoInfo'].nil?
|
2835
|
+
@VideoInfo = VideoInfo.new
|
2836
|
+
@VideoInfo.deserialize(params['VideoInfo'])
|
2837
|
+
end
|
2838
|
+
unless params['AudioInfo'].nil?
|
2839
|
+
@AudioInfo = AudioInfo.new
|
2840
|
+
@AudioInfo.deserialize(params['AudioInfo'])
|
2841
|
+
end
|
2842
|
+
unless params['MuxInfo'].nil?
|
2843
|
+
@MuxInfo = MuxInfo.new
|
2844
|
+
@MuxInfo.deserialize(params['MuxInfo'])
|
2845
|
+
end
|
2846
|
+
end
|
2847
|
+
end
|
2848
|
+
|
2849
|
+
# 语音字幕识别项
|
2850
|
+
class SubtitleItem < TencentCloud::Common::AbstractModel
|
2851
|
+
# @param Id: 语音识别结果
|
2852
|
+
# @type Id: String
|
2853
|
+
# @param Zh: 中文翻译结果
|
2854
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2855
|
+
# @type Zh: String
|
2856
|
+
# @param En: 英文翻译结果
|
2857
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2858
|
+
# @type En: String
|
2859
|
+
# @param StartPts: 语句起始时间戳PTS(ms)
|
2860
|
+
# @type StartPts: Integer
|
2861
|
+
# @param EndPts: 语句结束时间戳PTS(ms)
|
2862
|
+
# @type EndPts: Integer
|
2863
|
+
# @param Period: 字符串形式的起始结束时间
|
2864
|
+
# @type Period: String
|
2865
|
+
# @param Confidence: 结果的置信度(百分制)
|
2866
|
+
# @type Confidence: Integer
|
2867
|
+
# @param EndFlag: 当前语句是否结束
|
2868
|
+
# @type EndFlag: Boolean
|
2869
|
+
# @param PuncEndTs: 语句分割时间戳
|
2870
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2871
|
+
# @type PuncEndTs: String
|
2872
|
+
|
2873
|
+
attr_accessor :Id, :Zh, :En, :StartPts, :EndPts, :Period, :Confidence, :EndFlag, :PuncEndTs
|
2874
|
+
|
2875
|
+
def initialize(id=nil, zh=nil, en=nil, startpts=nil, endpts=nil, period=nil, confidence=nil, endflag=nil, puncendts=nil)
|
2876
|
+
@Id = id
|
2877
|
+
@Zh = zh
|
2878
|
+
@En = en
|
2879
|
+
@StartPts = startpts
|
2880
|
+
@EndPts = endpts
|
2881
|
+
@Period = period
|
2882
|
+
@Confidence = confidence
|
2883
|
+
@EndFlag = endflag
|
2884
|
+
@PuncEndTs = puncendts
|
2885
|
+
end
|
2886
|
+
|
2887
|
+
def deserialize(params)
|
2888
|
+
@Id = params['Id']
|
2889
|
+
@Zh = params['Zh']
|
2890
|
+
@En = params['En']
|
2891
|
+
@StartPts = params['StartPts']
|
2892
|
+
@EndPts = params['EndPts']
|
2893
|
+
@Period = params['Period']
|
2894
|
+
@Confidence = params['Confidence']
|
2895
|
+
@EndFlag = params['EndFlag']
|
2896
|
+
@PuncEndTs = params['PuncEndTs']
|
2897
|
+
end
|
2898
|
+
end
|
2899
|
+
|
2900
|
+
# 语音字幕任务参数
|
2901
|
+
class SubtitleRec < TencentCloud::Common::AbstractModel
|
2902
|
+
# @param AsrDst: 语音识别:
|
2903
|
+
# zh:中文
|
2904
|
+
# en:英文
|
2905
|
+
# @type AsrDst: String
|
2906
|
+
# @param TransDst: 翻译识别:
|
2907
|
+
# zh:中文
|
2908
|
+
# en:英文
|
2909
|
+
# @type TransDst: String
|
2910
|
+
|
2911
|
+
attr_accessor :AsrDst, :TransDst
|
2912
|
+
|
2913
|
+
def initialize(asrdst=nil, transdst=nil)
|
2914
|
+
@AsrDst = asrdst
|
2915
|
+
@TransDst = transdst
|
2916
|
+
end
|
2917
|
+
|
2918
|
+
def deserialize(params)
|
2919
|
+
@AsrDst = params['AsrDst']
|
2920
|
+
@TransDst = params['TransDst']
|
2921
|
+
end
|
2922
|
+
end
|
2923
|
+
|
2924
|
+
# 语音字幕识别结果
|
2925
|
+
class SubtitleResult < TencentCloud::Common::AbstractModel
|
2926
|
+
# @param SubtitleItems: 语音字幕数组
|
2927
|
+
# @type SubtitleItems: Array
|
2928
|
+
|
2929
|
+
attr_accessor :SubtitleItems
|
2930
|
+
|
2931
|
+
def initialize(subtitleitems=nil)
|
2932
|
+
@SubtitleItems = subtitleitems
|
2933
|
+
end
|
2934
|
+
|
2935
|
+
def deserialize(params)
|
2936
|
+
unless params['SubtitleItems'].nil?
|
2937
|
+
@SubtitleItems = []
|
2938
|
+
params['SubtitleItems'].each do |i|
|
2939
|
+
subtitleitem_tmp = SubtitleItem.new
|
2940
|
+
subtitleitem_tmp.deserialize(i)
|
2941
|
+
@SubtitleItems << subtitleitem_tmp
|
2942
|
+
end
|
2943
|
+
end
|
2944
|
+
end
|
2945
|
+
end
|
2946
|
+
|
2947
|
+
# 视频标签识别任务参数信息
|
2948
|
+
class TagEditingInfo < TencentCloud::Common::AbstractModel
|
2949
|
+
# @param Switch: 是否开启视频标签识别。0为关闭,1为开启。其他非0非1值默认为0。
|
2950
|
+
# @type Switch: Integer
|
2951
|
+
# @param CustomInfo: 额外定制化服务参数。参数为序列化的Json字符串,例如:{"k1":"v1"}。
|
2952
|
+
# @type CustomInfo: String
|
2953
|
+
|
2954
|
+
attr_accessor :Switch, :CustomInfo
|
2955
|
+
|
2956
|
+
def initialize(switch=nil, custominfo=nil)
|
2957
|
+
@Switch = switch
|
2958
|
+
@CustomInfo = custominfo
|
2959
|
+
end
|
2960
|
+
|
2961
|
+
def deserialize(params)
|
2962
|
+
@Switch = params['Switch']
|
2963
|
+
@CustomInfo = params['CustomInfo']
|
2964
|
+
end
|
2965
|
+
end
|
2966
|
+
|
2967
|
+
# 标签项
|
2968
|
+
class TagItem < TencentCloud::Common::AbstractModel
|
2969
|
+
# @param Id: 标签内容
|
2970
|
+
# @type Id: String
|
2971
|
+
# @param Confidence: 结果的置信度(百分制)
|
2972
|
+
# @type Confidence: Integer
|
2973
|
+
# @param Categorys: 分级数组
|
2974
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2975
|
+
# @type Categorys: Array
|
2976
|
+
# @param Ext: 标签备注
|
2977
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2978
|
+
# @type Ext: String
|
2979
|
+
|
2980
|
+
attr_accessor :Id, :Confidence, :Categorys, :Ext
|
2981
|
+
|
2982
|
+
def initialize(id=nil, confidence=nil, categorys=nil, ext=nil)
|
2983
|
+
@Id = id
|
2984
|
+
@Confidence = confidence
|
2985
|
+
@Categorys = categorys
|
2986
|
+
@Ext = ext
|
2987
|
+
end
|
2988
|
+
|
2989
|
+
def deserialize(params)
|
2990
|
+
@Id = params['Id']
|
2991
|
+
@Confidence = params['Confidence']
|
2992
|
+
@Categorys = params['Categorys']
|
2993
|
+
@Ext = params['Ext']
|
2994
|
+
end
|
2995
|
+
end
|
2996
|
+
|
2997
|
+
# 视频标签识别结果信息
|
2998
|
+
class TagTaskResult < TencentCloud::Common::AbstractModel
|
2999
|
+
# @param Status: 编辑任务状态。
|
3000
|
+
# 1:执行中;2:成功;3:失败。
|
3001
|
+
# @type Status: Integer
|
3002
|
+
# @param ErrCode: 编辑任务失败错误码。
|
3003
|
+
# 0:成功;其他值:失败。
|
3004
|
+
# @type ErrCode: Integer
|
3005
|
+
# @param ErrMsg: 编辑任务失败错误描述。
|
3006
|
+
# @type ErrMsg: String
|
3007
|
+
# @param ItemSet: 视频标签识别结果集。
|
3008
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3009
|
+
# @type ItemSet: Array
|
3010
|
+
|
3011
|
+
attr_accessor :Status, :ErrCode, :ErrMsg, :ItemSet
|
3012
|
+
|
3013
|
+
def initialize(status=nil, errcode=nil, errmsg=nil, itemset=nil)
|
3014
|
+
@Status = status
|
3015
|
+
@ErrCode = errcode
|
3016
|
+
@ErrMsg = errmsg
|
3017
|
+
@ItemSet = itemset
|
3018
|
+
end
|
3019
|
+
|
3020
|
+
def deserialize(params)
|
3021
|
+
@Status = params['Status']
|
3022
|
+
@ErrCode = params['ErrCode']
|
3023
|
+
@ErrMsg = params['ErrMsg']
|
3024
|
+
unless params['ItemSet'].nil?
|
3025
|
+
@ItemSet = []
|
3026
|
+
params['ItemSet'].each do |i|
|
3027
|
+
tagtaskresultitem_tmp = TagTaskResultItem.new
|
3028
|
+
tagtaskresultitem_tmp.deserialize(i)
|
3029
|
+
@ItemSet << tagtaskresultitem_tmp
|
3030
|
+
end
|
3031
|
+
end
|
3032
|
+
end
|
3033
|
+
end
|
3034
|
+
|
3035
|
+
# 视频标签识别结果项
|
3036
|
+
class TagTaskResultItem < TencentCloud::Common::AbstractModel
|
3037
|
+
# @param Tag: 标签名称。
|
3038
|
+
# @type Tag: String
|
3039
|
+
# @param Confidence: 置信度,取值范围是 0 到 100。
|
3040
|
+
# @type Confidence: Float
|
3041
|
+
|
3042
|
+
attr_accessor :Tag, :Confidence
|
3043
|
+
|
3044
|
+
def initialize(tag=nil, confidence=nil)
|
3045
|
+
@Tag = tag
|
3046
|
+
@Confidence = confidence
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
def deserialize(params)
|
3050
|
+
@Tag = params['Tag']
|
3051
|
+
@Confidence = params['Confidence']
|
3052
|
+
end
|
3053
|
+
end
|
3054
|
+
|
3055
|
+
# 输出文件信息
|
3056
|
+
class TargetInfo < TencentCloud::Common::AbstractModel
|
3057
|
+
# @param FileName: 目标文件名
|
3058
|
+
# @type FileName: String
|
3059
|
+
# @param SegmentInfo: 目标文件切片信息
|
3060
|
+
# @type SegmentInfo: :class:`Tencentcloud::Ie.v20200304.models.SegmentInfo`
|
3061
|
+
|
3062
|
+
attr_accessor :FileName, :SegmentInfo
|
3063
|
+
|
3064
|
+
def initialize(filename=nil, segmentinfo=nil)
|
3065
|
+
@FileName = filename
|
3066
|
+
@SegmentInfo = segmentinfo
|
3067
|
+
end
|
3068
|
+
|
3069
|
+
def deserialize(params)
|
3070
|
+
@FileName = params['FileName']
|
3071
|
+
unless params['SegmentInfo'].nil?
|
3072
|
+
@SegmentInfo = SegmentInfo.new
|
3073
|
+
@SegmentInfo.deserialize(params['SegmentInfo'])
|
3074
|
+
end
|
3075
|
+
end
|
3076
|
+
end
|
3077
|
+
|
3078
|
+
# 目标视频信息。
|
3079
|
+
class TargetVideoInfo < TencentCloud::Common::AbstractModel
|
3080
|
+
# @param Width: 视频宽度,单位像素
|
3081
|
+
# @type Width: Integer
|
3082
|
+
# @param Height: 视频高度,单位像素
|
3083
|
+
# @type Height: Integer
|
3084
|
+
# @param FrameRate: 视频帧率,范围在1到120之间
|
3085
|
+
# @type FrameRate: Integer
|
3086
|
+
|
3087
|
+
attr_accessor :Width, :Height, :FrameRate
|
3088
|
+
|
3089
|
+
def initialize(width=nil, height=nil, framerate=nil)
|
3090
|
+
@Width = width
|
3091
|
+
@Height = height
|
3092
|
+
@FrameRate = framerate
|
3093
|
+
end
|
3094
|
+
|
3095
|
+
def deserialize(params)
|
3096
|
+
@Width = params['Width']
|
3097
|
+
@Height = params['Height']
|
3098
|
+
@FrameRate = params['FrameRate']
|
3099
|
+
end
|
3100
|
+
end
|
3101
|
+
|
3102
|
+
# 任务结果文件信息
|
3103
|
+
class TaskResultFile < TencentCloud::Common::AbstractModel
|
3104
|
+
# @param Url: 文件链接。
|
3105
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3106
|
+
# @type Url: String
|
3107
|
+
# @param FileSize: 文件大小,部分任务支持,单位:字节
|
3108
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3109
|
+
# @type FileSize: Integer
|
3110
|
+
# @param MediaInfo: 媒体信息,对于媒体文件,部分任务支持返回
|
3111
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3112
|
+
# @type MediaInfo: :class:`Tencentcloud::Ie.v20200304.models.MediaResultInfo`
|
3113
|
+
|
3114
|
+
attr_accessor :Url, :FileSize, :MediaInfo
|
3115
|
+
|
3116
|
+
def initialize(url=nil, filesize=nil, mediainfo=nil)
|
3117
|
+
@Url = url
|
3118
|
+
@FileSize = filesize
|
3119
|
+
@MediaInfo = mediainfo
|
3120
|
+
end
|
3121
|
+
|
3122
|
+
def deserialize(params)
|
3123
|
+
@Url = params['Url']
|
3124
|
+
@FileSize = params['FileSize']
|
3125
|
+
unless params['MediaInfo'].nil?
|
3126
|
+
@MediaInfo = MediaResultInfo.new
|
3127
|
+
@MediaInfo.deserialize(params['MediaInfo'])
|
3128
|
+
end
|
3129
|
+
end
|
3130
|
+
end
|
3131
|
+
|
3132
|
+
# 画质重生子任务文字水印信息
|
3133
|
+
class TextMarkInfoItem < TencentCloud::Common::AbstractModel
|
3134
|
+
# @param Text: 文字内容。
|
3135
|
+
# @type Text: String
|
3136
|
+
# @param PosX: 文字水印X坐标。
|
3137
|
+
# @type PosX: Integer
|
3138
|
+
# @param PosY: 文字水印Y坐标。
|
3139
|
+
# @type PosY: Integer
|
3140
|
+
# @param FontSize: 文字大小
|
3141
|
+
# @type FontSize: Integer
|
3142
|
+
# @param FontFile: 字体,可选项:hei,song,simkai,arial;默认hei(黑体)。
|
3143
|
+
# @type FontFile: String
|
3144
|
+
# @param FontColor: 字体颜色,颜色见附录,不填默认black。
|
3145
|
+
# @type FontColor: String
|
3146
|
+
# @param FontAlpha: 文字透明度,可选值0-1。0:不透明,1:全透明。默认为0
|
3147
|
+
# @type FontAlpha: Float
|
3148
|
+
|
3149
|
+
attr_accessor :Text, :PosX, :PosY, :FontSize, :FontFile, :FontColor, :FontAlpha
|
3150
|
+
|
3151
|
+
def initialize(text=nil, posx=nil, posy=nil, fontsize=nil, fontfile=nil, fontcolor=nil, fontalpha=nil)
|
3152
|
+
@Text = text
|
3153
|
+
@PosX = posx
|
3154
|
+
@PosY = posy
|
3155
|
+
@FontSize = fontsize
|
3156
|
+
@FontFile = fontfile
|
3157
|
+
@FontColor = fontcolor
|
3158
|
+
@FontAlpha = fontalpha
|
3159
|
+
end
|
3160
|
+
|
3161
|
+
def deserialize(params)
|
3162
|
+
@Text = params['Text']
|
3163
|
+
@PosX = params['PosX']
|
3164
|
+
@PosY = params['PosY']
|
3165
|
+
@FontSize = params['FontSize']
|
3166
|
+
@FontFile = params['FontFile']
|
3167
|
+
@FontColor = params['FontColor']
|
3168
|
+
@FontAlpha = params['FontAlpha']
|
3169
|
+
end
|
3170
|
+
end
|
3171
|
+
|
3172
|
+
# 任务视频Url形式下载信息。
|
3173
|
+
class UrlInfo < TencentCloud::Common::AbstractModel
|
3174
|
+
# @param Url: 视频 URL。
|
3175
|
+
# 注意:编辑理解仅支持mp4、flv等格式的点播文件,不支持hls;
|
3176
|
+
# @type Url: String
|
3177
|
+
# @param Format: 视频地址格式,可选值:
|
3178
|
+
# 0:音视频 ;
|
3179
|
+
# 1:直播流。
|
3180
|
+
# 默认为0。其他非0非1值默认为0。画质重生任务只支持0。
|
3181
|
+
# @type Format: Integer
|
3182
|
+
# @param Host: 【不再支持】指定请求资源时,HTTP头部host的值。
|
3183
|
+
# @type Host: String
|
3184
|
+
|
3185
|
+
attr_accessor :Url, :Format, :Host
|
3186
|
+
|
3187
|
+
def initialize(url=nil, format=nil, host=nil)
|
3188
|
+
@Url = url
|
3189
|
+
@Format = format
|
3190
|
+
@Host = host
|
3191
|
+
end
|
3192
|
+
|
3193
|
+
def deserialize(params)
|
3194
|
+
@Url = params['Url']
|
3195
|
+
@Format = params['Format']
|
3196
|
+
@Host = params['Host']
|
3197
|
+
end
|
3198
|
+
end
|
3199
|
+
|
3200
|
+
# 画质增强参数信息
|
3201
|
+
class VideoEnhance < TencentCloud::Common::AbstractModel
|
3202
|
+
# @param ArtifactReduction: 去编码毛刺、伪影参数。
|
3203
|
+
# @type ArtifactReduction: :class:`Tencentcloud::Ie.v20200304.models.ArtifactReduction`
|
3204
|
+
# @param Denoising: 去噪声参数。
|
3205
|
+
# @type Denoising: :class:`Tencentcloud::Ie.v20200304.models.Denoising`
|
3206
|
+
# @param ColorEnhance: 颜色增强参数。
|
3207
|
+
# @type ColorEnhance: :class:`Tencentcloud::Ie.v20200304.models.ColorEnhance`
|
3208
|
+
# @param Sharp: 细节增强参数。
|
3209
|
+
# @type Sharp: :class:`Tencentcloud::Ie.v20200304.models.Sharp`
|
3210
|
+
# @param WdSuperResolution: 超分参数,可选项:2,目前仅支持2倍超分。
|
3211
|
+
# 注意:此参数已经弃用,超分可以使用VideoSuperResolution参数
|
3212
|
+
# @type WdSuperResolution: Integer
|
3213
|
+
# @param FaceProtect: 人脸保护信息。
|
3214
|
+
# @type FaceProtect: :class:`Tencentcloud::Ie.v20200304.models.FaceProtect`
|
3215
|
+
# @param WdFps: 插帧,取值范围:[0, 60],单位:Hz。
|
3216
|
+
# 注意:当取值为 0,表示帧率和原始视频保持一致。
|
3217
|
+
# @type WdFps: Integer
|
3218
|
+
# @param ScratchRepair: 去划痕参数
|
3219
|
+
# @type ScratchRepair: :class:`Tencentcloud::Ie.v20200304.models.ScratchRepair`
|
3220
|
+
# @param LowLightEnhance: 低光照增强参数
|
3221
|
+
# @type LowLightEnhance: :class:`Tencentcloud::Ie.v20200304.models.LowLightEnhance`
|
3222
|
+
# @param VideoSuperResolution: 视频超分参数
|
3223
|
+
# @type VideoSuperResolution: :class:`Tencentcloud::Ie.v20200304.models.VideoSuperResolution`
|
3224
|
+
# @param VideoRepair: 视频画质修复参数
|
3225
|
+
# @type VideoRepair: :class:`Tencentcloud::Ie.v20200304.models.VideoRepair`
|
3226
|
+
|
3227
|
+
attr_accessor :ArtifactReduction, :Denoising, :ColorEnhance, :Sharp, :WdSuperResolution, :FaceProtect, :WdFps, :ScratchRepair, :LowLightEnhance, :VideoSuperResolution, :VideoRepair
|
3228
|
+
|
3229
|
+
def initialize(artifactreduction=nil, denoising=nil, colorenhance=nil, sharp=nil, wdsuperresolution=nil, faceprotect=nil, wdfps=nil, scratchrepair=nil, lowlightenhance=nil, videosuperresolution=nil, videorepair=nil)
|
3230
|
+
@ArtifactReduction = artifactreduction
|
3231
|
+
@Denoising = denoising
|
3232
|
+
@ColorEnhance = colorenhance
|
3233
|
+
@Sharp = sharp
|
3234
|
+
@WdSuperResolution = wdsuperresolution
|
3235
|
+
@FaceProtect = faceprotect
|
3236
|
+
@WdFps = wdfps
|
3237
|
+
@ScratchRepair = scratchrepair
|
3238
|
+
@LowLightEnhance = lowlightenhance
|
3239
|
+
@VideoSuperResolution = videosuperresolution
|
3240
|
+
@VideoRepair = videorepair
|
3241
|
+
end
|
3242
|
+
|
3243
|
+
def deserialize(params)
|
3244
|
+
unless params['ArtifactReduction'].nil?
|
3245
|
+
@ArtifactReduction = ArtifactReduction.new
|
3246
|
+
@ArtifactReduction.deserialize(params['ArtifactReduction'])
|
3247
|
+
end
|
3248
|
+
unless params['Denoising'].nil?
|
3249
|
+
@Denoising = Denoising.new
|
3250
|
+
@Denoising.deserialize(params['Denoising'])
|
3251
|
+
end
|
3252
|
+
unless params['ColorEnhance'].nil?
|
3253
|
+
@ColorEnhance = ColorEnhance.new
|
3254
|
+
@ColorEnhance.deserialize(params['ColorEnhance'])
|
3255
|
+
end
|
3256
|
+
unless params['Sharp'].nil?
|
3257
|
+
@Sharp = Sharp.new
|
3258
|
+
@Sharp.deserialize(params['Sharp'])
|
3259
|
+
end
|
3260
|
+
@WdSuperResolution = params['WdSuperResolution']
|
3261
|
+
unless params['FaceProtect'].nil?
|
3262
|
+
@FaceProtect = FaceProtect.new
|
3263
|
+
@FaceProtect.deserialize(params['FaceProtect'])
|
3264
|
+
end
|
3265
|
+
@WdFps = params['WdFps']
|
3266
|
+
unless params['ScratchRepair'].nil?
|
3267
|
+
@ScratchRepair = ScratchRepair.new
|
3268
|
+
@ScratchRepair.deserialize(params['ScratchRepair'])
|
3269
|
+
end
|
3270
|
+
unless params['LowLightEnhance'].nil?
|
3271
|
+
@LowLightEnhance = LowLightEnhance.new
|
3272
|
+
@LowLightEnhance.deserialize(params['LowLightEnhance'])
|
3273
|
+
end
|
3274
|
+
unless params['VideoSuperResolution'].nil?
|
3275
|
+
@VideoSuperResolution = VideoSuperResolution.new
|
3276
|
+
@VideoSuperResolution.deserialize(params['VideoSuperResolution'])
|
3277
|
+
end
|
3278
|
+
unless params['VideoRepair'].nil?
|
3279
|
+
@VideoRepair = VideoRepair.new
|
3280
|
+
@VideoRepair.deserialize(params['VideoRepair'])
|
3281
|
+
end
|
3282
|
+
end
|
3283
|
+
end
|
3284
|
+
|
3285
|
+
# 视频转码信息
|
3286
|
+
class VideoInfo < TencentCloud::Common::AbstractModel
|
3287
|
+
# @param Fps: 视频帧率,取值范围:[0, 60],单位:Hz。
|
3288
|
+
# 注意:当取值为 0,表示帧率和原始视频保持一致。
|
3289
|
+
# @type Fps: Integer
|
3290
|
+
# @param Width: 宽度,取值范围:0 和 [128, 4096]
|
3291
|
+
# 注意:
|
3292
|
+
# 当 Width、Height 均为 0,则分辨率同源;
|
3293
|
+
# 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
|
3294
|
+
# 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
|
3295
|
+
# 当 Width、Height 均非 0,则分辨率按用户指定。
|
3296
|
+
# @type Width: Integer
|
3297
|
+
# @param Height: 高度,取值范围:0 和 [128, 4096]
|
3298
|
+
# 注意:
|
3299
|
+
# 当 Width、Height 均为 0,则分辨率同源;
|
3300
|
+
# 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
|
3301
|
+
# 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
|
3302
|
+
# 当 Width、Height 均非 0,则分辨率按用户指定。
|
3303
|
+
# @type Height: Integer
|
3304
|
+
# @param LongSide: 长边分辨率,取值范围:0 和 [128, 4096]
|
3305
|
+
# 注意:
|
3306
|
+
# 当 LongSide、ShortSide 均为 0,则分辨率按照Width,Height;
|
3307
|
+
# 当 LongSide 为 0,ShortSide 非 0,则 LongSide 按比例缩放;
|
3308
|
+
# 当 LongSide非 0,ShortSide为 0,则 ShortSide 按比例缩放;
|
3309
|
+
# 当 LongSide、ShortSide 均非 0,则分辨率按用户指定。
|
3310
|
+
# 长短边优先级高于Weight,Height,设置长短边则忽略宽高。
|
3311
|
+
# @type LongSide: Integer
|
3312
|
+
# @param ShortSide: 短边分辨率,取值范围:0 和 [128, 4096]
|
3313
|
+
# 注意:
|
3314
|
+
# 当 LongSide、ShortSide 均为 0,则分辨率按照Width,Height;
|
3315
|
+
# 当 LongSide 为 0,ShortSide 非 0,则 LongSide 按比例缩放;
|
3316
|
+
# 当 LongSide非 0,ShortSide为 0,则 ShortSide 按比例缩放;
|
3317
|
+
# 当 LongSide、ShortSide 均非 0,则分辨率按用户指定。
|
3318
|
+
# 长短边优先级高于Weight,Height,设置长短边则忽略宽高。
|
3319
|
+
# @type ShortSide: Integer
|
3320
|
+
# @param Bitrate: 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。当取值为 0,表示视频码率和原始视频保持一致。
|
3321
|
+
# @type Bitrate: Integer
|
3322
|
+
# @param Gop: 固定I帧之间,视频帧数量,取值范围: [25, 2500],如果不填,使用编码默认最优序列。
|
3323
|
+
# @type Gop: Integer
|
3324
|
+
# @param VideoCodec: 编码器支持选项,可选值:
|
3325
|
+
# h264,
|
3326
|
+
# h265,
|
3327
|
+
# av1。
|
3328
|
+
# 不填默认h264。
|
3329
|
+
# @type VideoCodec: String
|
3330
|
+
# @param PicMarkInfo: 图片水印。
|
3331
|
+
# @type PicMarkInfo: Array
|
3332
|
+
# @param DarInfo: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。
|
3333
|
+
# @type DarInfo: :class:`Tencentcloud::Ie.v20200304.models.DarInfo`
|
3334
|
+
# @param Hdr: 支持hdr,可选项:
|
3335
|
+
# hdr10,
|
3336
|
+
# hlg。
|
3337
|
+
# 此时,VideoCodec会强制设置为h265, 编码位深为10
|
3338
|
+
# @type Hdr: String
|
3339
|
+
# @param VideoEnhance: 画质增强参数信息。
|
3340
|
+
# @type VideoEnhance: :class:`Tencentcloud::Ie.v20200304.models.VideoEnhance`
|
3341
|
+
# @param HiddenMarkInfo: 数字水印参数信息。
|
3342
|
+
# @type HiddenMarkInfo: :class:`Tencentcloud::Ie.v20200304.models.HiddenMarkInfo`
|
3343
|
+
# @param TextMarkInfo: 文本水印参数信息。
|
3344
|
+
# @type TextMarkInfo: Array
|
3345
|
+
|
3346
|
+
attr_accessor :Fps, :Width, :Height, :LongSide, :ShortSide, :Bitrate, :Gop, :VideoCodec, :PicMarkInfo, :DarInfo, :Hdr, :VideoEnhance, :HiddenMarkInfo, :TextMarkInfo
|
3347
|
+
|
3348
|
+
def initialize(fps=nil, width=nil, height=nil, longside=nil, shortside=nil, bitrate=nil, gop=nil, videocodec=nil, picmarkinfo=nil, darinfo=nil, hdr=nil, videoenhance=nil, hiddenmarkinfo=nil, textmarkinfo=nil)
|
3349
|
+
@Fps = fps
|
3350
|
+
@Width = width
|
3351
|
+
@Height = height
|
3352
|
+
@LongSide = longside
|
3353
|
+
@ShortSide = shortside
|
3354
|
+
@Bitrate = bitrate
|
3355
|
+
@Gop = gop
|
3356
|
+
@VideoCodec = videocodec
|
3357
|
+
@PicMarkInfo = picmarkinfo
|
3358
|
+
@DarInfo = darinfo
|
3359
|
+
@Hdr = hdr
|
3360
|
+
@VideoEnhance = videoenhance
|
3361
|
+
@HiddenMarkInfo = hiddenmarkinfo
|
3362
|
+
@TextMarkInfo = textmarkinfo
|
3363
|
+
end
|
3364
|
+
|
3365
|
+
def deserialize(params)
|
3366
|
+
@Fps = params['Fps']
|
3367
|
+
@Width = params['Width']
|
3368
|
+
@Height = params['Height']
|
3369
|
+
@LongSide = params['LongSide']
|
3370
|
+
@ShortSide = params['ShortSide']
|
3371
|
+
@Bitrate = params['Bitrate']
|
3372
|
+
@Gop = params['Gop']
|
3373
|
+
@VideoCodec = params['VideoCodec']
|
3374
|
+
unless params['PicMarkInfo'].nil?
|
3375
|
+
@PicMarkInfo = []
|
3376
|
+
params['PicMarkInfo'].each do |i|
|
3377
|
+
picmarkinfoitem_tmp = PicMarkInfoItem.new
|
3378
|
+
picmarkinfoitem_tmp.deserialize(i)
|
3379
|
+
@PicMarkInfo << picmarkinfoitem_tmp
|
3380
|
+
end
|
3381
|
+
end
|
3382
|
+
unless params['DarInfo'].nil?
|
3383
|
+
@DarInfo = DarInfo.new
|
3384
|
+
@DarInfo.deserialize(params['DarInfo'])
|
3385
|
+
end
|
3386
|
+
@Hdr = params['Hdr']
|
3387
|
+
unless params['VideoEnhance'].nil?
|
3388
|
+
@VideoEnhance = VideoEnhance.new
|
3389
|
+
@VideoEnhance.deserialize(params['VideoEnhance'])
|
3390
|
+
end
|
3391
|
+
unless params['HiddenMarkInfo'].nil?
|
3392
|
+
@HiddenMarkInfo = HiddenMarkInfo.new
|
3393
|
+
@HiddenMarkInfo.deserialize(params['HiddenMarkInfo'])
|
3394
|
+
end
|
3395
|
+
unless params['TextMarkInfo'].nil?
|
3396
|
+
@TextMarkInfo = []
|
3397
|
+
params['TextMarkInfo'].each do |i|
|
3398
|
+
textmarkinfoitem_tmp = TextMarkInfoItem.new
|
3399
|
+
textmarkinfoitem_tmp.deserialize(i)
|
3400
|
+
@TextMarkInfo << textmarkinfoitem_tmp
|
3401
|
+
end
|
3402
|
+
end
|
3403
|
+
end
|
3404
|
+
end
|
3405
|
+
|
3406
|
+
# 任务结束后生成的文件视频信息
|
3407
|
+
class VideoInfoResultItem < TencentCloud::Common::AbstractModel
|
3408
|
+
# @param Stream: 视频流的流id。
|
3409
|
+
# @type Stream: Integer
|
3410
|
+
# @param Width: 视频宽度。
|
3411
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3412
|
+
# @type Width: Integer
|
3413
|
+
# @param Height: 视频高度。
|
3414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3415
|
+
# @type Height: Integer
|
3416
|
+
# @param Bitrate: 视频码率,单位:bps。
|
3417
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3418
|
+
# @type Bitrate: Integer
|
3419
|
+
# @param Fps: 视频帧率,用分数格式表示,如:25/1, 99/32等等。
|
3420
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3421
|
+
# @type Fps: String
|
3422
|
+
# @param Codec: 编码格式,如h264,h265等等 。
|
3423
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3424
|
+
# @type Codec: String
|
3425
|
+
# @param Rotate: 播放旋转角度,可选值0-360。
|
3426
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3427
|
+
# @type Rotate: Integer
|
3428
|
+
# @param Duration: 视频时长,单位:ms 。
|
3429
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3430
|
+
# @type Duration: Integer
|
3431
|
+
# @param PixFormat: 颜色空间,如yuv420p,yuv444p等等。
|
3432
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3433
|
+
# @type PixFormat: String
|
3434
|
+
|
3435
|
+
attr_accessor :Stream, :Width, :Height, :Bitrate, :Fps, :Codec, :Rotate, :Duration, :PixFormat
|
3436
|
+
|
3437
|
+
def initialize(stream=nil, width=nil, height=nil, bitrate=nil, fps=nil, codec=nil, rotate=nil, duration=nil, pixformat=nil)
|
3438
|
+
@Stream = stream
|
3439
|
+
@Width = width
|
3440
|
+
@Height = height
|
3441
|
+
@Bitrate = bitrate
|
3442
|
+
@Fps = fps
|
3443
|
+
@Codec = codec
|
3444
|
+
@Rotate = rotate
|
3445
|
+
@Duration = duration
|
3446
|
+
@PixFormat = pixformat
|
3447
|
+
end
|
3448
|
+
|
3449
|
+
def deserialize(params)
|
3450
|
+
@Stream = params['Stream']
|
3451
|
+
@Width = params['Width']
|
3452
|
+
@Height = params['Height']
|
3453
|
+
@Bitrate = params['Bitrate']
|
3454
|
+
@Fps = params['Fps']
|
3455
|
+
@Codec = params['Codec']
|
3456
|
+
@Rotate = params['Rotate']
|
3457
|
+
@Duration = params['Duration']
|
3458
|
+
@PixFormat = params['PixFormat']
|
3459
|
+
end
|
3460
|
+
end
|
3461
|
+
|
3462
|
+
# 综合画质修复,包括:去噪,去毛刺,细节增强,主观画质提升。
|
3463
|
+
class VideoRepair < TencentCloud::Common::AbstractModel
|
3464
|
+
# @param Type: 画质修复类型,可选值:weak,normal,strong;
|
3465
|
+
# 默认值: weak
|
3466
|
+
# @type Type: String
|
3467
|
+
|
3468
|
+
attr_accessor :Type
|
3469
|
+
|
3470
|
+
def initialize(type=nil)
|
3471
|
+
@Type = type
|
3472
|
+
end
|
3473
|
+
|
3474
|
+
def deserialize(params)
|
3475
|
+
@Type = params['Type']
|
3476
|
+
end
|
3477
|
+
end
|
3478
|
+
|
3479
|
+
# 视频超分
|
3480
|
+
class VideoSuperResolution < TencentCloud::Common::AbstractModel
|
3481
|
+
# @param Type: 超分视频类型:可选值:lq,hq
|
3482
|
+
# lq: 针对低清晰度有较多噪声视频的超分;
|
3483
|
+
# hq: 针对高清晰度视频超分;
|
3484
|
+
# 默认取值:lq。
|
3485
|
+
# @type Type: String
|
3486
|
+
# @param Size: 超分倍数,可选值:2。
|
3487
|
+
# 注意:当前只支持两倍超分。
|
3488
|
+
# @type Size: Integer
|
3489
|
+
|
3490
|
+
attr_accessor :Type, :Size
|
3491
|
+
|
3492
|
+
def initialize(type=nil, size=nil)
|
3493
|
+
@Type = type
|
3494
|
+
@Size = size
|
3495
|
+
end
|
3496
|
+
|
3497
|
+
def deserialize(params)
|
3498
|
+
@Type = params['Type']
|
3499
|
+
@Size = params['Size']
|
3500
|
+
end
|
3501
|
+
end
|
3502
|
+
|
3503
|
+
end
|
3504
|
+
end
|
3505
|
+
end
|
3506
|
+
|