tencentcloud-sdk-mps 3.0.661 → 3.0.662
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190612/client.rb +14 -3
- data/lib/v20190612/models.rb +1166 -48
- metadata +2 -2
data/lib/v20190612/models.rb
CHANGED
@@ -315,7 +315,7 @@ module TencentCloud
|
|
315
315
|
# @type AnimatedGraphicTask: :class:`Tencentcloud::Mps.v20190612.models.MediaProcessTaskAnimatedGraphicResult`
|
316
316
|
# @param SnapshotByTimeOffsetTask: 时间点截图任务输出
|
317
317
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
318
|
-
# @type SnapshotByTimeOffsetTask: :class:`Tencentcloud::Mps.v20190612.models.
|
318
|
+
# @type SnapshotByTimeOffsetTask: :class:`Tencentcloud::Mps.v20190612.models.MediaProcessTaskSnapshotByTimeOffsetResult`
|
319
319
|
# @param SampleSnapshotTask: 采样截图任务输出
|
320
320
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
321
321
|
# @type SampleSnapshotTask: :class:`Tencentcloud::Mps.v20190612.models.MediaProcessTaskSampleSnapshotResult`
|
@@ -359,7 +359,7 @@ module TencentCloud
|
|
359
359
|
@AnimatedGraphicTask.deserialize(params['AnimatedGraphicTask'])
|
360
360
|
end
|
361
361
|
unless params['SnapshotByTimeOffsetTask'].nil?
|
362
|
-
@SnapshotByTimeOffsetTask =
|
362
|
+
@SnapshotByTimeOffsetTask = MediaProcessTaskSnapshotByTimeOffsetResult.new
|
363
363
|
@SnapshotByTimeOffsetTask.deserialize(params['SnapshotByTimeOffsetTask'])
|
364
364
|
end
|
365
365
|
unless params['SampleSnapshotTask'].nil?
|
@@ -987,6 +987,7 @@ module TencentCloud
|
|
987
987
|
# @param HighlightSet: 视频智能精彩片段列表。
|
988
988
|
# @type HighlightSet: Array
|
989
989
|
# @param OutputStorage: 精彩片段的存储位置。
|
990
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
990
991
|
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
991
992
|
|
992
993
|
attr_accessor :HighlightSet, :OutputStorage
|
@@ -1453,6 +1454,9 @@ module TencentCloud
|
|
1453
1454
|
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
1454
1455
|
|
1455
1456
|
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
1457
|
+
extend Gem::Deprecate
|
1458
|
+
deprecate :OutputStorage, :none, 2023, 9
|
1459
|
+
deprecate :OutputStorage=, :none, 2023, 9
|
1456
1460
|
|
1457
1461
|
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
1458
1462
|
@SegmentSet = segmentset
|
@@ -2191,15 +2195,12 @@ module TencentCloud
|
|
2191
2195
|
# @type SegmentSet: Array
|
2192
2196
|
# @param SubtitlePath: 字幕文件地址。
|
2193
2197
|
# @type SubtitlePath: String
|
2194
|
-
# @param OutputStorage: 字幕文件存储位置。
|
2195
|
-
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
2196
2198
|
|
2197
|
-
attr_accessor :SegmentSet, :SubtitlePath
|
2199
|
+
attr_accessor :SegmentSet, :SubtitlePath
|
2198
2200
|
|
2199
|
-
def initialize(segmentset=nil, subtitlepath=nil
|
2201
|
+
def initialize(segmentset=nil, subtitlepath=nil)
|
2200
2202
|
@SegmentSet = segmentset
|
2201
2203
|
@SubtitlePath = subtitlepath
|
2202
|
-
@OutputStorage = outputstorage
|
2203
2204
|
end
|
2204
2205
|
|
2205
2206
|
def deserialize(params)
|
@@ -2212,10 +2213,6 @@ module TencentCloud
|
|
2212
2213
|
end
|
2213
2214
|
end
|
2214
2215
|
@SubtitlePath = params['SubtitlePath']
|
2215
|
-
unless params['OutputStorage'].nil?
|
2216
|
-
@OutputStorage = TaskOutputStorage.new
|
2217
|
-
@OutputStorage.deserialize(params['OutputStorage'])
|
2218
|
-
end
|
2219
2216
|
end
|
2220
2217
|
end
|
2221
2218
|
|
@@ -2512,6 +2509,7 @@ module TencentCloud
|
|
2512
2509
|
# 内容审核鉴黄任务输入参数类型
|
2513
2510
|
class AiReviewPornTaskInput < TencentCloud::Common::AbstractModel
|
2514
2511
|
# @param Definition: 鉴黄模板 ID。
|
2512
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2515
2513
|
# @type Definition: Integer
|
2516
2514
|
|
2517
2515
|
attr_accessor :Definition
|
@@ -3935,12 +3933,16 @@ module TencentCloud
|
|
3935
3933
|
# Aws SQS 队列信息
|
3936
3934
|
class AwsSQS < TencentCloud::Common::AbstractModel
|
3937
3935
|
# @param SQSRegion: SQS 队列区域。
|
3936
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3938
3937
|
# @type SQSRegion: String
|
3939
3938
|
# @param SQSQueueName: SQS 队列名称。
|
3939
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3940
3940
|
# @type SQSQueueName: String
|
3941
3941
|
# @param S3SecretId: 读写SQS的秘钥id。
|
3942
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3942
3943
|
# @type S3SecretId: String
|
3943
3944
|
# @param S3SecretKey: 读写SQS的秘钥key。
|
3945
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3944
3946
|
# @type S3SecretKey: String
|
3945
3947
|
|
3946
3948
|
attr_accessor :SQSRegion, :SQSQueueName, :S3SecretId, :S3SecretKey
|
@@ -4119,16 +4121,835 @@ module TencentCloud
|
|
4119
4121
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4120
4122
|
# @type Type: String
|
4121
4123
|
|
4122
|
-
attr_accessor :Switch, :Type
|
4124
|
+
attr_accessor :Switch, :Type
|
4125
|
+
|
4126
|
+
def initialize(switch=nil, type=nil)
|
4127
|
+
@Switch = switch
|
4128
|
+
@Type = type
|
4129
|
+
end
|
4130
|
+
|
4131
|
+
def deserialize(params)
|
4132
|
+
@Switch = params['Switch']
|
4133
|
+
@Type = params['Type']
|
4134
|
+
end
|
4135
|
+
end
|
4136
|
+
|
4137
|
+
# 视频编辑/合成任务 音频元素信息。
|
4138
|
+
class ComposeAudioItem < TencentCloud::Common::AbstractModel
|
4139
|
+
# @param SourceMedia: 元素对应媒体信息。
|
4140
|
+
# @type SourceMedia: :class:`Tencentcloud::Mps.v20190612.models.ComposeSourceMedia`
|
4141
|
+
# @param TrackTime: 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。
|
4142
|
+
# @type TrackTime: :class:`Tencentcloud::Mps.v20190612.models.ComposeTrackTime`
|
4143
|
+
# @param AudioOperations: 对音频进行操作,如静音等。
|
4144
|
+
# @type AudioOperations: Array
|
4145
|
+
|
4146
|
+
attr_accessor :SourceMedia, :TrackTime, :AudioOperations
|
4147
|
+
|
4148
|
+
def initialize(sourcemedia=nil, tracktime=nil, audiooperations=nil)
|
4149
|
+
@SourceMedia = sourcemedia
|
4150
|
+
@TrackTime = tracktime
|
4151
|
+
@AudioOperations = audiooperations
|
4152
|
+
end
|
4153
|
+
|
4154
|
+
def deserialize(params)
|
4155
|
+
unless params['SourceMedia'].nil?
|
4156
|
+
@SourceMedia = ComposeSourceMedia.new
|
4157
|
+
@SourceMedia.deserialize(params['SourceMedia'])
|
4158
|
+
end
|
4159
|
+
unless params['TrackTime'].nil?
|
4160
|
+
@TrackTime = ComposeTrackTime.new
|
4161
|
+
@TrackTime.deserialize(params['TrackTime'])
|
4162
|
+
end
|
4163
|
+
unless params['AudioOperations'].nil?
|
4164
|
+
@AudioOperations = []
|
4165
|
+
params['AudioOperations'].each do |i|
|
4166
|
+
composeaudiooperation_tmp = ComposeAudioOperation.new
|
4167
|
+
composeaudiooperation_tmp.deserialize(i)
|
4168
|
+
@AudioOperations << composeaudiooperation_tmp
|
4169
|
+
end
|
4170
|
+
end
|
4171
|
+
end
|
4172
|
+
end
|
4173
|
+
|
4174
|
+
# 视频编辑/合成任务 音频操作。
|
4175
|
+
class ComposeAudioOperation < TencentCloud::Common::AbstractModel
|
4176
|
+
# @param Type: 音频操作类型,取值有:
|
4177
|
+
# <li>Volume:音量调节。</li>
|
4178
|
+
# @type Type: String
|
4179
|
+
# @param Volume: 当 Type = Volume 时有效。音量调节参数,取值范围: 0~5。
|
4180
|
+
# <li>0 表示静音。</li>
|
4181
|
+
# <li>小于1 表示降低音量。</li>
|
4182
|
+
# <li>1 表示不变。</li>
|
4183
|
+
# <li>大于1表示升高音量。</li>
|
4184
|
+
# @type Volume: Float
|
4185
|
+
|
4186
|
+
attr_accessor :Type, :Volume
|
4187
|
+
|
4188
|
+
def initialize(type=nil, volume=nil)
|
4189
|
+
@Type = type
|
4190
|
+
@Volume = volume
|
4191
|
+
end
|
4192
|
+
|
4193
|
+
def deserialize(params)
|
4194
|
+
@Type = params['Type']
|
4195
|
+
@Volume = params['Volume']
|
4196
|
+
end
|
4197
|
+
end
|
4198
|
+
|
4199
|
+
# 视频编辑/合成任务 音频流信息。
|
4200
|
+
class ComposeAudioStream < TencentCloud::Common::AbstractModel
|
4201
|
+
# @param Codec: 音频流的编码方式,可选值:
|
4202
|
+
# <li>AAC:AAC 编码(默认),用于容器为 mp4。</li>
|
4203
|
+
# <li>MP3:mp3 编码,用于容器为 mp3。</li>
|
4204
|
+
# @type Codec: String
|
4205
|
+
# @param SampleRate: 音频流的采样率,单位:Hz,可选值:
|
4206
|
+
# <li>16000(默认)</li>
|
4207
|
+
# <li>32000</li>
|
4208
|
+
# <li>44100</li>
|
4209
|
+
# <li>48000</li>
|
4210
|
+
# @type SampleRate: Integer
|
4211
|
+
# @param AudioChannel: 声道数,可选值:
|
4212
|
+
# <li>1:单声道 。</li>
|
4213
|
+
# <li>2:双声道(默认)。</li>
|
4214
|
+
# @type AudioChannel: Integer
|
4215
|
+
|
4216
|
+
attr_accessor :Codec, :SampleRate, :AudioChannel
|
4217
|
+
|
4218
|
+
def initialize(codec=nil, samplerate=nil, audiochannel=nil)
|
4219
|
+
@Codec = codec
|
4220
|
+
@SampleRate = samplerate
|
4221
|
+
@AudioChannel = audiochannel
|
4222
|
+
end
|
4223
|
+
|
4224
|
+
def deserialize(params)
|
4225
|
+
@Codec = params['Codec']
|
4226
|
+
@SampleRate = params['SampleRate']
|
4227
|
+
@AudioChannel = params['AudioChannel']
|
4228
|
+
end
|
4229
|
+
end
|
4230
|
+
|
4231
|
+
# 视频编辑/合成任务画布信息。
|
4232
|
+
class ComposeCanvas < TencentCloud::Common::AbstractModel
|
4233
|
+
# @param Color: 背景颜色对应的 RGB 参考值,取值格式: #RRGGBB,如 #F0F0F0 。
|
4234
|
+
# 默认值:#000000(黑色)。
|
4235
|
+
# @type Color: String
|
4236
|
+
# @param Width: 画布宽度,即输出视频的宽度,取值范围:0~ 3840,单位:px。
|
4237
|
+
# 默认值:0,表示和第一个视频宽度一致。
|
4238
|
+
# @type Width: Integer
|
4239
|
+
# @param Height: 画布高度,即输出视频的高度,取值范围:0~ 3840,单位:px。
|
4240
|
+
# 默认值:0,表示和第一个视频高度一致。
|
4241
|
+
# @type Height: Integer
|
4242
|
+
|
4243
|
+
attr_accessor :Color, :Width, :Height
|
4244
|
+
|
4245
|
+
def initialize(color=nil, width=nil, height=nil)
|
4246
|
+
@Color = color
|
4247
|
+
@Width = width
|
4248
|
+
@Height = height
|
4249
|
+
end
|
4250
|
+
|
4251
|
+
def deserialize(params)
|
4252
|
+
@Color = params['Color']
|
4253
|
+
@Width = params['Width']
|
4254
|
+
@Height = params['Height']
|
4255
|
+
end
|
4256
|
+
end
|
4257
|
+
|
4258
|
+
# 视频编辑/合成任务 空白占位元素信息。
|
4259
|
+
class ComposeEmptyItem < TencentCloud::Common::AbstractModel
|
4260
|
+
# @param Duration: 元素时长,时间支持:
|
4261
|
+
# <li>以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒。</li>
|
4262
|
+
# @type Duration: String
|
4263
|
+
|
4264
|
+
attr_accessor :Duration
|
4265
|
+
|
4266
|
+
def initialize(duration=nil)
|
4267
|
+
@Duration = duration
|
4268
|
+
end
|
4269
|
+
|
4270
|
+
def deserialize(params)
|
4271
|
+
@Duration = params['Duration']
|
4272
|
+
end
|
4273
|
+
end
|
4274
|
+
|
4275
|
+
# 视频编辑/合成任务 图片元素信息。
|
4276
|
+
class ComposeImageItem < TencentCloud::Common::AbstractModel
|
4277
|
+
# @param SourceMedia: 元素对应媒体信息。
|
4278
|
+
# @type SourceMedia: :class:`Tencentcloud::Mps.v20190612.models.ComposeSourceMedia`
|
4279
|
+
# @param TrackTime: 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。
|
4280
|
+
# @type TrackTime: :class:`Tencentcloud::Mps.v20190612.models.ComposeTrackTime`
|
4281
|
+
# @param XPos: 元素中心点距离画布原点的水平位置。支持 %、px 两种格式:
|
4282
|
+
# <li>当字符串以 % 结尾,表示元素 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。</li>
|
4283
|
+
# <li>当字符串以 px 结尾,表示元素 XPos 单位为像素,如 100px 表示 XPos 为100像素。</li>
|
4284
|
+
# 默认:50%。
|
4285
|
+
# @type XPos: String
|
4286
|
+
# @param YPos: 元素中心点距离画布原点的垂直位置。支持 %、px 两种格式:
|
4287
|
+
# <li>当字符串以 % 结尾,表示元素 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。</li>
|
4288
|
+
# <li>当字符串以 px 结尾,表示元素 YPos 单位为像素,如 100px 表示 YPos 为100像素。</li>
|
4289
|
+
# 默认:50%。
|
4290
|
+
# @type YPos: String
|
4291
|
+
# @param Width: 视频片段的宽度。支持 %、px 两种格式:
|
4292
|
+
# <li>当字符串以 % 结尾,表示元素 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。</li>
|
4293
|
+
# <li>当字符串以 px 结尾,表示元素 Width 单位为像素,如 100px 表示 Width 为100像素。</li>
|
4294
|
+
# 为空(或0) 的场景:
|
4295
|
+
# <li>当 Width、Height 均为空,则 Width 和 Height 取源素材本身的 Width、Height。</li>
|
4296
|
+
# <li>当 Width 为空,Height 非空,则 Width 按源素材比例缩放。</li>
|
4297
|
+
# <li>当 Width 非空,Height 为空,则 Height 按源素材比例缩放。</li>
|
4298
|
+
# @type Width: String
|
4299
|
+
# @param Height: 元素的高度。支持 %、px 两种格式:
|
4300
|
+
# <li>当字符串以 % 结尾,表示元素 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。</li>
|
4301
|
+
# <li>当字符串以 px 结尾,表示元素 Height 单位为像素,如 100px 表示 Height 为100像素。</li>
|
4302
|
+
# 为空(或0) 的场景:
|
4303
|
+
# <li>当 Width、Height 均为空,则 Width 和 Height 取源素材本身的 Width、Height。</li>
|
4304
|
+
# <li>当 Width 为空,Height 非空,则 Width 按源素材比例缩放。</li>
|
4305
|
+
# <li>当 Width 非空,Height 为空,则 Height 按源素材比例缩放。</li>
|
4306
|
+
# @type Height: String
|
4307
|
+
# @param ImageOperations: 对图像画面进行的操作,如图像旋转等。
|
4308
|
+
# @type ImageOperations: Array
|
4309
|
+
|
4310
|
+
attr_accessor :SourceMedia, :TrackTime, :XPos, :YPos, :Width, :Height, :ImageOperations
|
4311
|
+
|
4312
|
+
def initialize(sourcemedia=nil, tracktime=nil, xpos=nil, ypos=nil, width=nil, height=nil, imageoperations=nil)
|
4313
|
+
@SourceMedia = sourcemedia
|
4314
|
+
@TrackTime = tracktime
|
4315
|
+
@XPos = xpos
|
4316
|
+
@YPos = ypos
|
4317
|
+
@Width = width
|
4318
|
+
@Height = height
|
4319
|
+
@ImageOperations = imageoperations
|
4320
|
+
end
|
4321
|
+
|
4322
|
+
def deserialize(params)
|
4323
|
+
unless params['SourceMedia'].nil?
|
4324
|
+
@SourceMedia = ComposeSourceMedia.new
|
4325
|
+
@SourceMedia.deserialize(params['SourceMedia'])
|
4326
|
+
end
|
4327
|
+
unless params['TrackTime'].nil?
|
4328
|
+
@TrackTime = ComposeTrackTime.new
|
4329
|
+
@TrackTime.deserialize(params['TrackTime'])
|
4330
|
+
end
|
4331
|
+
@XPos = params['XPos']
|
4332
|
+
@YPos = params['YPos']
|
4333
|
+
@Width = params['Width']
|
4334
|
+
@Height = params['Height']
|
4335
|
+
unless params['ImageOperations'].nil?
|
4336
|
+
@ImageOperations = []
|
4337
|
+
params['ImageOperations'].each do |i|
|
4338
|
+
composeimageoperation_tmp = ComposeImageOperation.new
|
4339
|
+
composeimageoperation_tmp.deserialize(i)
|
4340
|
+
@ImageOperations << composeimageoperation_tmp
|
4341
|
+
end
|
4342
|
+
end
|
4343
|
+
end
|
4344
|
+
end
|
4345
|
+
|
4346
|
+
# 视频编辑/合成任务 视频图像转换操作。
|
4347
|
+
class ComposeImageOperation < TencentCloud::Common::AbstractModel
|
4348
|
+
# @param Type: 类型,取值有:
|
4349
|
+
# <li>Rotate:图像旋转。</li>
|
4350
|
+
# <li>Flip:图像翻转。</li>
|
4351
|
+
# @type Type: String
|
4352
|
+
# @param RotateAngle: 当 Type = Rotate 时有效。图像以中心点为原点进行旋转的角度,取值范围0~360。
|
4353
|
+
# @type RotateAngle: Float
|
4354
|
+
# @param FlipType: 当 Type = Flip 时有效。图像翻转动作,取值有:
|
4355
|
+
# <li>Horizental:水平翻转,即左右镜像。</li>
|
4356
|
+
# <li>Vertical:垂直翻转,即上下镜像。</li>
|
4357
|
+
# @type FlipType: String
|
4358
|
+
|
4359
|
+
attr_accessor :Type, :RotateAngle, :FlipType
|
4360
|
+
|
4361
|
+
def initialize(type=nil, rotateangle=nil, fliptype=nil)
|
4362
|
+
@Type = type
|
4363
|
+
@RotateAngle = rotateangle
|
4364
|
+
@FlipType = fliptype
|
4365
|
+
end
|
4366
|
+
|
4367
|
+
def deserialize(params)
|
4368
|
+
@Type = params['Type']
|
4369
|
+
@RotateAngle = params['RotateAngle']
|
4370
|
+
@FlipType = params['FlipType']
|
4371
|
+
end
|
4372
|
+
end
|
4373
|
+
|
4374
|
+
# 视频编辑/合成任务 信息。
|
4375
|
+
|
4376
|
+
# 关于 轨道、元素、时间轴 关系示意图:
|
4377
|
+
|
4378
|
+
# 
|
4379
|
+
class ComposeMediaConfig < TencentCloud::Common::AbstractModel
|
4380
|
+
# @param TargetInfo: 合成目标视频信息。
|
4381
|
+
# @type TargetInfo: :class:`Tencentcloud::Mps.v20190612.models.ComposeTargetInfo`
|
4382
|
+
# @param Canvas: 合成目标视频的画布信息。
|
4383
|
+
# @type Canvas: :class:`Tencentcloud::Mps.v20190612.models.ComposeCanvas`
|
4384
|
+
# @param Styles: 全局样式,和轨道 Tracks 配合使用,用于定于样式,如字幕样式。
|
4385
|
+
# @type Styles: Array
|
4386
|
+
# @param Tracks: 用于描述合成视频的轨道列表,包括:视频、音频、图片、文字等元素组成的多个轨道信息。关于轨道和时间:
|
4387
|
+
# <ul><li>轨道时间轴即为目标视频时间轴。</li><li>时间轴上相同时间点的不同轨道上的元素会重叠:</li><ul><li>视频、图片、文字:按轨道顺序进行图像的叠加,轨道顺序靠前的在上面。</li><li>音频 :进行混音。</li></ul></ul>注意:同一轨道中各个元素(除字幕元素外)的轨道时间不能重叠。
|
4388
|
+
# @type Tracks: Array
|
4389
|
+
|
4390
|
+
attr_accessor :TargetInfo, :Canvas, :Styles, :Tracks
|
4391
|
+
|
4392
|
+
def initialize(targetinfo=nil, canvas=nil, styles=nil, tracks=nil)
|
4393
|
+
@TargetInfo = targetinfo
|
4394
|
+
@Canvas = canvas
|
4395
|
+
@Styles = styles
|
4396
|
+
@Tracks = tracks
|
4397
|
+
end
|
4398
|
+
|
4399
|
+
def deserialize(params)
|
4400
|
+
unless params['TargetInfo'].nil?
|
4401
|
+
@TargetInfo = ComposeTargetInfo.new
|
4402
|
+
@TargetInfo.deserialize(params['TargetInfo'])
|
4403
|
+
end
|
4404
|
+
unless params['Canvas'].nil?
|
4405
|
+
@Canvas = ComposeCanvas.new
|
4406
|
+
@Canvas.deserialize(params['Canvas'])
|
4407
|
+
end
|
4408
|
+
unless params['Styles'].nil?
|
4409
|
+
@Styles = []
|
4410
|
+
params['Styles'].each do |i|
|
4411
|
+
composestyles_tmp = ComposeStyles.new
|
4412
|
+
composestyles_tmp.deserialize(i)
|
4413
|
+
@Styles << composestyles_tmp
|
4414
|
+
end
|
4415
|
+
end
|
4416
|
+
unless params['Tracks'].nil?
|
4417
|
+
@Tracks = []
|
4418
|
+
params['Tracks'].each do |i|
|
4419
|
+
composemediatrack_tmp = ComposeMediaTrack.new
|
4420
|
+
composemediatrack_tmp.deserialize(i)
|
4421
|
+
@Tracks << composemediatrack_tmp
|
4422
|
+
end
|
4423
|
+
end
|
4424
|
+
end
|
4425
|
+
end
|
4426
|
+
|
4427
|
+
# 视频编辑/合成任务 轨道元素信息。
|
4428
|
+
class ComposeMediaItem < TencentCloud::Common::AbstractModel
|
4429
|
+
# @param Type: 元素类型。取值有:
|
4430
|
+
# <li>Video:视频元素。</li>
|
4431
|
+
# <li>Audio:音频元素。</li>
|
4432
|
+
# <li>Image:图片元素。</li>
|
4433
|
+
# <li>Transition:转场元素。</li>
|
4434
|
+
# <li>Subtitle:字幕元素。</li>
|
4435
|
+
# <li>Empty:空白元素。</li>
|
4436
|
+
# @type Type: String
|
4437
|
+
# @param Video: 视频元素,当 Type = Video 时有效。
|
4438
|
+
# @type Video: :class:`Tencentcloud::Mps.v20190612.models.ComposeVideoItem`
|
4439
|
+
# @param Audio: 音频元素,当 Type = Audio 时有效。
|
4440
|
+
# @type Audio: :class:`Tencentcloud::Mps.v20190612.models.ComposeAudioItem`
|
4441
|
+
# @param Image: 图片元素,当 Type = Image 时有效。
|
4442
|
+
# @type Image: :class:`Tencentcloud::Mps.v20190612.models.ComposeImageItem`
|
4443
|
+
# @param Transition: 转场元素,当 Type = Transition 时有效。
|
4444
|
+
# @type Transition: :class:`Tencentcloud::Mps.v20190612.models.ComposeTransitionItem`
|
4445
|
+
# @param Subtitle: 字幕元素,当 Type = Subtitle 是有效。
|
4446
|
+
# @type Subtitle: :class:`Tencentcloud::Mps.v20190612.models.ComposeSubtitleItem`
|
4447
|
+
# @param Empty: 空白元素,当 Type = Empty 时有效。用于时间轴的占位。
|
4448
|
+
# @type Empty: :class:`Tencentcloud::Mps.v20190612.models.ComposeEmptyItem`
|
4449
|
+
|
4450
|
+
attr_accessor :Type, :Video, :Audio, :Image, :Transition, :Subtitle, :Empty
|
4451
|
+
|
4452
|
+
def initialize(type=nil, video=nil, audio=nil, image=nil, transition=nil, subtitle=nil, empty=nil)
|
4453
|
+
@Type = type
|
4454
|
+
@Video = video
|
4455
|
+
@Audio = audio
|
4456
|
+
@Image = image
|
4457
|
+
@Transition = transition
|
4458
|
+
@Subtitle = subtitle
|
4459
|
+
@Empty = empty
|
4460
|
+
end
|
4461
|
+
|
4462
|
+
def deserialize(params)
|
4463
|
+
@Type = params['Type']
|
4464
|
+
unless params['Video'].nil?
|
4465
|
+
@Video = ComposeVideoItem.new
|
4466
|
+
@Video.deserialize(params['Video'])
|
4467
|
+
end
|
4468
|
+
unless params['Audio'].nil?
|
4469
|
+
@Audio = ComposeAudioItem.new
|
4470
|
+
@Audio.deserialize(params['Audio'])
|
4471
|
+
end
|
4472
|
+
unless params['Image'].nil?
|
4473
|
+
@Image = ComposeImageItem.new
|
4474
|
+
@Image.deserialize(params['Image'])
|
4475
|
+
end
|
4476
|
+
unless params['Transition'].nil?
|
4477
|
+
@Transition = ComposeTransitionItem.new
|
4478
|
+
@Transition.deserialize(params['Transition'])
|
4479
|
+
end
|
4480
|
+
unless params['Subtitle'].nil?
|
4481
|
+
@Subtitle = ComposeSubtitleItem.new
|
4482
|
+
@Subtitle.deserialize(params['Subtitle'])
|
4483
|
+
end
|
4484
|
+
unless params['Empty'].nil?
|
4485
|
+
@Empty = ComposeEmptyItem.new
|
4486
|
+
@Empty.deserialize(params['Empty'])
|
4487
|
+
end
|
4488
|
+
end
|
4489
|
+
end
|
4490
|
+
|
4491
|
+
# 视频编辑/合成任务 轨道信息。
|
4492
|
+
class ComposeMediaTrack < TencentCloud::Common::AbstractModel
|
4493
|
+
# @param Type: 轨道类型,取值有:<ul><li>Video :视频轨道。视频轨道可由以下元素组成:</li><ul><li>Video 元素</li><li>Image 元素</li><li>Transition 元素</li><li>Empty 元素</li></ul><li>Audio :音频轨道。音频轨道可由以下元素组成:</li><ul><li>Audio 元素</li><li>Transition 元素</li><li>Empty 元素</li></ul><li>Title:文字轨道。文字轨道可由以下元素组成:</li><ul><li>Subtitle 元素</li></ul>
|
4494
|
+
# @type Type: String
|
4495
|
+
# @param Items: 轨道上的元素列表。
|
4496
|
+
# @type Items: Array
|
4497
|
+
|
4498
|
+
attr_accessor :Type, :Items
|
4499
|
+
|
4500
|
+
def initialize(type=nil, items=nil)
|
4501
|
+
@Type = type
|
4502
|
+
@Items = items
|
4503
|
+
end
|
4504
|
+
|
4505
|
+
def deserialize(params)
|
4506
|
+
@Type = params['Type']
|
4507
|
+
unless params['Items'].nil?
|
4508
|
+
@Items = []
|
4509
|
+
params['Items'].each do |i|
|
4510
|
+
composemediaitem_tmp = ComposeMediaItem.new
|
4511
|
+
composemediaitem_tmp.deserialize(i)
|
4512
|
+
@Items << composemediaitem_tmp
|
4513
|
+
end
|
4514
|
+
end
|
4515
|
+
end
|
4516
|
+
end
|
4517
|
+
|
4518
|
+
# 视频编辑/合成任务 媒体素材源信息。
|
4519
|
+
class ComposeSourceMedia < TencentCloud::Common::AbstractModel
|
4520
|
+
# @param FileId: 媒体对应的素材ID,即 FileInfos 列表中对应素材的 ID。
|
4521
|
+
# @type FileId: String
|
4522
|
+
# @param StartTime: 媒体位于素材的起始时间,时间点支持 s、% 两种格式:
|
4523
|
+
# <li>当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;</li>
|
4524
|
+
# <li>当字符串以 % 结尾,表示时间点为素材时长的百分比大小,如10%表示时间点为素材第10% 的时刻。</li>
|
4525
|
+
# 默认:0s
|
4526
|
+
# @type StartTime: String
|
4527
|
+
# @param EndTime: 媒体位于素材的结束时间,和 StartTime 构成媒体在源素材的时间区间,时间点支持 s、% 两种格式:
|
4528
|
+
# <li>当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;</li>
|
4529
|
+
# <li>当字符串以 % 结尾,表示时间点为素材时长的百分比大小,如10%表示时间点为素材第10%的时间。</li>
|
4530
|
+
# 默认:如果对应轨道时长有设置,则默认轨道时长,否则为素材时长,无时长的素材默认为 1 秒。
|
4531
|
+
# 注意:至少需要大于 StartTime 0.02 秒。
|
4532
|
+
# @type EndTime: String
|
4533
|
+
|
4534
|
+
attr_accessor :FileId, :StartTime, :EndTime
|
4535
|
+
|
4536
|
+
def initialize(fileid=nil, starttime=nil, endtime=nil)
|
4537
|
+
@FileId = fileid
|
4538
|
+
@StartTime = starttime
|
4539
|
+
@EndTime = endtime
|
4540
|
+
end
|
4541
|
+
|
4542
|
+
def deserialize(params)
|
4543
|
+
@FileId = params['FileId']
|
4544
|
+
@StartTime = params['StartTime']
|
4545
|
+
@EndTime = params['EndTime']
|
4546
|
+
end
|
4547
|
+
end
|
4548
|
+
|
4549
|
+
# 视频编辑/合成任务 样式信息。
|
4550
|
+
class ComposeStyles < TencentCloud::Common::AbstractModel
|
4551
|
+
# @param Id: 样式 Id,用于和轨道元素中的样式关联。
|
4552
|
+
# 注意:允许字母、数字、-、_ 组合,最长 32 字符。
|
4553
|
+
# @type Id: String
|
4554
|
+
# @param Type: 样式类型,取值有:
|
4555
|
+
# <li>Subtitle:字幕样式。</li>
|
4556
|
+
# @type Type: String
|
4557
|
+
# @param Subtitle: 字幕样式信息,当 Type = Subtitle 时有效。
|
4558
|
+
# @type Subtitle: :class:`Tencentcloud::Mps.v20190612.models.ComposeSubtitleStyle`
|
4559
|
+
|
4560
|
+
attr_accessor :Id, :Type, :Subtitle
|
4561
|
+
|
4562
|
+
def initialize(id=nil, type=nil, subtitle=nil)
|
4563
|
+
@Id = id
|
4564
|
+
@Type = type
|
4565
|
+
@Subtitle = subtitle
|
4566
|
+
end
|
4567
|
+
|
4568
|
+
def deserialize(params)
|
4569
|
+
@Id = params['Id']
|
4570
|
+
@Type = params['Type']
|
4571
|
+
unless params['Subtitle'].nil?
|
4572
|
+
@Subtitle = ComposeSubtitleStyle.new
|
4573
|
+
@Subtitle.deserialize(params['Subtitle'])
|
4574
|
+
end
|
4575
|
+
end
|
4576
|
+
end
|
4577
|
+
|
4578
|
+
# 视频编辑/合成任务 字幕元素信息。
|
4579
|
+
class ComposeSubtitleItem < TencentCloud::Common::AbstractModel
|
4580
|
+
# @param StyleId: 字幕样式,Styles 列表中对应的 Subtitle样式的 ID。
|
4581
|
+
# @type StyleId: String
|
4582
|
+
# @param Text: 字幕文本。
|
4583
|
+
# @type Text: String
|
4584
|
+
# @param TrackTime: 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。
|
4585
|
+
# @type TrackTime: :class:`Tencentcloud::Mps.v20190612.models.ComposeTrackTime`
|
4586
|
+
|
4587
|
+
attr_accessor :StyleId, :Text, :TrackTime
|
4588
|
+
|
4589
|
+
def initialize(styleid=nil, text=nil, tracktime=nil)
|
4590
|
+
@StyleId = styleid
|
4591
|
+
@Text = text
|
4592
|
+
@TrackTime = tracktime
|
4593
|
+
end
|
4594
|
+
|
4595
|
+
def deserialize(params)
|
4596
|
+
@StyleId = params['StyleId']
|
4597
|
+
@Text = params['Text']
|
4598
|
+
unless params['TrackTime'].nil?
|
4599
|
+
@TrackTime = ComposeTrackTime.new
|
4600
|
+
@TrackTime.deserialize(params['TrackTime'])
|
4601
|
+
end
|
4602
|
+
end
|
4603
|
+
end
|
4604
|
+
|
4605
|
+
# 视频编辑/合成任务 字幕样式。
|
4606
|
+
class ComposeSubtitleStyle < TencentCloud::Common::AbstractModel
|
4607
|
+
# @param Height: 字幕高度。支持 %、px 两种格式:
|
4608
|
+
# <li>当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。</li>
|
4609
|
+
# <li>当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。</li>
|
4610
|
+
# 默认为 FontSize 大小。
|
4611
|
+
# @type Height: String
|
4612
|
+
# @param MarginBottom: 字幕距离下边框距离,支持 %、px 两种格式:
|
4613
|
+
# <li>当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。</li>
|
4614
|
+
# <li>当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。</li>
|
4615
|
+
# 默认:0px
|
4616
|
+
# @type MarginBottom: String
|
4617
|
+
# @param FontType: 字体类型,支持:
|
4618
|
+
# <li>SimHei:黑体(默认)。</li>
|
4619
|
+
# <li>SimSun:宋体。</li>
|
4620
|
+
# @type FontType: String
|
4621
|
+
# @param FontSize: 字体大小,支持 %、px 两种格式:
|
4622
|
+
# <li>当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。</li>
|
4623
|
+
# <li>当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。</li>
|
4624
|
+
# 默认:2%
|
4625
|
+
# @type FontSize: String
|
4626
|
+
# @param FontBold: 是否使用粗体,和字体相关,可选值:
|
4627
|
+
# <li>0:否(默认)。</li>
|
4628
|
+
# <li>1:是。</li>
|
4629
|
+
# @type FontBold: Integer
|
4630
|
+
# @param FontItalic: 是否使用斜体,和字体相关,可选值:
|
4631
|
+
# <li>0:否(默认)。</li>
|
4632
|
+
# <li>1:是。</li>
|
4633
|
+
# @type FontItalic: Integer
|
4634
|
+
# @param FontColor: 字体颜色,格式:#RRGGBBAA。
|
4635
|
+
# 默认值:0x000000FF(黑色)。
|
4636
|
+
# 注意:其中 AA 部分指的是透明度,为可选。
|
4637
|
+
# @type FontColor: String
|
4638
|
+
# @param FontAlign: 文字对齐方式:
|
4639
|
+
# <li>Center:居中(默认)。</li>
|
4640
|
+
# <li>Left:左对齐。</li>
|
4641
|
+
# <li>Right:右对齐。</li>
|
4642
|
+
# @type FontAlign: String
|
4643
|
+
# @param FontAlignMargin: 用于字幕对齐留白:
|
4644
|
+
# <li>FontAlign=Left 时,表示距离左边距离。</li>
|
4645
|
+
# <li>FontAlign=Right时,表示距离右边距离。</li>
|
4646
|
+
# 支持 %、px 两种格式:
|
4647
|
+
# <li>当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。</li>
|
4648
|
+
# <li>当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。</li>
|
4649
|
+
# @type FontAlignMargin: String
|
4650
|
+
# @param BorderWidth: 字体边框宽度,支持 %、px 两种格式:
|
4651
|
+
# <li>当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。</li>
|
4652
|
+
# <li>当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。</li>
|
4653
|
+
# 默认: 0,表示不需要边框。
|
4654
|
+
# @type BorderWidth: String
|
4655
|
+
# @param BorderColor: 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。
|
4656
|
+
# @type BorderColor: String
|
4657
|
+
# @param BottomColor: 文字底色,其值格式和 FontColor 一致。
|
4658
|
+
# 默认为空, 表示不使用底色。
|
4659
|
+
# @type BottomColor: String
|
4660
|
+
|
4661
|
+
attr_accessor :Height, :MarginBottom, :FontType, :FontSize, :FontBold, :FontItalic, :FontColor, :FontAlign, :FontAlignMargin, :BorderWidth, :BorderColor, :BottomColor
|
4662
|
+
|
4663
|
+
def initialize(height=nil, marginbottom=nil, fonttype=nil, fontsize=nil, fontbold=nil, fontitalic=nil, fontcolor=nil, fontalign=nil, fontalignmargin=nil, borderwidth=nil, bordercolor=nil, bottomcolor=nil)
|
4664
|
+
@Height = height
|
4665
|
+
@MarginBottom = marginbottom
|
4666
|
+
@FontType = fonttype
|
4667
|
+
@FontSize = fontsize
|
4668
|
+
@FontBold = fontbold
|
4669
|
+
@FontItalic = fontitalic
|
4670
|
+
@FontColor = fontcolor
|
4671
|
+
@FontAlign = fontalign
|
4672
|
+
@FontAlignMargin = fontalignmargin
|
4673
|
+
@BorderWidth = borderwidth
|
4674
|
+
@BorderColor = bordercolor
|
4675
|
+
@BottomColor = bottomcolor
|
4676
|
+
end
|
4677
|
+
|
4678
|
+
def deserialize(params)
|
4679
|
+
@Height = params['Height']
|
4680
|
+
@MarginBottom = params['MarginBottom']
|
4681
|
+
@FontType = params['FontType']
|
4682
|
+
@FontSize = params['FontSize']
|
4683
|
+
@FontBold = params['FontBold']
|
4684
|
+
@FontItalic = params['FontItalic']
|
4685
|
+
@FontColor = params['FontColor']
|
4686
|
+
@FontAlign = params['FontAlign']
|
4687
|
+
@FontAlignMargin = params['FontAlignMargin']
|
4688
|
+
@BorderWidth = params['BorderWidth']
|
4689
|
+
@BorderColor = params['BorderColor']
|
4690
|
+
@BottomColor = params['BottomColor']
|
4691
|
+
end
|
4692
|
+
end
|
4693
|
+
|
4694
|
+
# 视频编辑/合成任务 目标视频信息。
|
4695
|
+
class ComposeTargetInfo < TencentCloud::Common::AbstractModel
|
4696
|
+
# @param Container: 封装容器格式,可选值:
|
4697
|
+
# <li>mp4:视频文件(默认)。</li>
|
4698
|
+
# <li>mp3:纯音频文件。</li>
|
4699
|
+
# @type Container: String
|
4700
|
+
# @param RemoveVideo: 是否去除视频数据,可选值:
|
4701
|
+
# <li>0:保留(默认)。</li>
|
4702
|
+
# <li>1:去除。</li>
|
4703
|
+
# @type RemoveVideo: Integer
|
4704
|
+
# @param RemoveAudio: 是否去除音频数据,可选值:
|
4705
|
+
# <li>0:保留(默认)。</li>
|
4706
|
+
# <li>1:去除。</li>
|
4707
|
+
# @type RemoveAudio: Integer
|
4708
|
+
# @param VideoStream: 输出视频流信息。
|
4709
|
+
# @type VideoStream: :class:`Tencentcloud::Mps.v20190612.models.ComposeVideoStream`
|
4710
|
+
# @param AudioStream: 输出音频流信息。
|
4711
|
+
# @type AudioStream: :class:`Tencentcloud::Mps.v20190612.models.ComposeAudioStream`
|
4712
|
+
|
4713
|
+
attr_accessor :Container, :RemoveVideo, :RemoveAudio, :VideoStream, :AudioStream
|
4714
|
+
|
4715
|
+
def initialize(container=nil, removevideo=nil, removeaudio=nil, videostream=nil, audiostream=nil)
|
4716
|
+
@Container = container
|
4717
|
+
@RemoveVideo = removevideo
|
4718
|
+
@RemoveAudio = removeaudio
|
4719
|
+
@VideoStream = videostream
|
4720
|
+
@AudioStream = audiostream
|
4721
|
+
end
|
4722
|
+
|
4723
|
+
def deserialize(params)
|
4724
|
+
@Container = params['Container']
|
4725
|
+
@RemoveVideo = params['RemoveVideo']
|
4726
|
+
@RemoveAudio = params['RemoveAudio']
|
4727
|
+
unless params['VideoStream'].nil?
|
4728
|
+
@VideoStream = ComposeVideoStream.new
|
4729
|
+
@VideoStream.deserialize(params['VideoStream'])
|
4730
|
+
end
|
4731
|
+
unless params['AudioStream'].nil?
|
4732
|
+
@AudioStream = ComposeAudioStream.new
|
4733
|
+
@AudioStream.deserialize(params['AudioStream'])
|
4734
|
+
end
|
4735
|
+
end
|
4736
|
+
end
|
4737
|
+
|
4738
|
+
# 视频编辑/合成任务 对应元素在目标视频轨道上的时间信息。
|
4739
|
+
class ComposeTrackTime < TencentCloud::Common::AbstractModel
|
4740
|
+
# @param Start: 元素在轨道上的起始时间,时间点支持:
|
4741
|
+
# <li>以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;</li>
|
4742
|
+
# 注意:不填则默认为前一个元素的结束时间,此时可以通过 ComposeEmptyItem 元素来进行占位,实现轨道起始时间设置。
|
4743
|
+
# @type Start: String
|
4744
|
+
# @param Duration: 元素时长,时间支持:
|
4745
|
+
# <li>以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;</li>
|
4746
|
+
# 默认:取对应 ComposeSourceMedia 媒体的有效时长(即 EndTime-StartTime),没有 ComposeSourceMedia 则默认为 1 秒。
|
4747
|
+
# @type Duration: String
|
4748
|
+
|
4749
|
+
attr_accessor :Start, :Duration
|
4750
|
+
|
4751
|
+
def initialize(start=nil, duration=nil)
|
4752
|
+
@Start = start
|
4753
|
+
@Duration = duration
|
4754
|
+
end
|
4755
|
+
|
4756
|
+
def deserialize(params)
|
4757
|
+
@Start = params['Start']
|
4758
|
+
@Duration = params['Duration']
|
4759
|
+
end
|
4760
|
+
end
|
4761
|
+
|
4762
|
+
# 视频编辑/合成任务 转场元素信息。
|
4763
|
+
class ComposeTransitionItem < TencentCloud::Common::AbstractModel
|
4764
|
+
# @param Duration: 元素时长,时间支持:<li>以 s 结尾,表示时间点单位为秒,如 3s 表示时间点为第3秒。</li>
|
4765
|
+
# 默认:1s
|
4766
|
+
# 注意:
|
4767
|
+
# <li>必须是整数s,否则向下取整。</li>
|
4768
|
+
# <li>转场 前后必须紧挨着两个不为 Empty 的元素。</li>
|
4769
|
+
# <li>转场 Duration 必须小于前一个元素的 Duration,同时必须小于后一个元素的 Duration。</li>
|
4770
|
+
# <li>进行转场处理的两个元素,第二个元素在轨道上的起始时间会自动调整为前一个元素的结束时间减去转场的 Duration。</li>
|
4771
|
+
# @type Duration: String
|
4772
|
+
# @param Transitions: 转场操作列表。
|
4773
|
+
# 默认:淡入淡出。
|
4774
|
+
# 注意:图像转场操作和音频转场操作各自最多支持一个。
|
4775
|
+
# @type Transitions: Array
|
4776
|
+
|
4777
|
+
attr_accessor :Duration, :Transitions
|
4778
|
+
|
4779
|
+
def initialize(duration=nil, transitions=nil)
|
4780
|
+
@Duration = duration
|
4781
|
+
@Transitions = transitions
|
4782
|
+
end
|
4783
|
+
|
4784
|
+
def deserialize(params)
|
4785
|
+
@Duration = params['Duration']
|
4786
|
+
unless params['Transitions'].nil?
|
4787
|
+
@Transitions = []
|
4788
|
+
params['Transitions'].each do |i|
|
4789
|
+
composetransitionoperation_tmp = ComposeTransitionOperation.new
|
4790
|
+
composetransitionoperation_tmp.deserialize(i)
|
4791
|
+
@Transitions << composetransitionoperation_tmp
|
4792
|
+
end
|
4793
|
+
end
|
4794
|
+
end
|
4795
|
+
end
|
4796
|
+
|
4797
|
+
# 视频编辑/合成任务 元素转场信息。
|
4798
|
+
class ComposeTransitionOperation < TencentCloud::Common::AbstractModel
|
4799
|
+
# @param Type: 转场类型。
|
4800
|
+
|
4801
|
+
# 图像的转场操作,用于两个视频片段图像间的转场处理:
|
4802
|
+
# <li>ImageFadeInFadeOut:图像淡入淡出。</li>
|
4803
|
+
# <li>BowTieHorizontal:水平蝴蝶结。</li>
|
4804
|
+
# <li>BowTieVertical:垂直蝴蝶结。</li>
|
4805
|
+
# <li>ButterflyWaveScrawler:晃动。</li>
|
4806
|
+
# <li>Cannabisleaf:枫叶。</li>
|
4807
|
+
# <li>Circle:弧形收放。</li>
|
4808
|
+
# <li>CircleCrop:圆环聚拢。</li>
|
4809
|
+
# <li>Circleopen:椭圆聚拢。</li>
|
4810
|
+
# <li>Crosswarp:横向翘曲。</li>
|
4811
|
+
# <li>Cube:立方体。</li>
|
4812
|
+
# <li>DoomScreenTransition:幕布。</li>
|
4813
|
+
# <li>Doorway:门廊。</li>
|
4814
|
+
# <li>Dreamy:波浪。</li>
|
4815
|
+
# <li>DreamyZoom:水平聚拢。</li>
|
4816
|
+
# <li>FilmBurn:火烧云。</li>
|
4817
|
+
# <li>GlitchMemories:抖动。</li>
|
4818
|
+
# <li>Heart:心形。</li>
|
4819
|
+
# <li>InvertedPageCurl:翻页。</li>
|
4820
|
+
# <li>Luma:腐蚀。</li>
|
4821
|
+
# <li>Mosaic:九宫格。</li>
|
4822
|
+
# <li>Pinwheel:风车。</li>
|
4823
|
+
# <li>PolarFunction:椭圆扩散。</li>
|
4824
|
+
# <li>PolkaDotsCurtain:弧形扩散。</li>
|
4825
|
+
# <li>Radial:雷达扫描。</li>
|
4826
|
+
# <li>RotateScaleFade:上下收放。</li>
|
4827
|
+
# <li>Squeeze:上下聚拢。</li>
|
4828
|
+
# <li>Swap:放大切换。</li>
|
4829
|
+
# <li>Swirl:螺旋。</li>
|
4830
|
+
# <li>UndulatingBurnOutSwirl:水流蔓延。</li>
|
4831
|
+
# <li>Windowblinds:百叶窗。</li>
|
4832
|
+
# <li>WipeDown:向下收起。</li>
|
4833
|
+
# <li>WipeLeft:向左收起。</li>
|
4834
|
+
# <li>WipeRight:向右收起。</li>
|
4835
|
+
# <li>WipeUp:向上收起。</li>
|
4836
|
+
# <li>ZoomInCircles:水波纹。</li>
|
4837
|
+
# 音频的转场操作,用于两个音频片段间的转场处理:
|
4838
|
+
# <li>AudioFadeInFadeOut:声音淡入淡出。</li>
|
4839
|
+
# @type Type: String
|
4840
|
+
|
4841
|
+
attr_accessor :Type
|
4842
|
+
|
4843
|
+
def initialize(type=nil)
|
4844
|
+
@Type = type
|
4845
|
+
end
|
4846
|
+
|
4847
|
+
def deserialize(params)
|
4848
|
+
@Type = params['Type']
|
4849
|
+
end
|
4850
|
+
end
|
4851
|
+
|
4852
|
+
# 视频编辑/合成任务 视频元素信息。
|
4853
|
+
class ComposeVideoItem < TencentCloud::Common::AbstractModel
|
4854
|
+
# @param SourceMedia: 元素对应媒体信息。
|
4855
|
+
# @type SourceMedia: :class:`Tencentcloud::Mps.v20190612.models.ComposeSourceMedia`
|
4856
|
+
# @param TrackTime: 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。
|
4857
|
+
# @type TrackTime: :class:`Tencentcloud::Mps.v20190612.models.ComposeTrackTime`
|
4858
|
+
# @param XPos: 元素中心点距离画布原点的水平位置。支持 %、px 两种格式:
|
4859
|
+
# <li>当字符串以 % 结尾,表示元素 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。</li>
|
4860
|
+
# <li>当字符串以 px 结尾,表示元素 XPos 单位为像素,如 100px 表示 XPos 为100像素。</li>
|
4861
|
+
# 默认:50%。
|
4862
|
+
# @type XPos: String
|
4863
|
+
# @param YPos: 元素中心点距离画布原点的垂直位置。支持 %、px 两种格式:
|
4864
|
+
# <li>当字符串以 % 结尾,表示元素 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。</li>
|
4865
|
+
# <li>当字符串以 px 结尾,表示元素 YPos 单位为像素,如 100px 表示 YPos 为100像素。</li>
|
4866
|
+
# 默认:50%。
|
4867
|
+
# @type YPos: String
|
4868
|
+
# @param Width: 视频片段的宽度。支持 %、px 两种格式:
|
4869
|
+
# <li>当字符串以 % 结尾,表示元素 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。</li>
|
4870
|
+
# <li>当字符串以 px 结尾,表示元素 Width 单位为像素,如 100px 表示 Width 为100像素。</li>
|
4871
|
+
# 为空(或0) 的场景:
|
4872
|
+
# <li>当 Width、Height 均为空,则 Width 和 Height 取源素材本身的 Width、Height。</li>
|
4873
|
+
# <li>当 Width 为空,Height 非空,则 Width 按源素材比例缩放。</li>
|
4874
|
+
# <li>当 Width 非空,Height 为空,则 Height 按源素材比例缩放。</li>
|
4875
|
+
# @type Width: String
|
4876
|
+
# @param Height: 元素的高度。支持 %、px 两种格式:
|
4877
|
+
# <li>当字符串以 % 结尾,表示元素 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。</li>
|
4878
|
+
# <li>当字符串以 px 结尾,表示元素 Height 单位为像素,如 100px 表示 Height 为100像素。</li>
|
4879
|
+
# 为空(或0) 的场景:
|
4880
|
+
# <li>当 Width、Height 均为空,则 Width 和 Height 取源素材本身的 Width、Height。</li>
|
4881
|
+
# <li>当 Width 为空,Height 非空,则 Width 按源素材比例缩放。</li>
|
4882
|
+
# <li>当 Width 非空,Height 为空,则 Height 按源素材比例缩放。</li>
|
4883
|
+
# @type Height: String
|
4884
|
+
# @param ImageOperations: 对图像画面进行的操作,如图像旋转等。
|
4885
|
+
# @type ImageOperations: Array
|
4886
|
+
# @param AudioOperations: 对音频进行操作,如静音等。
|
4887
|
+
# @type AudioOperations: Array
|
4888
|
+
|
4889
|
+
attr_accessor :SourceMedia, :TrackTime, :XPos, :YPos, :Width, :Height, :ImageOperations, :AudioOperations
|
4890
|
+
|
4891
|
+
def initialize(sourcemedia=nil, tracktime=nil, xpos=nil, ypos=nil, width=nil, height=nil, imageoperations=nil, audiooperations=nil)
|
4892
|
+
@SourceMedia = sourcemedia
|
4893
|
+
@TrackTime = tracktime
|
4894
|
+
@XPos = xpos
|
4895
|
+
@YPos = ypos
|
4896
|
+
@Width = width
|
4897
|
+
@Height = height
|
4898
|
+
@ImageOperations = imageoperations
|
4899
|
+
@AudioOperations = audiooperations
|
4900
|
+
end
|
4901
|
+
|
4902
|
+
def deserialize(params)
|
4903
|
+
unless params['SourceMedia'].nil?
|
4904
|
+
@SourceMedia = ComposeSourceMedia.new
|
4905
|
+
@SourceMedia.deserialize(params['SourceMedia'])
|
4906
|
+
end
|
4907
|
+
unless params['TrackTime'].nil?
|
4908
|
+
@TrackTime = ComposeTrackTime.new
|
4909
|
+
@TrackTime.deserialize(params['TrackTime'])
|
4910
|
+
end
|
4911
|
+
@XPos = params['XPos']
|
4912
|
+
@YPos = params['YPos']
|
4913
|
+
@Width = params['Width']
|
4914
|
+
@Height = params['Height']
|
4915
|
+
unless params['ImageOperations'].nil?
|
4916
|
+
@ImageOperations = []
|
4917
|
+
params['ImageOperations'].each do |i|
|
4918
|
+
composeimageoperation_tmp = ComposeImageOperation.new
|
4919
|
+
composeimageoperation_tmp.deserialize(i)
|
4920
|
+
@ImageOperations << composeimageoperation_tmp
|
4921
|
+
end
|
4922
|
+
end
|
4923
|
+
unless params['AudioOperations'].nil?
|
4924
|
+
@AudioOperations = []
|
4925
|
+
params['AudioOperations'].each do |i|
|
4926
|
+
composeaudiooperation_tmp = ComposeAudioOperation.new
|
4927
|
+
composeaudiooperation_tmp.deserialize(i)
|
4928
|
+
@AudioOperations << composeaudiooperation_tmp
|
4929
|
+
end
|
4930
|
+
end
|
4931
|
+
end
|
4932
|
+
end
|
4933
|
+
|
4934
|
+
# 视频编辑/合成任务 视频流信息。
|
4935
|
+
class ComposeVideoStream < TencentCloud::Common::AbstractModel
|
4936
|
+
# @param Codec: 视频流的编码方式,可选值:
|
4937
|
+
# <li>H.264:H.264 编码(默认)。</li>
|
4938
|
+
# @type Codec: String
|
4939
|
+
# @param Fps: 视频帧率,取值范围:[0, 60],单位:Hz。
|
4940
|
+
# 默认值:0,表示和第一个视频帧率一致。
|
4941
|
+
# @type Fps: Integer
|
4123
4942
|
|
4124
|
-
|
4125
|
-
|
4126
|
-
|
4943
|
+
attr_accessor :Codec, :Fps
|
4944
|
+
|
4945
|
+
def initialize(codec=nil, fps=nil)
|
4946
|
+
@Codec = codec
|
4947
|
+
@Fps = fps
|
4127
4948
|
end
|
4128
4949
|
|
4129
4950
|
def deserialize(params)
|
4130
|
-
@
|
4131
|
-
@
|
4951
|
+
@Codec = params['Codec']
|
4952
|
+
@Fps = params['Fps']
|
4132
4953
|
end
|
4133
4954
|
end
|
4134
4955
|
|
@@ -8863,12 +9684,15 @@ module TencentCloud
|
|
8863
9684
|
# @param ScheduleTask: 编排处理任务信息,仅当 TaskType 为 ScheduleTask,该字段有值。
|
8864
9685
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8865
9686
|
# @type ScheduleTask: :class:`Tencentcloud::Mps.v20190612.models.ScheduleTask`
|
9687
|
+
# @param LiveScheduleTask: 直播编排处理任务信息,仅当 TaskType 为 LiveScheduleTask,该字段有值。
|
9688
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9689
|
+
# @type LiveScheduleTask: :class:`Tencentcloud::Mps.v20190612.models.LiveScheduleTask`
|
8866
9690
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8867
9691
|
# @type RequestId: String
|
8868
9692
|
|
8869
|
-
attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :EditMediaTask, :WorkflowTask, :LiveStreamProcessTask, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext, :ExtInfo, :ScheduleTask, :RequestId
|
9693
|
+
attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :EditMediaTask, :WorkflowTask, :LiveStreamProcessTask, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext, :ExtInfo, :ScheduleTask, :LiveScheduleTask, :RequestId
|
8870
9694
|
|
8871
|
-
def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, editmediatask=nil, workflowtask=nil, livestreamprocesstask=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil, extinfo=nil, scheduletask=nil, requestid=nil)
|
9695
|
+
def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, editmediatask=nil, workflowtask=nil, livestreamprocesstask=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil, extinfo=nil, scheduletask=nil, livescheduletask=nil, requestid=nil)
|
8872
9696
|
@TaskType = tasktype
|
8873
9697
|
@Status = status
|
8874
9698
|
@CreateTime = createtime
|
@@ -8883,6 +9707,7 @@ module TencentCloud
|
|
8883
9707
|
@SessionContext = sessioncontext
|
8884
9708
|
@ExtInfo = extinfo
|
8885
9709
|
@ScheduleTask = scheduletask
|
9710
|
+
@LiveScheduleTask = livescheduletask
|
8886
9711
|
@RequestId = requestid
|
8887
9712
|
end
|
8888
9713
|
|
@@ -8916,6 +9741,10 @@ module TencentCloud
|
|
8916
9741
|
@ScheduleTask = ScheduleTask.new
|
8917
9742
|
@ScheduleTask.deserialize(params['ScheduleTask'])
|
8918
9743
|
end
|
9744
|
+
unless params['LiveScheduleTask'].nil?
|
9745
|
+
@LiveScheduleTask = LiveScheduleTask.new
|
9746
|
+
@LiveScheduleTask.deserialize(params['LiveScheduleTask'])
|
9747
|
+
end
|
8919
9748
|
@RequestId = params['RequestId']
|
8920
9749
|
end
|
8921
9750
|
end
|
@@ -9396,17 +10225,23 @@ module TencentCloud
|
|
9396
10225
|
class EditMediaFileInfo < TencentCloud::Common::AbstractModel
|
9397
10226
|
# @param InputInfo: 视频的输入信息。
|
9398
10227
|
# @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
|
9399
|
-
# @param StartTimeOffset:
|
10228
|
+
# @param StartTimeOffset: 【剪辑】任务生效,视频剪辑的起始时间偏移,单位:秒。
|
9400
10229
|
# @type StartTimeOffset: Float
|
9401
|
-
# @param EndTimeOffset:
|
10230
|
+
# @param EndTimeOffset: 【剪辑】任务生效,视频剪辑的结束时间偏移,单位:秒。
|
9402
10231
|
# @type EndTimeOffset: Float
|
10232
|
+
# @param Id: 【合成】任务必选,用于轨道元素中媒体关联源素材 ID。
|
10233
|
+
|
10234
|
+
# 注意:允许字母、数字、-、_ ,最长 32 字符
|
10235
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10236
|
+
# @type Id: String
|
9403
10237
|
|
9404
|
-
attr_accessor :InputInfo, :StartTimeOffset, :EndTimeOffset
|
10238
|
+
attr_accessor :InputInfo, :StartTimeOffset, :EndTimeOffset, :Id
|
9405
10239
|
|
9406
|
-
def initialize(inputinfo=nil, starttimeoffset=nil, endtimeoffset=nil)
|
10240
|
+
def initialize(inputinfo=nil, starttimeoffset=nil, endtimeoffset=nil, id=nil)
|
9407
10241
|
@InputInfo = inputinfo
|
9408
10242
|
@StartTimeOffset = starttimeoffset
|
9409
10243
|
@EndTimeOffset = endtimeoffset
|
10244
|
+
@Id = id
|
9410
10245
|
end
|
9411
10246
|
|
9412
10247
|
def deserialize(params)
|
@@ -9416,14 +10251,17 @@ module TencentCloud
|
|
9416
10251
|
end
|
9417
10252
|
@StartTimeOffset = params['StartTimeOffset']
|
9418
10253
|
@EndTimeOffset = params['EndTimeOffset']
|
10254
|
+
@Id = params['Id']
|
9419
10255
|
end
|
9420
10256
|
end
|
9421
10257
|
|
9422
10258
|
# 编辑视频的结果文件输出配置。
|
9423
10259
|
class EditMediaOutputConfig < TencentCloud::Common::AbstractModel
|
9424
10260
|
# @param Container: 封装格式,可选值:mp4、hls、mov、flv、avi。默认是 mp4。
|
10261
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9425
10262
|
# @type Container: String
|
9426
10263
|
# @param Type: 剪辑模式,可选值 normal、fast。默认是精确剪辑 normal
|
10264
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9427
10265
|
# @type Type: String
|
9428
10266
|
|
9429
10267
|
attr_accessor :Container, :Type
|
@@ -9446,9 +10284,15 @@ module TencentCloud
|
|
9446
10284
|
# @param OutputStorage: 媒体处理输出文件的目标存储。
|
9447
10285
|
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
9448
10286
|
# @param OutputObjectPath: 媒体处理输出文件的目标路径。
|
10287
|
+
|
10288
|
+
# 注意:对于复杂合成任务,路径中的文件名只可为数字、字母、-、_ 的组合,最长 64 个字符。
|
9449
10289
|
# @type OutputObjectPath: String
|
9450
|
-
# @param OutputConfig:
|
10290
|
+
# @param OutputConfig: 【剪辑】任务生成的文件配置。
|
9451
10291
|
# @type OutputConfig: :class:`Tencentcloud::Mps.v20190612.models.EditMediaOutputConfig`
|
10292
|
+
# @param ComposeConfig: 【合成】任务配置。
|
10293
|
+
|
10294
|
+
# 注意:当其不为空时,认为是合成任务,否则按剪辑任务处理。
|
10295
|
+
# @type ComposeConfig: :class:`Tencentcloud::Mps.v20190612.models.ComposeMediaConfig`
|
9452
10296
|
# @param TaskNotifyConfig: 任务的事件通知信息,不填代表不获取事件通知。
|
9453
10297
|
# @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
|
9454
10298
|
# @param TasksPriority: 任务优先级,数值越大优先级越高,取值范围是-10到 10,不填代表0。
|
@@ -9458,13 +10302,14 @@ module TencentCloud
|
|
9458
10302
|
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
9459
10303
|
# @type SessionContext: String
|
9460
10304
|
|
9461
|
-
attr_accessor :FileInfos, :OutputStorage, :OutputObjectPath, :OutputConfig, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext
|
10305
|
+
attr_accessor :FileInfos, :OutputStorage, :OutputObjectPath, :OutputConfig, :ComposeConfig, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext
|
9462
10306
|
|
9463
|
-
def initialize(fileinfos=nil, outputstorage=nil, outputobjectpath=nil, outputconfig=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil)
|
10307
|
+
def initialize(fileinfos=nil, outputstorage=nil, outputobjectpath=nil, outputconfig=nil, composeconfig=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil)
|
9464
10308
|
@FileInfos = fileinfos
|
9465
10309
|
@OutputStorage = outputstorage
|
9466
10310
|
@OutputObjectPath = outputobjectpath
|
9467
10311
|
@OutputConfig = outputconfig
|
10312
|
+
@ComposeConfig = composeconfig
|
9468
10313
|
@TaskNotifyConfig = tasknotifyconfig
|
9469
10314
|
@TasksPriority = taskspriority
|
9470
10315
|
@SessionId = sessionid
|
@@ -9489,6 +10334,10 @@ module TencentCloud
|
|
9489
10334
|
@OutputConfig = EditMediaOutputConfig.new
|
9490
10335
|
@OutputConfig.deserialize(params['OutputConfig'])
|
9491
10336
|
end
|
10337
|
+
unless params['ComposeConfig'].nil?
|
10338
|
+
@ComposeConfig = ComposeMediaConfig.new
|
10339
|
+
@ComposeConfig.deserialize(params['ComposeConfig'])
|
10340
|
+
end
|
9492
10341
|
unless params['TaskNotifyConfig'].nil?
|
9493
10342
|
@TaskNotifyConfig = TaskNotifyConfig.new
|
9494
10343
|
@TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
|
@@ -10490,8 +11339,10 @@ module TencentCloud
|
|
10490
11339
|
# 片头片尾参数
|
10491
11340
|
class HeadTailParameter < TencentCloud::Common::AbstractModel
|
10492
11341
|
# @param HeadSet: 片头列表。
|
11342
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10493
11343
|
# @type HeadSet: Array
|
10494
11344
|
# @param TailSet: 片尾列表。
|
11345
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10495
11346
|
# @type TailSet: Array
|
10496
11347
|
|
10497
11348
|
attr_accessor :HeadSet, :TailSet
|
@@ -10832,6 +11683,258 @@ module TencentCloud
|
|
10832
11683
|
end
|
10833
11684
|
end
|
10834
11685
|
|
11686
|
+
# 直播编排子任务输出
|
11687
|
+
class LiveActivityResItem < TencentCloud::Common::AbstractModel
|
11688
|
+
# @param LiveRecordTask: 直播录制任务输出
|
11689
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11690
|
+
# @type LiveRecordTask: :class:`Tencentcloud::Mps.v20190612.models.LiveScheduleLiveRecordTaskResult`
|
11691
|
+
|
11692
|
+
attr_accessor :LiveRecordTask
|
11693
|
+
|
11694
|
+
def initialize(liverecordtask=nil)
|
11695
|
+
@LiveRecordTask = liverecordtask
|
11696
|
+
end
|
11697
|
+
|
11698
|
+
def deserialize(params)
|
11699
|
+
unless params['LiveRecordTask'].nil?
|
11700
|
+
@LiveRecordTask = LiveScheduleLiveRecordTaskResult.new
|
11701
|
+
@LiveRecordTask.deserialize(params['LiveRecordTask'])
|
11702
|
+
end
|
11703
|
+
end
|
11704
|
+
end
|
11705
|
+
|
11706
|
+
# 直播编排任务输出
|
11707
|
+
class LiveActivityResult < TencentCloud::Common::AbstractModel
|
11708
|
+
# @param ActivityType: 原子任务类型。
|
11709
|
+
# <li>LiveRecord:直播录制。</li>
|
11710
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11711
|
+
# @type ActivityType: String
|
11712
|
+
# @param LiveActivityResItem: 原子任务输出。
|
11713
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11714
|
+
# @type LiveActivityResItem: :class:`Tencentcloud::Mps.v20190612.models.LiveActivityResItem`
|
11715
|
+
|
11716
|
+
attr_accessor :ActivityType, :LiveActivityResItem
|
11717
|
+
|
11718
|
+
def initialize(activitytype=nil, liveactivityresitem=nil)
|
11719
|
+
@ActivityType = activitytype
|
11720
|
+
@LiveActivityResItem = liveactivityresitem
|
11721
|
+
end
|
11722
|
+
|
11723
|
+
def deserialize(params)
|
11724
|
+
@ActivityType = params['ActivityType']
|
11725
|
+
unless params['LiveActivityResItem'].nil?
|
11726
|
+
@LiveActivityResItem = LiveActivityResItem.new
|
11727
|
+
@LiveActivityResItem.deserialize(params['LiveActivityResItem'])
|
11728
|
+
end
|
11729
|
+
end
|
11730
|
+
end
|
11731
|
+
|
11732
|
+
# 直播录制输出文件信息
|
11733
|
+
class LiveRecordFile < TencentCloud::Common::AbstractModel
|
11734
|
+
# @param Url: 直播录制文件地址
|
11735
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11736
|
+
# @type Url: String
|
11737
|
+
# @param Size: 直播录制文件大小
|
11738
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11739
|
+
# @type Size: Integer
|
11740
|
+
# @param Duration: 直播录制文件时长
|
11741
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11742
|
+
# @type Duration: Integer
|
11743
|
+
# @param StartTime: 直播录制文件开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
11744
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11745
|
+
# @type StartTime: String
|
11746
|
+
# @param EndTime: 直播录制文件结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
11747
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11748
|
+
# @type EndTime: String
|
11749
|
+
|
11750
|
+
attr_accessor :Url, :Size, :Duration, :StartTime, :EndTime
|
11751
|
+
|
11752
|
+
def initialize(url=nil, size=nil, duration=nil, starttime=nil, endtime=nil)
|
11753
|
+
@Url = url
|
11754
|
+
@Size = size
|
11755
|
+
@Duration = duration
|
11756
|
+
@StartTime = starttime
|
11757
|
+
@EndTime = endtime
|
11758
|
+
end
|
11759
|
+
|
11760
|
+
def deserialize(params)
|
11761
|
+
@Url = params['Url']
|
11762
|
+
@Size = params['Size']
|
11763
|
+
@Duration = params['Duration']
|
11764
|
+
@StartTime = params['StartTime']
|
11765
|
+
@EndTime = params['EndTime']
|
11766
|
+
end
|
11767
|
+
end
|
11768
|
+
|
11769
|
+
# 直播录制结果
|
11770
|
+
class LiveRecordResult < TencentCloud::Common::AbstractModel
|
11771
|
+
# @param OutputStorage: 直播录制文件的目标存储。
|
11772
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11773
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
11774
|
+
# @param FileList: 直播录制文件列表
|
11775
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11776
|
+
# @type FileList: Array
|
11777
|
+
|
11778
|
+
attr_accessor :OutputStorage, :FileList
|
11779
|
+
|
11780
|
+
def initialize(outputstorage=nil, filelist=nil)
|
11781
|
+
@OutputStorage = outputstorage
|
11782
|
+
@FileList = filelist
|
11783
|
+
end
|
11784
|
+
|
11785
|
+
def deserialize(params)
|
11786
|
+
unless params['OutputStorage'].nil?
|
11787
|
+
@OutputStorage = TaskOutputStorage.new
|
11788
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
11789
|
+
end
|
11790
|
+
unless params['FileList'].nil?
|
11791
|
+
@FileList = []
|
11792
|
+
params['FileList'].each do |i|
|
11793
|
+
liverecordfile_tmp = LiveRecordFile.new
|
11794
|
+
liverecordfile_tmp.deserialize(i)
|
11795
|
+
@FileList << liverecordfile_tmp
|
11796
|
+
end
|
11797
|
+
end
|
11798
|
+
end
|
11799
|
+
end
|
11800
|
+
|
11801
|
+
# 直播录制任务输入参数类型
|
11802
|
+
class LiveRecordTaskInput < TencentCloud::Common::AbstractModel
|
11803
|
+
# @param Definition: 直播录制模板 ID。
|
11804
|
+
# @type Definition: Integer
|
11805
|
+
# @param OutputStorage: 直播录制后文件的目标存储,不填则继承上层的 OutputStorage 值。
|
11806
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11807
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
11808
|
+
# @param OutputObjectPath: 直播录制后文件的输出路径。
|
11809
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11810
|
+
# @type OutputObjectPath: String
|
11811
|
+
|
11812
|
+
attr_accessor :Definition, :OutputStorage, :OutputObjectPath
|
11813
|
+
|
11814
|
+
def initialize(definition=nil, outputstorage=nil, outputobjectpath=nil)
|
11815
|
+
@Definition = definition
|
11816
|
+
@OutputStorage = outputstorage
|
11817
|
+
@OutputObjectPath = outputobjectpath
|
11818
|
+
end
|
11819
|
+
|
11820
|
+
def deserialize(params)
|
11821
|
+
@Definition = params['Definition']
|
11822
|
+
unless params['OutputStorage'].nil?
|
11823
|
+
@OutputStorage = TaskOutputStorage.new
|
11824
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
11825
|
+
end
|
11826
|
+
@OutputObjectPath = params['OutputObjectPath']
|
11827
|
+
end
|
11828
|
+
end
|
11829
|
+
|
11830
|
+
# 直播编排直播录制任务结果类型
|
11831
|
+
class LiveScheduleLiveRecordTaskResult < TencentCloud::Common::AbstractModel
|
11832
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
11833
|
+
# @type Status: String
|
11834
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [媒体处理类错误码](https://cloud.tencent.com/document/product/862/50369#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
11835
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11836
|
+
# @type ErrCodeExt: String
|
11837
|
+
# @param ErrCode: 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。
|
11838
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11839
|
+
# @type ErrCode: Integer
|
11840
|
+
# @param Message: 错误信息。
|
11841
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11842
|
+
# @type Message: String
|
11843
|
+
# @param Input: 直播录制任务的输入。
|
11844
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11845
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.LiveRecordTaskInput`
|
11846
|
+
# @param Output: 直播录制任务的输出。
|
11847
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11848
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.LiveRecordResult`
|
11849
|
+
# @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
11850
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11851
|
+
# @type BeginProcessTime: String
|
11852
|
+
# @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
11853
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11854
|
+
# @type FinishTime: String
|
11855
|
+
|
11856
|
+
attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
|
11857
|
+
|
11858
|
+
def initialize(status=nil, errcodeext=nil, errcode=nil, message=nil, input=nil, output=nil, beginprocesstime=nil, finishtime=nil)
|
11859
|
+
@Status = status
|
11860
|
+
@ErrCodeExt = errcodeext
|
11861
|
+
@ErrCode = errcode
|
11862
|
+
@Message = message
|
11863
|
+
@Input = input
|
11864
|
+
@Output = output
|
11865
|
+
@BeginProcessTime = beginprocesstime
|
11866
|
+
@FinishTime = finishtime
|
11867
|
+
end
|
11868
|
+
|
11869
|
+
def deserialize(params)
|
11870
|
+
@Status = params['Status']
|
11871
|
+
@ErrCodeExt = params['ErrCodeExt']
|
11872
|
+
@ErrCode = params['ErrCode']
|
11873
|
+
@Message = params['Message']
|
11874
|
+
unless params['Input'].nil?
|
11875
|
+
@Input = LiveRecordTaskInput.new
|
11876
|
+
@Input.deserialize(params['Input'])
|
11877
|
+
end
|
11878
|
+
unless params['Output'].nil?
|
11879
|
+
@Output = LiveRecordResult.new
|
11880
|
+
@Output.deserialize(params['Output'])
|
11881
|
+
end
|
11882
|
+
@BeginProcessTime = params['BeginProcessTime']
|
11883
|
+
@FinishTime = params['FinishTime']
|
11884
|
+
end
|
11885
|
+
end
|
11886
|
+
|
11887
|
+
# 直播编排任务信息
|
11888
|
+
class LiveScheduleTask < TencentCloud::Common::AbstractModel
|
11889
|
+
# @param TaskId: 直播编排任务 ID。
|
11890
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11891
|
+
# @type TaskId: String
|
11892
|
+
# @param Status: 任务流状态,取值:
|
11893
|
+
# <li>PROCESSING:处理中;</li>
|
11894
|
+
# <li>FINISH:已完成。</li>
|
11895
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11896
|
+
# @type Status: String
|
11897
|
+
# @param ErrCode: 源异常时返回非0错误码,返回0 时请使用各个具体任务的 ErrCode。
|
11898
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11899
|
+
# @type ErrCode: Integer
|
11900
|
+
# @param Message: 源异常时返回对应异常Message,否则请使用各个具体任务的 Message。
|
11901
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11902
|
+
# @type Message: String
|
11903
|
+
# @param Url: 直播流 URL。
|
11904
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11905
|
+
# @type Url: String
|
11906
|
+
# @param LiveActivityResultSet: 直播编排任务输出。
|
11907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11908
|
+
# @type LiveActivityResultSet: Array
|
11909
|
+
|
11910
|
+
attr_accessor :TaskId, :Status, :ErrCode, :Message, :Url, :LiveActivityResultSet
|
11911
|
+
|
11912
|
+
def initialize(taskid=nil, status=nil, errcode=nil, message=nil, url=nil, liveactivityresultset=nil)
|
11913
|
+
@TaskId = taskid
|
11914
|
+
@Status = status
|
11915
|
+
@ErrCode = errcode
|
11916
|
+
@Message = message
|
11917
|
+
@Url = url
|
11918
|
+
@LiveActivityResultSet = liveactivityresultset
|
11919
|
+
end
|
11920
|
+
|
11921
|
+
def deserialize(params)
|
11922
|
+
@TaskId = params['TaskId']
|
11923
|
+
@Status = params['Status']
|
11924
|
+
@ErrCode = params['ErrCode']
|
11925
|
+
@Message = params['Message']
|
11926
|
+
@Url = params['Url']
|
11927
|
+
unless params['LiveActivityResultSet'].nil?
|
11928
|
+
@LiveActivityResultSet = []
|
11929
|
+
params['LiveActivityResultSet'].each do |i|
|
11930
|
+
liveactivityresult_tmp = LiveActivityResult.new
|
11931
|
+
liveactivityresult_tmp.deserialize(i)
|
11932
|
+
@LiveActivityResultSet << liveactivityresult_tmp
|
11933
|
+
end
|
11934
|
+
end
|
11935
|
+
end
|
11936
|
+
end
|
11937
|
+
|
10835
11938
|
# 直播流分析结果
|
10836
11939
|
class LiveStreamAiAnalysisResultInfo < TencentCloud::Common::AbstractModel
|
10837
11940
|
# @param ResultSet: 直播分析子任务结果,暂时只支持直播拆条。
|
@@ -15328,10 +16431,16 @@ module TencentCloud
|
|
15328
16431
|
# @type SessionId: String
|
15329
16432
|
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
15330
16433
|
# @type SessionContext: String
|
16434
|
+
# @param ScheduleId: 直播编排ID。
|
16435
|
+
# 注意1:对于OutputStorage、OutputDir参数:
|
16436
|
+
# <li>当服务编排中子任务节点配置了OutputStorage、OutputDir时,该子任务节点中配置的输出作为子任务的输出。</li>
|
16437
|
+
# <li>当服务编排中子任务节点没有配置OutputStorage、OutputDir时,若对直播流发起处理(ProcessLiveStream)有输出,将覆盖原有编排的默认输出。</li>
|
16438
|
+
# 注意2:对于TaskNotifyConfig参数,若创建任务接口(ProcessLiveStream)有设置,将覆盖原有编排的默认回调。
|
16439
|
+
# @type ScheduleId: Integer
|
15331
16440
|
|
15332
|
-
attr_accessor :Url, :TaskNotifyConfig, :OutputStorage, :OutputDir, :AiContentReviewTask, :AiRecognitionTask, :AiAnalysisTask, :AiQualityControlTask, :SessionId, :SessionContext
|
16441
|
+
attr_accessor :Url, :TaskNotifyConfig, :OutputStorage, :OutputDir, :AiContentReviewTask, :AiRecognitionTask, :AiAnalysisTask, :AiQualityControlTask, :SessionId, :SessionContext, :ScheduleId
|
15333
16442
|
|
15334
|
-
def initialize(url=nil, tasknotifyconfig=nil, outputstorage=nil, outputdir=nil, aicontentreviewtask=nil, airecognitiontask=nil, aianalysistask=nil, aiqualitycontroltask=nil, sessionid=nil, sessioncontext=nil)
|
16443
|
+
def initialize(url=nil, tasknotifyconfig=nil, outputstorage=nil, outputdir=nil, aicontentreviewtask=nil, airecognitiontask=nil, aianalysistask=nil, aiqualitycontroltask=nil, sessionid=nil, sessioncontext=nil, scheduleid=nil)
|
15335
16444
|
@Url = url
|
15336
16445
|
@TaskNotifyConfig = tasknotifyconfig
|
15337
16446
|
@OutputStorage = outputstorage
|
@@ -15342,6 +16451,7 @@ module TencentCloud
|
|
15342
16451
|
@AiQualityControlTask = aiqualitycontroltask
|
15343
16452
|
@SessionId = sessionid
|
15344
16453
|
@SessionContext = sessioncontext
|
16454
|
+
@ScheduleId = scheduleid
|
15345
16455
|
end
|
15346
16456
|
|
15347
16457
|
def deserialize(params)
|
@@ -15373,6 +16483,7 @@ module TencentCloud
|
|
15373
16483
|
end
|
15374
16484
|
@SessionId = params['SessionId']
|
15375
16485
|
@SessionContext = params['SessionContext']
|
16486
|
+
@ScheduleId = params['ScheduleId']
|
15376
16487
|
end
|
15377
16488
|
end
|
15378
16489
|
|
@@ -16724,6 +17835,11 @@ module TencentCloud
|
|
16724
17835
|
# @param ScheduleName: 编排名称。
|
16725
17836
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
16726
17837
|
# @type ScheduleName: String
|
17838
|
+
# @param Type: 编排类型,可选值:
|
17839
|
+
# <li>Preset:系统预置编排;</li>
|
17840
|
+
# <li>Custom:用户自定义编排。</li>
|
17841
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17842
|
+
# @type Type: String
|
16727
17843
|
# @param Status: 编排状态,取值范围:
|
16728
17844
|
# Enabled:已启用,
|
16729
17845
|
# Disabled:已禁用。
|
@@ -16751,11 +17867,12 @@ module TencentCloud
|
|
16751
17867
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
16752
17868
|
# @type UpdateTime: String
|
16753
17869
|
|
16754
|
-
attr_accessor :ScheduleId, :ScheduleName, :Status, :Trigger, :Activities, :OutputStorage, :OutputDir, :TaskNotifyConfig, :CreateTime, :UpdateTime
|
17870
|
+
attr_accessor :ScheduleId, :ScheduleName, :Type, :Status, :Trigger, :Activities, :OutputStorage, :OutputDir, :TaskNotifyConfig, :CreateTime, :UpdateTime
|
16755
17871
|
|
16756
|
-
def initialize(scheduleid=nil, schedulename=nil, status=nil, trigger=nil, activities=nil, outputstorage=nil, outputdir=nil, tasknotifyconfig=nil, createtime=nil, updatetime=nil)
|
17872
|
+
def initialize(scheduleid=nil, schedulename=nil, type=nil, status=nil, trigger=nil, activities=nil, outputstorage=nil, outputdir=nil, tasknotifyconfig=nil, createtime=nil, updatetime=nil)
|
16757
17873
|
@ScheduleId = scheduleid
|
16758
17874
|
@ScheduleName = schedulename
|
17875
|
+
@Type = type
|
16759
17876
|
@Status = status
|
16760
17877
|
@Trigger = trigger
|
16761
17878
|
@Activities = activities
|
@@ -16769,6 +17886,7 @@ module TencentCloud
|
|
16769
17886
|
def deserialize(params)
|
16770
17887
|
@ScheduleId = params['ScheduleId']
|
16771
17888
|
@ScheduleName = params['ScheduleName']
|
17889
|
+
@Type = params['Type']
|
16772
17890
|
@Status = params['Status']
|
16773
17891
|
unless params['Trigger'].nil?
|
16774
17892
|
@Trigger = WorkflowTrigger.new
|
@@ -17365,16 +18483,6 @@ module TencentCloud
|
|
17365
18483
|
|
17366
18484
|
# 任务的事件通知配置。
|
17367
18485
|
class TaskNotifyConfig < TencentCloud::Common::AbstractModel
|
17368
|
-
# @param CmqModel: CMQ或TDMQ-CMQ 的模型,有 Queue 和 Topic 两种。
|
17369
|
-
# @type CmqModel: String
|
17370
|
-
# @param CmqRegion: CMQ或TDMQ-CMQ 的园区,如 sh,bj 等。
|
17371
|
-
# @type CmqRegion: String
|
17372
|
-
# @param TopicName: 当模型为 Topic 时有效,表示接收事件通知的 CMQ 或 TDMQ-CMQ 的主题名。
|
17373
|
-
# @type TopicName: String
|
17374
|
-
# @param QueueName: 当模型为 Queue 时有效,表示接收事件通知的 CMQ 或 TDMQ-CMQ 的队列名。
|
17375
|
-
# @type QueueName: String
|
17376
|
-
# @param NotifyMode: 工作流通知的模式,可取值有 Finish 和 Change,不填代表 Finish。
|
17377
|
-
# @type NotifyMode: String
|
17378
18486
|
# @param NotifyType: 通知类型,可选值:
|
17379
18487
|
# <li>CMQ:已下线,建议切换到TDMQ-CMQ</li>
|
17380
18488
|
# <li>TDMQ-CMQ:消息队列</li>
|
@@ -17383,34 +18491,44 @@ module TencentCloud
|
|
17383
18491
|
# <li>AWS-SQS:AWS 队列,只适用于 AWS 任务,且要求同区域</li>
|
17384
18492
|
# <font color="red"> 注:不填或为空时默认 CMQ,如需采用其他类型需填写对应类型值。 </font>
|
17385
18493
|
# @type NotifyType: String
|
18494
|
+
# @param NotifyMode: 工作流通知的模式,可取值有 Finish 和 Change,不填代表 Finish。
|
18495
|
+
# @type NotifyMode: String
|
17386
18496
|
# @param NotifyUrl: HTTP回调地址,NotifyType为URL时必填。
|
17387
18497
|
# @type NotifyUrl: String
|
18498
|
+
# @param CmqModel: CMQ或TDMQ-CMQ 的模型,有 Queue 和 Topic 两种。
|
18499
|
+
# @type CmqModel: String
|
18500
|
+
# @param CmqRegion: CMQ或TDMQ-CMQ 的园区,如 sh,bj 等。
|
18501
|
+
# @type CmqRegion: String
|
18502
|
+
# @param TopicName: 当模型为 Topic 时有效,表示接收事件通知的 CMQ 或 TDMQ-CMQ 的主题名。
|
18503
|
+
# @type TopicName: String
|
18504
|
+
# @param QueueName: 当模型为 Queue 时有效,表示接收事件通知的 CMQ 或 TDMQ-CMQ 的队列名。
|
18505
|
+
# @type QueueName: String
|
17388
18506
|
# @param AwsSQS: AWS SQS 回调,NotifyType为 AWS-SQS 时必填。
|
17389
18507
|
|
17390
18508
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
17391
18509
|
# @type AwsSQS: :class:`Tencentcloud::Mps.v20190612.models.AwsSQS`
|
17392
18510
|
|
17393
|
-
attr_accessor :
|
18511
|
+
attr_accessor :NotifyType, :NotifyMode, :NotifyUrl, :CmqModel, :CmqRegion, :TopicName, :QueueName, :AwsSQS
|
17394
18512
|
|
17395
|
-
def initialize(
|
18513
|
+
def initialize(notifytype=nil, notifymode=nil, notifyurl=nil, cmqmodel=nil, cmqregion=nil, topicname=nil, queuename=nil, awssqs=nil)
|
18514
|
+
@NotifyType = notifytype
|
18515
|
+
@NotifyMode = notifymode
|
18516
|
+
@NotifyUrl = notifyurl
|
17396
18517
|
@CmqModel = cmqmodel
|
17397
18518
|
@CmqRegion = cmqregion
|
17398
18519
|
@TopicName = topicname
|
17399
18520
|
@QueueName = queuename
|
17400
|
-
@NotifyMode = notifymode
|
17401
|
-
@NotifyType = notifytype
|
17402
|
-
@NotifyUrl = notifyurl
|
17403
18521
|
@AwsSQS = awssqs
|
17404
18522
|
end
|
17405
18523
|
|
17406
18524
|
def deserialize(params)
|
18525
|
+
@NotifyType = params['NotifyType']
|
18526
|
+
@NotifyMode = params['NotifyMode']
|
18527
|
+
@NotifyUrl = params['NotifyUrl']
|
17407
18528
|
@CmqModel = params['CmqModel']
|
17408
18529
|
@CmqRegion = params['CmqRegion']
|
17409
18530
|
@TopicName = params['TopicName']
|
17410
18531
|
@QueueName = params['QueueName']
|
17411
|
-
@NotifyMode = params['NotifyMode']
|
17412
|
-
@NotifyType = params['NotifyType']
|
17413
|
-
@NotifyUrl = params['NotifyUrl']
|
17414
18532
|
unless params['AwsSQS'].nil?
|
17415
18533
|
@AwsSQS = AwsSQS.new
|
17416
18534
|
@AwsSQS.deserialize(params['AwsSQS'])
|