tencentcloud-sdk-mps 3.0.1127 → 3.0.1142
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 +5 -1
- data/lib/v20190612/models.rb +874 -43
- metadata +2 -2
data/lib/v20190612/models.rb
CHANGED
@@ -205,6 +205,7 @@ module TencentCloud
|
|
205
205
|
# <li>action-AIQualityControl:媒体质检</li>
|
206
206
|
# <li>action-SmartSubtitles:智能字幕</li>
|
207
207
|
# <li>action-exec-rules:判断规则</li>
|
208
|
+
# <li>action-SmartErase:智能擦除</li>
|
208
209
|
|
209
210
|
|
210
211
|
# @type ActivityType: String
|
@@ -270,10 +271,13 @@ module TencentCloud
|
|
270
271
|
# @param SmartSubtitlesTask: 智能字幕任务
|
271
272
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
272
273
|
# @type SmartSubtitlesTask: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitlesTaskInput`
|
274
|
+
# @param SmartEraseTask: 智能擦除任务
|
275
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
276
|
+
# @type SmartEraseTask: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseTaskInput`
|
273
277
|
|
274
|
-
attr_accessor :TranscodeTask, :AnimatedGraphicTask, :SnapshotByTimeOffsetTask, :SampleSnapshotTask, :ImageSpriteTask, :AdaptiveDynamicStreamingTask, :AiContentReviewTask, :AiAnalysisTask, :AiRecognitionTask, :QualityControlTask, :ExecRulesTask, :SmartSubtitlesTask
|
278
|
+
attr_accessor :TranscodeTask, :AnimatedGraphicTask, :SnapshotByTimeOffsetTask, :SampleSnapshotTask, :ImageSpriteTask, :AdaptiveDynamicStreamingTask, :AiContentReviewTask, :AiAnalysisTask, :AiRecognitionTask, :QualityControlTask, :ExecRulesTask, :SmartSubtitlesTask, :SmartEraseTask
|
275
279
|
|
276
|
-
def initialize(transcodetask=nil, animatedgraphictask=nil, snapshotbytimeoffsettask=nil, samplesnapshottask=nil, imagespritetask=nil, adaptivedynamicstreamingtask=nil, aicontentreviewtask=nil, aianalysistask=nil, airecognitiontask=nil, qualitycontroltask=nil, execrulestask=nil, smartsubtitlestask=nil)
|
280
|
+
def initialize(transcodetask=nil, animatedgraphictask=nil, snapshotbytimeoffsettask=nil, samplesnapshottask=nil, imagespritetask=nil, adaptivedynamicstreamingtask=nil, aicontentreviewtask=nil, aianalysistask=nil, airecognitiontask=nil, qualitycontroltask=nil, execrulestask=nil, smartsubtitlestask=nil, smarterasetask=nil)
|
277
281
|
@TranscodeTask = transcodetask
|
278
282
|
@AnimatedGraphicTask = animatedgraphictask
|
279
283
|
@SnapshotByTimeOffsetTask = snapshotbytimeoffsettask
|
@@ -286,6 +290,7 @@ module TencentCloud
|
|
286
290
|
@QualityControlTask = qualitycontroltask
|
287
291
|
@ExecRulesTask = execrulestask
|
288
292
|
@SmartSubtitlesTask = smartsubtitlestask
|
293
|
+
@SmartEraseTask = smarterasetask
|
289
294
|
end
|
290
295
|
|
291
296
|
def deserialize(params)
|
@@ -337,6 +342,10 @@ module TencentCloud
|
|
337
342
|
@SmartSubtitlesTask = SmartSubtitlesTaskInput.new
|
338
343
|
@SmartSubtitlesTask.deserialize(params['SmartSubtitlesTask'])
|
339
344
|
end
|
345
|
+
unless params['SmartEraseTask'].nil?
|
346
|
+
@SmartEraseTask = SmartEraseTaskInput.new
|
347
|
+
@SmartEraseTask.deserialize(params['SmartEraseTask'])
|
348
|
+
end
|
340
349
|
end
|
341
350
|
end
|
342
351
|
|
@@ -378,10 +387,13 @@ module TencentCloud
|
|
378
387
|
# @param SmartSubtitlesTask: 智能字幕任务输出
|
379
388
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
380
389
|
# @type SmartSubtitlesTask: :class:`Tencentcloud::Mps.v20190612.models.ScheduleSmartSubtitleTaskResult`
|
390
|
+
# @param SmartEraseTask: 智能擦除任务输出
|
391
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
392
|
+
# @type SmartEraseTask: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseTaskResult`
|
381
393
|
|
382
|
-
attr_accessor :TranscodeTask, :AnimatedGraphicTask, :SnapshotByTimeOffsetTask, :SampleSnapshotTask, :ImageSpriteTask, :AdaptiveDynamicStreamingTask, :RecognitionTask, :ReviewTask, :AnalysisTask, :QualityControlTask, :ExecRuleTask, :SmartSubtitlesTask
|
394
|
+
attr_accessor :TranscodeTask, :AnimatedGraphicTask, :SnapshotByTimeOffsetTask, :SampleSnapshotTask, :ImageSpriteTask, :AdaptiveDynamicStreamingTask, :RecognitionTask, :ReviewTask, :AnalysisTask, :QualityControlTask, :ExecRuleTask, :SmartSubtitlesTask, :SmartEraseTask
|
383
395
|
|
384
|
-
def initialize(transcodetask=nil, animatedgraphictask=nil, snapshotbytimeoffsettask=nil, samplesnapshottask=nil, imagespritetask=nil, adaptivedynamicstreamingtask=nil, recognitiontask=nil, reviewtask=nil, analysistask=nil, qualitycontroltask=nil, execruletask=nil, smartsubtitlestask=nil)
|
396
|
+
def initialize(transcodetask=nil, animatedgraphictask=nil, snapshotbytimeoffsettask=nil, samplesnapshottask=nil, imagespritetask=nil, adaptivedynamicstreamingtask=nil, recognitiontask=nil, reviewtask=nil, analysistask=nil, qualitycontroltask=nil, execruletask=nil, smartsubtitlestask=nil, smarterasetask=nil)
|
385
397
|
@TranscodeTask = transcodetask
|
386
398
|
@AnimatedGraphicTask = animatedgraphictask
|
387
399
|
@SnapshotByTimeOffsetTask = snapshotbytimeoffsettask
|
@@ -394,6 +406,7 @@ module TencentCloud
|
|
394
406
|
@QualityControlTask = qualitycontroltask
|
395
407
|
@ExecRuleTask = execruletask
|
396
408
|
@SmartSubtitlesTask = smartsubtitlestask
|
409
|
+
@SmartEraseTask = smarterasetask
|
397
410
|
end
|
398
411
|
|
399
412
|
def deserialize(params)
|
@@ -445,6 +458,10 @@ module TencentCloud
|
|
445
458
|
@SmartSubtitlesTask = ScheduleSmartSubtitleTaskResult.new
|
446
459
|
@SmartSubtitlesTask.deserialize(params['SmartSubtitlesTask'])
|
447
460
|
end
|
461
|
+
unless params['SmartEraseTask'].nil?
|
462
|
+
@SmartEraseTask = SmartEraseTaskResult.new
|
463
|
+
@SmartEraseTask.deserialize(params['SmartEraseTask'])
|
464
|
+
end
|
448
465
|
end
|
449
466
|
end
|
450
467
|
|
@@ -462,6 +479,7 @@ module TencentCloud
|
|
462
479
|
# <li>AIAnalysis:智能分析。</li>
|
463
480
|
# <li>AiQualityControl:媒体质检。</li>
|
464
481
|
# <li>SmartSubtitles:智能字幕。</li>
|
482
|
+
# <li>SmartErase:智能擦除。</li>
|
465
483
|
# @type ActivityType: String
|
466
484
|
# @param ActivityResItem: 原子任务输出。
|
467
485
|
# @type ActivityResItem: :class:`Tencentcloud::Mps.v20190612.models.ActivityResItem`
|
@@ -535,16 +553,17 @@ module TencentCloud
|
|
535
553
|
# @type SubStreamObjectName: String
|
536
554
|
# @param SegmentObjectName: 转自适应码流(仅 HLS)后,分片文件的输出路径,只能为相对路径。如果不填,则默认为相对路径:`{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}_{segmentNumber}.{format}`。
|
537
555
|
# @type SegmentObjectName: String
|
538
|
-
# @param AddOnSubtitles:
|
556
|
+
# @param AddOnSubtitles: 外挂字幕功能,指定要插入的字幕文件。
|
539
557
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
540
558
|
# @type AddOnSubtitles: Array
|
541
559
|
# @param DrmInfo: Drm信息。
|
560
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
542
561
|
# @type DrmInfo: :class:`Tencentcloud::Mps.v20190612.models.DrmInfo`
|
543
562
|
# @param DefinitionType: 自适应转码模板类型:
|
544
563
|
# Common:音视频类型
|
545
564
|
# PureAudio:纯音频类型
|
546
565
|
# @type DefinitionType: String
|
547
|
-
# @param SubtitleTemplate:
|
566
|
+
# @param SubtitleTemplate: 硬字幕(压制字幕)功能,指定字幕来源、字体大小、位置等字幕参数。
|
548
567
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
549
568
|
# @type SubtitleTemplate: :class:`Tencentcloud::Mps.v20190612.models.SubtitleTemplate`
|
550
569
|
# @param StdExtInfo: 转码参数扩展字段
|
@@ -813,6 +832,7 @@ module TencentCloud
|
|
813
832
|
# <li>Highlight:智能精彩集锦</li>
|
814
833
|
# <li>DeLogo:智能擦除</li>
|
815
834
|
# <li>Description:大模型摘要</li>
|
835
|
+
# <li>Dubbing:智能译制</li>
|
816
836
|
# @type Type: String
|
817
837
|
# @param ClassificationTask: 视频内容分析智能分类任务的查询结果,当任务类型为 Classification 时有效。
|
818
838
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -844,10 +864,13 @@ module TencentCloud
|
|
844
864
|
# @param HorizontalToVerticalTask: 视频内容分析横转竖任务的查询结果,当任务类型为 HorizontalToVertical 时有效。
|
845
865
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
846
866
|
# @type HorizontalToVerticalTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskHorizontalToVerticalResult`
|
867
|
+
# @param DubbingTask: 视频内容分析译制任务的查询结果,当任务类型为 Dubbing 时有效。
|
868
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
869
|
+
# @type DubbingTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskDubbingResult`
|
847
870
|
|
848
|
-
attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask
|
871
|
+
attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask
|
849
872
|
|
850
|
-
def initialize(type=nil, classificationtask=nil, covertask=nil, tagtask=nil, frametagtask=nil, highlighttask=nil, delogotask=nil, segmenttask=nil, headtailtask=nil, descriptiontask=nil, horizontaltoverticaltask=nil)
|
873
|
+
def initialize(type=nil, classificationtask=nil, covertask=nil, tagtask=nil, frametagtask=nil, highlighttask=nil, delogotask=nil, segmenttask=nil, headtailtask=nil, descriptiontask=nil, horizontaltoverticaltask=nil, dubbingtask=nil)
|
851
874
|
@Type = type
|
852
875
|
@ClassificationTask = classificationtask
|
853
876
|
@CoverTask = covertask
|
@@ -859,6 +882,7 @@ module TencentCloud
|
|
859
882
|
@HeadTailTask = headtailtask
|
860
883
|
@DescriptionTask = descriptiontask
|
861
884
|
@HorizontalToVerticalTask = horizontaltoverticaltask
|
885
|
+
@DubbingTask = dubbingtask
|
862
886
|
end
|
863
887
|
|
864
888
|
def deserialize(params)
|
@@ -903,6 +927,10 @@ module TencentCloud
|
|
903
927
|
@HorizontalToVerticalTask = AiAnalysisTaskHorizontalToVerticalResult.new
|
904
928
|
@HorizontalToVerticalTask.deserialize(params['HorizontalToVerticalTask'])
|
905
929
|
end
|
930
|
+
unless params['DubbingTask'].nil?
|
931
|
+
@DubbingTask = AiAnalysisTaskDubbingResult.new
|
932
|
+
@DubbingTask.deserialize(params['DubbingTask'])
|
933
|
+
end
|
906
934
|
end
|
907
935
|
end
|
908
936
|
|
@@ -1106,15 +1134,23 @@ module TencentCloud
|
|
1106
1134
|
# @param SubtitlePos: 擦除的字幕位置。**注意**:仅对字幕提取且开启返回字幕位置时有效。
|
1107
1135
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1108
1136
|
# @type SubtitlePos: :class:`Tencentcloud::Mps.v20190612.models.SubtitlePosition`
|
1137
|
+
# @param VoiceClonedVideo: 音色克隆后的视频文件地址
|
1138
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1139
|
+
# @type VoiceClonedVideo: String
|
1140
|
+
# @param VoiceClonedMarkFile: 音色克隆的标注文件地址
|
1141
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1142
|
+
# @type VoiceClonedMarkFile: String
|
1109
1143
|
|
1110
|
-
attr_accessor :Path, :OutputStorage, :OriginSubtitlePath, :TranslateSubtitlePath, :SubtitlePos
|
1144
|
+
attr_accessor :Path, :OutputStorage, :OriginSubtitlePath, :TranslateSubtitlePath, :SubtitlePos, :VoiceClonedVideo, :VoiceClonedMarkFile
|
1111
1145
|
|
1112
|
-
def initialize(path=nil, outputstorage=nil, originsubtitlepath=nil, translatesubtitlepath=nil, subtitlepos=nil)
|
1146
|
+
def initialize(path=nil, outputstorage=nil, originsubtitlepath=nil, translatesubtitlepath=nil, subtitlepos=nil, voiceclonedvideo=nil, voiceclonedmarkfile=nil)
|
1113
1147
|
@Path = path
|
1114
1148
|
@OutputStorage = outputstorage
|
1115
1149
|
@OriginSubtitlePath = originsubtitlepath
|
1116
1150
|
@TranslateSubtitlePath = translatesubtitlepath
|
1117
1151
|
@SubtitlePos = subtitlepos
|
1152
|
+
@VoiceClonedVideo = voiceclonedvideo
|
1153
|
+
@VoiceClonedMarkFile = voiceclonedmarkfile
|
1118
1154
|
end
|
1119
1155
|
|
1120
1156
|
def deserialize(params)
|
@@ -1129,6 +1165,8 @@ module TencentCloud
|
|
1129
1165
|
@SubtitlePos = SubtitlePosition.new
|
1130
1166
|
@SubtitlePos.deserialize(params['SubtitlePos'])
|
1131
1167
|
end
|
1168
|
+
@VoiceClonedVideo = params['VoiceClonedVideo']
|
1169
|
+
@VoiceClonedMarkFile = params['VoiceClonedMarkFile']
|
1132
1170
|
end
|
1133
1171
|
end
|
1134
1172
|
|
@@ -1249,6 +1287,88 @@ module TencentCloud
|
|
1249
1287
|
end
|
1250
1288
|
end
|
1251
1289
|
|
1290
|
+
# 智能译制任务输入类型
|
1291
|
+
class AiAnalysisTaskDubbingInput < TencentCloud::Common::AbstractModel
|
1292
|
+
# @param Definition: 视频译制模板 ID。
|
1293
|
+
# @type Definition: Integer
|
1294
|
+
|
1295
|
+
attr_accessor :Definition
|
1296
|
+
|
1297
|
+
def initialize(definition=nil)
|
1298
|
+
@Definition = definition
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
def deserialize(params)
|
1302
|
+
@Definition = params['Definition']
|
1303
|
+
end
|
1304
|
+
end
|
1305
|
+
|
1306
|
+
# 智能译制结果信息
|
1307
|
+
class AiAnalysisTaskDubbingOutput < TencentCloud::Common::AbstractModel
|
1308
|
+
# @param VideoPath: 译制视频路径。
|
1309
|
+
# @type VideoPath: String
|
1310
|
+
# @param SpeakerPath: 标记文件路径
|
1311
|
+
# @type SpeakerPath: String
|
1312
|
+
# @param OutputStorage: 译制视频存储位置。
|
1313
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
1314
|
+
|
1315
|
+
attr_accessor :VideoPath, :SpeakerPath, :OutputStorage
|
1316
|
+
|
1317
|
+
def initialize(videopath=nil, speakerpath=nil, outputstorage=nil)
|
1318
|
+
@VideoPath = videopath
|
1319
|
+
@SpeakerPath = speakerpath
|
1320
|
+
@OutputStorage = outputstorage
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
def deserialize(params)
|
1324
|
+
@VideoPath = params['VideoPath']
|
1325
|
+
@SpeakerPath = params['SpeakerPath']
|
1326
|
+
unless params['OutputStorage'].nil?
|
1327
|
+
@OutputStorage = TaskOutputStorage.new
|
1328
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# 智能译制结果类型
|
1334
|
+
class AiAnalysisTaskDubbingResult < TencentCloud::Common::AbstractModel
|
1335
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
1336
|
+
# @type Status: String
|
1337
|
+
# @param ErrCode: 错误码,0:成功,其他值:失败。
|
1338
|
+
# @type ErrCode: Integer
|
1339
|
+
# @param Message: 错误信息。
|
1340
|
+
# @type Message: String
|
1341
|
+
# @param Input: 智能译制任务输入。
|
1342
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskDubbingInput`
|
1343
|
+
# @param Output: 智能译制任务输出。
|
1344
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1345
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskDubbingOutput`
|
1346
|
+
|
1347
|
+
attr_accessor :Status, :ErrCode, :Message, :Input, :Output
|
1348
|
+
|
1349
|
+
def initialize(status=nil, errcode=nil, message=nil, input=nil, output=nil)
|
1350
|
+
@Status = status
|
1351
|
+
@ErrCode = errcode
|
1352
|
+
@Message = message
|
1353
|
+
@Input = input
|
1354
|
+
@Output = output
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
def deserialize(params)
|
1358
|
+
@Status = params['Status']
|
1359
|
+
@ErrCode = params['ErrCode']
|
1360
|
+
@Message = params['Message']
|
1361
|
+
unless params['Input'].nil?
|
1362
|
+
@Input = AiAnalysisTaskDubbingInput.new
|
1363
|
+
@Input.deserialize(params['Input'])
|
1364
|
+
end
|
1365
|
+
unless params['Output'].nil?
|
1366
|
+
@Output = AiAnalysisTaskDubbingOutput.new
|
1367
|
+
@Output.deserialize(params['Output'])
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
end
|
1371
|
+
|
1252
1372
|
# 智能按帧标签任务输入类型
|
1253
1373
|
class AiAnalysisTaskFrameTagInput < TencentCloud::Common::AbstractModel
|
1254
1374
|
# @param Definition: 视频智能按帧标签模板 ID。
|
@@ -2129,8 +2249,8 @@ module TencentCloud
|
|
2129
2249
|
|
2130
2250
|
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
2131
2251
|
extend Gem::Deprecate
|
2132
|
-
deprecate :OutputStorage, :none, 2025,
|
2133
|
-
deprecate :OutputStorage=, :none, 2025,
|
2252
|
+
deprecate :OutputStorage, :none, 2025, 9
|
2253
|
+
deprecate :OutputStorage=, :none, 2025, 9
|
2134
2254
|
|
2135
2255
|
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
2136
2256
|
@SegmentSet = segmentset
|
@@ -5231,6 +5351,111 @@ module TencentCloud
|
|
5231
5351
|
end
|
5232
5352
|
end
|
5233
5353
|
|
5354
|
+
# 美颜配置
|
5355
|
+
class BeautyConfig < TencentCloud::Common::AbstractModel
|
5356
|
+
# @param BeautyEffectItems: 美颜效果
|
5357
|
+
# @type BeautyEffectItems: Array
|
5358
|
+
# @param BeautyFilterItems: 美颜滤镜
|
5359
|
+
# @type BeautyFilterItems: Array
|
5360
|
+
|
5361
|
+
attr_accessor :BeautyEffectItems, :BeautyFilterItems
|
5362
|
+
|
5363
|
+
def initialize(beautyeffectitems=nil, beautyfilteritems=nil)
|
5364
|
+
@BeautyEffectItems = beautyeffectitems
|
5365
|
+
@BeautyFilterItems = beautyfilteritems
|
5366
|
+
end
|
5367
|
+
|
5368
|
+
def deserialize(params)
|
5369
|
+
unless params['BeautyEffectItems'].nil?
|
5370
|
+
@BeautyEffectItems = []
|
5371
|
+
params['BeautyEffectItems'].each do |i|
|
5372
|
+
beautyeffectitemconfig_tmp = BeautyEffectItemConfig.new
|
5373
|
+
beautyeffectitemconfig_tmp.deserialize(i)
|
5374
|
+
@BeautyEffectItems << beautyeffectitemconfig_tmp
|
5375
|
+
end
|
5376
|
+
end
|
5377
|
+
unless params['BeautyFilterItems'].nil?
|
5378
|
+
@BeautyFilterItems = []
|
5379
|
+
params['BeautyFilterItems'].each do |i|
|
5380
|
+
beautyfilteritemconfig_tmp = BeautyFilterItemConfig.new
|
5381
|
+
beautyfilteritemconfig_tmp.deserialize(i)
|
5382
|
+
@BeautyFilterItems << beautyfilteritemconfig_tmp
|
5383
|
+
end
|
5384
|
+
end
|
5385
|
+
end
|
5386
|
+
end
|
5387
|
+
|
5388
|
+
# 美颜效果配置项
|
5389
|
+
class BeautyEffectItemConfig < TencentCloud::Common::AbstractModel
|
5390
|
+
# @param Type: 类型名称。取值如下:
|
5391
|
+
|
5392
|
+
# <li>Whiten:美白</li>
|
5393
|
+
# <li>Smooth:磨皮</li>
|
5394
|
+
# <li>BeautyThinFace:瘦脸</li>
|
5395
|
+
# <li>NatureFace:自然脸型</li>
|
5396
|
+
# <li>VFace:V脸</li>
|
5397
|
+
# <li>EnlargeEye:大眼</li>
|
5398
|
+
# <li>EyeLighten:亮眼</li>
|
5399
|
+
# <li>RemoveEyeBags:祛眼袋</li>
|
5400
|
+
# <li>ThinNose:瘦鼻</li>
|
5401
|
+
# <li>RemoveLawLine:祛法令纹</li>
|
5402
|
+
# <li>ToothWhiten:牙齿美白</li>
|
5403
|
+
|
5404
|
+
# @type Type: String
|
5405
|
+
# @param Switch: 能力配置开关,可选值:
|
5406
|
+
# <li>ON:开启;</li>
|
5407
|
+
# <li>OFF:关闭。</li>
|
5408
|
+
# 默认值:ON。
|
5409
|
+
# @type Switch: String
|
5410
|
+
# @param Value: 效果强度,值范围:[0, 100]。
|
5411
|
+
# @type Value: Integer
|
5412
|
+
|
5413
|
+
attr_accessor :Type, :Switch, :Value
|
5414
|
+
|
5415
|
+
def initialize(type=nil, switch=nil, value=nil)
|
5416
|
+
@Type = type
|
5417
|
+
@Switch = switch
|
5418
|
+
@Value = value
|
5419
|
+
end
|
5420
|
+
|
5421
|
+
def deserialize(params)
|
5422
|
+
@Type = params['Type']
|
5423
|
+
@Switch = params['Switch']
|
5424
|
+
@Value = params['Value']
|
5425
|
+
end
|
5426
|
+
end
|
5427
|
+
|
5428
|
+
# 美颜滤镜配置项
|
5429
|
+
class BeautyFilterItemConfig < TencentCloud::Common::AbstractModel
|
5430
|
+
# @param Type: 类型名称。取值如下:
|
5431
|
+
|
5432
|
+
# <li>Dongjing:东京</li>
|
5433
|
+
# <li>Qingjiaopian:轻胶片</li>
|
5434
|
+
# <li>Meiwei:美味</li>
|
5435
|
+
# @type Type: String
|
5436
|
+
# @param Switch: 能力配置开关,可选值:
|
5437
|
+
# <li>ON:开启;</li>
|
5438
|
+
# <li>OFF:关闭。</li>
|
5439
|
+
# 默认值:ON。
|
5440
|
+
# @type Switch: String
|
5441
|
+
# @param Value: 效果强度,值范围:[-100, 100]。
|
5442
|
+
# @type Value: Integer
|
5443
|
+
|
5444
|
+
attr_accessor :Type, :Switch, :Value
|
5445
|
+
|
5446
|
+
def initialize(type=nil, switch=nil, value=nil)
|
5447
|
+
@Type = type
|
5448
|
+
@Switch = switch
|
5449
|
+
@Value = value
|
5450
|
+
end
|
5451
|
+
|
5452
|
+
def deserialize(params)
|
5453
|
+
@Type = params['Type']
|
5454
|
+
@Switch = params['Switch']
|
5455
|
+
@Value = params['Value']
|
5456
|
+
end
|
5457
|
+
end
|
5458
|
+
|
5234
5459
|
# 盲水印配置
|
5235
5460
|
class BlindWatermarkConfig < TencentCloud::Common::AbstractModel
|
5236
5461
|
# @param AddBlindWatermark: 增加盲水印
|
@@ -8039,6 +8264,8 @@ module TencentCloud
|
|
8039
8264
|
# fr:法语
|
8040
8265
|
# de:德语
|
8041
8266
|
# zh_dialect:中文方言
|
8267
|
+
# zh_en: 中英
|
8268
|
+
# prime_zh: 中英方言
|
8042
8269
|
# @type VideoSrcLanguage: String
|
8043
8270
|
# @param SubtitleType: 智能字幕字幕语言类型
|
8044
8271
|
# 0: 源语言
|
@@ -8052,6 +8279,7 @@ module TencentCloud
|
|
8052
8279
|
# @type Comment: String
|
8053
8280
|
# @param SubtitleFormat: 智能字幕文件格式
|
8054
8281
|
# vtt: WebVTT 格式
|
8282
|
+
# srt: SRT 格式
|
8055
8283
|
# 不填或填空:不生成字幕文件
|
8056
8284
|
# @type SubtitleFormat: String
|
8057
8285
|
# @param AsrHotWordsConfigure: ASR热词库参数
|
@@ -12638,6 +12866,8 @@ module TencentCloud
|
|
12638
12866
|
# @param LiveStreamProcessTask: 直播流处理任务信息,仅当 TaskType 为 LiveStreamProcessTask,该字段有值。
|
12639
12867
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
12640
12868
|
# @type LiveStreamProcessTask: :class:`Tencentcloud::Mps.v20190612.models.LiveStreamProcessTask`
|
12869
|
+
# @param ExtractBlindWatermarkTask: 提取数字水印任务信息,仅当 TaskType 为 ExtractBlindWatermark,该字段有值。
|
12870
|
+
# @type ExtractBlindWatermarkTask: :class:`Tencentcloud::Mps.v20190612.models.ExtractBlindWatermarkTask`
|
12641
12871
|
# @param TaskNotifyConfig: 任务的事件通知信息。
|
12642
12872
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
12643
12873
|
# @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
|
@@ -12658,9 +12888,9 @@ module TencentCloud
|
|
12658
12888
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12659
12889
|
# @type RequestId: String
|
12660
12890
|
|
12661
|
-
attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :EditMediaTask, :WorkflowTask, :LiveStreamProcessTask, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext, :ExtInfo, :ScheduleTask, :LiveScheduleTask, :RequestId
|
12891
|
+
attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :EditMediaTask, :WorkflowTask, :LiveStreamProcessTask, :ExtractBlindWatermarkTask, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext, :ExtInfo, :ScheduleTask, :LiveScheduleTask, :RequestId
|
12662
12892
|
|
12663
|
-
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)
|
12893
|
+
def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, editmediatask=nil, workflowtask=nil, livestreamprocesstask=nil, extractblindwatermarktask=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil, extinfo=nil, scheduletask=nil, livescheduletask=nil, requestid=nil)
|
12664
12894
|
@TaskType = tasktype
|
12665
12895
|
@Status = status
|
12666
12896
|
@CreateTime = createtime
|
@@ -12669,6 +12899,7 @@ module TencentCloud
|
|
12669
12899
|
@EditMediaTask = editmediatask
|
12670
12900
|
@WorkflowTask = workflowtask
|
12671
12901
|
@LiveStreamProcessTask = livestreamprocesstask
|
12902
|
+
@ExtractBlindWatermarkTask = extractblindwatermarktask
|
12672
12903
|
@TaskNotifyConfig = tasknotifyconfig
|
12673
12904
|
@TasksPriority = taskspriority
|
12674
12905
|
@SessionId = sessionid
|
@@ -12697,6 +12928,10 @@ module TencentCloud
|
|
12697
12928
|
@LiveStreamProcessTask = LiveStreamProcessTask.new
|
12698
12929
|
@LiveStreamProcessTask.deserialize(params['LiveStreamProcessTask'])
|
12699
12930
|
end
|
12931
|
+
unless params['ExtractBlindWatermarkTask'].nil?
|
12932
|
+
@ExtractBlindWatermarkTask = ExtractBlindWatermarkTask.new
|
12933
|
+
@ExtractBlindWatermarkTask.deserialize(params['ExtractBlindWatermarkTask'])
|
12934
|
+
end
|
12700
12935
|
unless params['TaskNotifyConfig'].nil?
|
12701
12936
|
@TaskNotifyConfig = TaskNotifyConfig.new
|
12702
12937
|
@TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
|
@@ -13801,9 +14036,88 @@ module TencentCloud
|
|
13801
14036
|
end
|
13802
14037
|
end
|
13803
14038
|
|
14039
|
+
# 智能擦除,擦除区域坐标配置。
|
14040
|
+
# 区域由左上角与右下角点的坐标确定。
|
14041
|
+
# 坐标原点为画面左上角,坐标点可使用像素值或百分比单位指定。
|
14042
|
+
# 对自动擦除区域:
|
14043
|
+
# 当单位为%时,坐标范围为[0,1];
|
14044
|
+
# 当单位为px时,X值范围为 [0,视频画面宽度],Y值范围为 [0,视频画面高度]
|
14045
|
+
# 对指定擦除区域:
|
14046
|
+
# 当单位为%时,坐标范围为[0,1);
|
14047
|
+
# 当单位为px时,X值范围为 [0,视频画面宽度],Y值范围为 [0,视频画面高度]
|
14048
|
+
class EraseArea < TencentCloud::Common::AbstractModel
|
14049
|
+
# @param LeftTopX: 区域左上角X坐标。
|
14050
|
+
# 如当Unit取1即使用百分比单位时,0.05表示区域左上角离整个画面左上角的横向距离为画面宽度的5%。
|
14051
|
+
# @type LeftTopX: Float
|
14052
|
+
# @param LeftTopY: 区域左上角Y坐标。
|
14053
|
+
# 如当Unit取1即使用百分比单位时,0.1表示区域左上角离整个画面左上角的纵向距离为画面高度的10%。
|
14054
|
+
# @type LeftTopY: Float
|
14055
|
+
# @param RightBottomX: 区域右下角X坐标。
|
14056
|
+
# 如当Unit取1即使用百分比单位时,0.75表示区域右下角离整个画面左上角的横向距离为画面宽度的75%。
|
14057
|
+
# @type RightBottomX: Float
|
14058
|
+
# @param RightBottomY: 区域右下角Y坐标。
|
14059
|
+
# 如当Unit取1即使用百分比单位时,0.9表示区域右下角离整个画面左上角的纵向距离为画面高度的90%。
|
14060
|
+
# @type RightBottomY: Float
|
14061
|
+
# @param Unit: 坐标单位
|
14062
|
+
# - 1 百分比
|
14063
|
+
# - 2 像素值
|
14064
|
+
# @type Unit: Integer
|
14065
|
+
|
14066
|
+
attr_accessor :LeftTopX, :LeftTopY, :RightBottomX, :RightBottomY, :Unit
|
14067
|
+
|
14068
|
+
def initialize(lefttopx=nil, lefttopy=nil, rightbottomx=nil, rightbottomy=nil, unit=nil)
|
14069
|
+
@LeftTopX = lefttopx
|
14070
|
+
@LeftTopY = lefttopy
|
14071
|
+
@RightBottomX = rightbottomx
|
14072
|
+
@RightBottomY = rightbottomy
|
14073
|
+
@Unit = unit
|
14074
|
+
end
|
14075
|
+
|
14076
|
+
def deserialize(params)
|
14077
|
+
@LeftTopX = params['LeftTopX']
|
14078
|
+
@LeftTopY = params['LeftTopY']
|
14079
|
+
@RightBottomX = params['RightBottomX']
|
14080
|
+
@RightBottomY = params['RightBottomY']
|
14081
|
+
@Unit = params['Unit']
|
14082
|
+
end
|
14083
|
+
end
|
14084
|
+
|
14085
|
+
# 智能擦除,指定擦除区域配置。
|
14086
|
+
# 对指定时间段内的指定区域直接进行擦除。
|
14087
|
+
# 当BeginMs和EndMs均取0时对整个视频内的指定区域直接进行擦除。
|
14088
|
+
class EraseTimeArea < TencentCloud::Common::AbstractModel
|
14089
|
+
# @param BeginMs: 开始时间,单位:毫秒
|
14090
|
+
# @type BeginMs: Integer
|
14091
|
+
# @param EndMs: 结束时间,单位:毫秒
|
14092
|
+
# @type EndMs: Integer
|
14093
|
+
# @param Areas: 时间段内擦除区域列表
|
14094
|
+
# @type Areas: Array
|
14095
|
+
|
14096
|
+
attr_accessor :BeginMs, :EndMs, :Areas
|
14097
|
+
|
14098
|
+
def initialize(beginms=nil, endms=nil, areas=nil)
|
14099
|
+
@BeginMs = beginms
|
14100
|
+
@EndMs = endms
|
14101
|
+
@Areas = areas
|
14102
|
+
end
|
14103
|
+
|
14104
|
+
def deserialize(params)
|
14105
|
+
@BeginMs = params['BeginMs']
|
14106
|
+
@EndMs = params['EndMs']
|
14107
|
+
unless params['Areas'].nil?
|
14108
|
+
@Areas = []
|
14109
|
+
params['Areas'].each do |i|
|
14110
|
+
erasearea_tmp = EraseArea.new
|
14111
|
+
erasearea_tmp.deserialize(i)
|
14112
|
+
@Areas << erasearea_tmp
|
14113
|
+
end
|
14114
|
+
end
|
14115
|
+
end
|
14116
|
+
end
|
14117
|
+
|
13804
14118
|
# 视频评测任务的视频来源信息
|
13805
14119
|
class EvaluationMediaInputInfo < TencentCloud::Common::AbstractModel
|
13806
|
-
# @param SourceId: 对比视频的来源 ID,当评测任务的类型为 BD_RATE
|
14120
|
+
# @param SourceId: 对比视频的来源 ID,当评测任务的类型为 BD_RATE 且对比视频来自用户输入时有效;当对比视频来自转码模板时为空
|
13807
14121
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
13808
14122
|
# @type SourceId: String
|
13809
14123
|
# @param InputInfo: 对比视频的输入信息
|
@@ -13858,8 +14172,8 @@ module TencentCloud
|
|
13858
14172
|
|
13859
14173
|
attr_accessor :TaskType, :EvaluationTypeSet, :EvaluationRangeType, :ContrastInfoSet, :ContrastMediaSet, :ContrastTemplateSet, :StartTime, :EndTime, :StartFrameIndex, :EndFrameIndex, :ResolutionAlignmentMode, :BitrateSet, :VCRFSet
|
13860
14174
|
extend Gem::Deprecate
|
13861
|
-
deprecate :ContrastInfoSet, :none, 2025,
|
13862
|
-
deprecate :ContrastInfoSet=, :none, 2025,
|
14175
|
+
deprecate :ContrastInfoSet, :none, 2025, 9
|
14176
|
+
deprecate :ContrastInfoSet=, :none, 2025, 9
|
13863
14177
|
|
13864
14178
|
def initialize(tasktype=nil, evaluationtypeset=nil, evaluationrangetype=nil, contrastinfoset=nil, contrastmediaset=nil, contrasttemplateset=nil, starttime=nil, endtime=nil, startframeindex=nil, endframeindex=nil, resolutionalignmentmode=nil, bitrateset=nil, vcrfset=nil)
|
13865
14179
|
@TaskType = tasktype
|
@@ -13915,9 +14229,9 @@ module TencentCloud
|
|
13915
14229
|
end
|
13916
14230
|
end
|
13917
14231
|
|
13918
|
-
#
|
14232
|
+
# 在评测中使用的转码模板的信息
|
13919
14233
|
class EvaluationTemplateInputInfo < TencentCloud::Common::AbstractModel
|
13920
|
-
# @param Definition:
|
14234
|
+
# @param Definition: 转码模板的 ID。
|
13921
14235
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
13922
14236
|
# @type Definition: Integer
|
13923
14237
|
|
@@ -14050,6 +14364,81 @@ module TencentCloud
|
|
14050
14364
|
end
|
14051
14365
|
end
|
14052
14366
|
|
14367
|
+
# 提取视频数字水印任务信息
|
14368
|
+
class ExtractBlindWatermarkTask < TencentCloud::Common::AbstractModel
|
14369
|
+
# @param TaskId: 媒体处理任务 ID。
|
14370
|
+
# @type TaskId: String
|
14371
|
+
# @param Status: 任务流状态,取值:
|
14372
|
+
# <li>WAITING:等待中;</li>
|
14373
|
+
# <li>PROCESSING:处理中;</li>
|
14374
|
+
# <li>FINISH:已完成。</li>
|
14375
|
+
# @type Status: String
|
14376
|
+
# @param ErrCode: 错误码,0 表示成功,其他值表示失败。
|
14377
|
+
# @type ErrCode: Integer
|
14378
|
+
# @param Message: 错误信息。
|
14379
|
+
# @type Message: String
|
14380
|
+
# @param InputInfo: 媒体处理的目标文件信息。
|
14381
|
+
# @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
|
14382
|
+
# @param Type: 数字水印类型,可选值:<li>blind-basic:基础版权数字水印;</li> <li>blind-ab:ab版权数字水印;</li>
|
14383
|
+
# @type Type: String
|
14384
|
+
# @param IsDetected: 标记是否检测到水印,如果该参数为true, Result字段将返回水印提取结果,如果该参数为false,Result字段不会返回。
|
14385
|
+
# @type IsDetected: Boolean
|
14386
|
+
# @param Result: 提取出的数字水印内容,当没有检测到水印时该字段不会返回。
|
14387
|
+
# @type Result: String
|
14388
|
+
# @param ExtractBlindWatermarkConfig: 提取数字水印配置。
|
14389
|
+
# @type ExtractBlindWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.ExtractBlindWatermarkTaskConfig`
|
14390
|
+
|
14391
|
+
attr_accessor :TaskId, :Status, :ErrCode, :Message, :InputInfo, :Type, :IsDetected, :Result, :ExtractBlindWatermarkConfig
|
14392
|
+
|
14393
|
+
def initialize(taskid=nil, status=nil, errcode=nil, message=nil, inputinfo=nil, type=nil, isdetected=nil, result=nil, extractblindwatermarkconfig=nil)
|
14394
|
+
@TaskId = taskid
|
14395
|
+
@Status = status
|
14396
|
+
@ErrCode = errcode
|
14397
|
+
@Message = message
|
14398
|
+
@InputInfo = inputinfo
|
14399
|
+
@Type = type
|
14400
|
+
@IsDetected = isdetected
|
14401
|
+
@Result = result
|
14402
|
+
@ExtractBlindWatermarkConfig = extractblindwatermarkconfig
|
14403
|
+
end
|
14404
|
+
|
14405
|
+
def deserialize(params)
|
14406
|
+
@TaskId = params['TaskId']
|
14407
|
+
@Status = params['Status']
|
14408
|
+
@ErrCode = params['ErrCode']
|
14409
|
+
@Message = params['Message']
|
14410
|
+
unless params['InputInfo'].nil?
|
14411
|
+
@InputInfo = MediaInputInfo.new
|
14412
|
+
@InputInfo.deserialize(params['InputInfo'])
|
14413
|
+
end
|
14414
|
+
@Type = params['Type']
|
14415
|
+
@IsDetected = params['IsDetected']
|
14416
|
+
@Result = params['Result']
|
14417
|
+
unless params['ExtractBlindWatermarkConfig'].nil?
|
14418
|
+
@ExtractBlindWatermarkConfig = ExtractBlindWatermarkTaskConfig.new
|
14419
|
+
@ExtractBlindWatermarkConfig.deserialize(params['ExtractBlindWatermarkConfig'])
|
14420
|
+
end
|
14421
|
+
end
|
14422
|
+
end
|
14423
|
+
|
14424
|
+
# 提取视频转码数字水印任务配置
|
14425
|
+
class ExtractBlindWatermarkTaskConfig < TencentCloud::Common::AbstractModel
|
14426
|
+
# @param SegmentDuration: 当提取数字水印类型为blind-abseq时有效,用于指定输入视频的切片时长,单位:毫秒。
|
14427
|
+
# 如果不填默认切片时长为5秒。
|
14428
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14429
|
+
# @type SegmentDuration: Integer
|
14430
|
+
|
14431
|
+
attr_accessor :SegmentDuration
|
14432
|
+
|
14433
|
+
def initialize(segmentduration=nil)
|
14434
|
+
@SegmentDuration = segmentduration
|
14435
|
+
end
|
14436
|
+
|
14437
|
+
def deserialize(params)
|
14438
|
+
@SegmentDuration = params['SegmentDuration']
|
14439
|
+
end
|
14440
|
+
end
|
14441
|
+
|
14053
14442
|
# 人脸识别任务控制参数
|
14054
14443
|
class FaceConfigureInfo < TencentCloud::Common::AbstractModel
|
14055
14444
|
# @param Switch: 人脸识别任务开关,可选值:
|
@@ -15400,14 +15789,17 @@ module TencentCloud
|
|
15400
15789
|
# @param BlindWatermarkConfig: 盲水印配置。
|
15401
15790
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
15402
15791
|
# @type BlindWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.BlindWatermarkConfig`
|
15792
|
+
# @param BeautyConfig: 美颜配置。
|
15793
|
+
# @type BeautyConfig: :class:`Tencentcloud::Mps.v20190612.models.BeautyConfig`
|
15403
15794
|
|
15404
|
-
attr_accessor :EncodeConfig, :EnhanceConfig, :EraseConfig, :BlindWatermarkConfig
|
15795
|
+
attr_accessor :EncodeConfig, :EnhanceConfig, :EraseConfig, :BlindWatermarkConfig, :BeautyConfig
|
15405
15796
|
|
15406
|
-
def initialize(encodeconfig=nil, enhanceconfig=nil, eraseconfig=nil, blindwatermarkconfig=nil)
|
15797
|
+
def initialize(encodeconfig=nil, enhanceconfig=nil, eraseconfig=nil, blindwatermarkconfig=nil, beautyconfig=nil)
|
15407
15798
|
@EncodeConfig = encodeconfig
|
15408
15799
|
@EnhanceConfig = enhanceconfig
|
15409
15800
|
@EraseConfig = eraseconfig
|
15410
15801
|
@BlindWatermarkConfig = blindwatermarkconfig
|
15802
|
+
@BeautyConfig = beautyconfig
|
15411
15803
|
end
|
15412
15804
|
|
15413
15805
|
def deserialize(params)
|
@@ -15427,6 +15819,10 @@ module TencentCloud
|
|
15427
15819
|
@BlindWatermarkConfig = BlindWatermarkConfig.new
|
15428
15820
|
@BlindWatermarkConfig.deserialize(params['BlindWatermarkConfig'])
|
15429
15821
|
end
|
15822
|
+
unless params['BeautyConfig'].nil?
|
15823
|
+
@BeautyConfig = BeautyConfig.new
|
15824
|
+
@BeautyConfig.deserialize(params['BeautyConfig'])
|
15825
|
+
end
|
15430
15826
|
end
|
15431
15827
|
end
|
15432
15828
|
|
@@ -15953,10 +16349,10 @@ module TencentCloud
|
|
15953
16349
|
|
15954
16350
|
attr_accessor :QualityControlResults, :DiagnoseResults, :QualityControlResultSet, :DiagnoseResultSet
|
15955
16351
|
extend Gem::Deprecate
|
15956
|
-
deprecate :QualityControlResults, :none, 2025,
|
15957
|
-
deprecate :QualityControlResults=, :none, 2025,
|
15958
|
-
deprecate :DiagnoseResults, :none, 2025,
|
15959
|
-
deprecate :DiagnoseResults=, :none, 2025,
|
16352
|
+
deprecate :QualityControlResults, :none, 2025, 9
|
16353
|
+
deprecate :QualityControlResults=, :none, 2025, 9
|
16354
|
+
deprecate :DiagnoseResults, :none, 2025, 9
|
16355
|
+
deprecate :DiagnoseResults=, :none, 2025, 9
|
15960
16356
|
|
15961
16357
|
def initialize(qualitycontrolresults=nil, diagnoseresults=nil, qualitycontrolresultset=nil, diagnoseresultset=nil)
|
15962
16358
|
@QualityControlResults = qualitycontrolresults
|
@@ -17495,6 +17891,7 @@ module TencentCloud
|
|
17495
17891
|
# <li> COS:COS源</li>
|
17496
17892
|
# <li> URL:URL源</li>
|
17497
17893
|
# <li> AWS-S3:AWS 源,目前只支持转码任务 </li>
|
17894
|
+
# <li> VOD:点播专业版 </li>
|
17498
17895
|
# @type Type: String
|
17499
17896
|
# @param CosInputInfo: 当 Type 为 COS 时有效,则该项为必填,表示媒体处理 COS 对象信息。
|
17500
17897
|
# @type CosInputInfo: :class:`Tencentcloud::Mps.v20190612.models.CosInputInfo`
|
@@ -17504,14 +17901,18 @@ module TencentCloud
|
|
17504
17901
|
# @param S3InputInfo: 当 Type 为 AWS-S3 时有效,则该项为必填,表示媒体处理 AWS S3 对象信息。
|
17505
17902
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
17506
17903
|
# @type S3InputInfo: :class:`Tencentcloud::Mps.v20190612.models.S3InputInfo`
|
17904
|
+
# @param VODInputInfo: 当 Type 为 VOD 时有效,则该项为必填,表示媒体处理 点播专业版 对象信息。
|
17905
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17906
|
+
# @type VODInputInfo: :class:`Tencentcloud::Mps.v20190612.models.VODInputInfo`
|
17507
17907
|
|
17508
|
-
attr_accessor :Type, :CosInputInfo, :UrlInputInfo, :S3InputInfo
|
17908
|
+
attr_accessor :Type, :CosInputInfo, :UrlInputInfo, :S3InputInfo, :VODInputInfo
|
17509
17909
|
|
17510
|
-
def initialize(type=nil, cosinputinfo=nil, urlinputinfo=nil, s3inputinfo=nil)
|
17910
|
+
def initialize(type=nil, cosinputinfo=nil, urlinputinfo=nil, s3inputinfo=nil, vodinputinfo=nil)
|
17511
17911
|
@Type = type
|
17512
17912
|
@CosInputInfo = cosinputinfo
|
17513
17913
|
@UrlInputInfo = urlinputinfo
|
17514
17914
|
@S3InputInfo = s3inputinfo
|
17915
|
+
@VODInputInfo = vodinputinfo
|
17515
17916
|
end
|
17516
17917
|
|
17517
17918
|
def deserialize(params)
|
@@ -17528,6 +17929,10 @@ module TencentCloud
|
|
17528
17929
|
@S3InputInfo = S3InputInfo.new
|
17529
17930
|
@S3InputInfo.deserialize(params['S3InputInfo'])
|
17530
17931
|
end
|
17932
|
+
unless params['VODInputInfo'].nil?
|
17933
|
+
@VODInputInfo = VODInputInfo.new
|
17934
|
+
@VODInputInfo.deserialize(params['VODInputInfo'])
|
17935
|
+
end
|
17531
17936
|
end
|
17532
17937
|
end
|
17533
17938
|
|
@@ -19456,9 +19861,12 @@ module TencentCloud
|
|
19456
19861
|
# fr:法语
|
19457
19862
|
# de:德语
|
19458
19863
|
# zh_dialect:中文方言
|
19864
|
+
# zh_en: 中英
|
19865
|
+
# prime_zh: 中英方言
|
19459
19866
|
# @type VideoSrcLanguage: String
|
19460
19867
|
# @param SubtitleFormat: 智能字幕文件格式
|
19461
19868
|
# vtt: WebVTT 格式
|
19869
|
+
# srt: SRT格式
|
19462
19870
|
# 不填或填空:不生成字幕文件
|
19463
19871
|
# @type SubtitleFormat: String
|
19464
19872
|
# @param SubtitleType: 智能字幕字幕语言类型
|
@@ -21245,6 +21653,8 @@ module TencentCloud
|
|
21245
21653
|
# @type AiQualityControlTask: :class:`Tencentcloud::Mps.v20190612.models.AiQualityControlTaskInput`
|
21246
21654
|
# @param SmartSubtitlesTask: 智能字幕
|
21247
21655
|
# @type SmartSubtitlesTask: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitlesTaskInput`
|
21656
|
+
# @param SmartEraseTask: 智能擦除类型任务参数
|
21657
|
+
# @type SmartEraseTask: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseTaskInput`
|
21248
21658
|
# @param TaskNotifyConfig: 任务的事件通知信息,不填代表不获取事件通知。
|
21249
21659
|
# @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
|
21250
21660
|
# @param TasksPriority: 任务流的优先级,数值越大优先级越高,取值范围是-10到 10,不填代表0。
|
@@ -21265,9 +21675,9 @@ module TencentCloud
|
|
21265
21675
|
# 默认值:0
|
21266
21676
|
# @type SkipMateData: Integer
|
21267
21677
|
|
21268
|
-
attr_accessor :InputInfo, :OutputStorage, :OutputDir, :ScheduleId, :MediaProcessTask, :AiContentReviewTask, :AiAnalysisTask, :AiRecognitionTask, :AiQualityControlTask, :SmartSubtitlesTask, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext, :TaskType, :ResourceId, :SkipMateData
|
21678
|
+
attr_accessor :InputInfo, :OutputStorage, :OutputDir, :ScheduleId, :MediaProcessTask, :AiContentReviewTask, :AiAnalysisTask, :AiRecognitionTask, :AiQualityControlTask, :SmartSubtitlesTask, :SmartEraseTask, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext, :TaskType, :ResourceId, :SkipMateData
|
21269
21679
|
|
21270
|
-
def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, scheduleid=nil, mediaprocesstask=nil, aicontentreviewtask=nil, aianalysistask=nil, airecognitiontask=nil, aiqualitycontroltask=nil, smartsubtitlestask=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil, tasktype=nil, resourceid=nil, skipmatedata=nil)
|
21680
|
+
def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, scheduleid=nil, mediaprocesstask=nil, aicontentreviewtask=nil, aianalysistask=nil, airecognitiontask=nil, aiqualitycontroltask=nil, smartsubtitlestask=nil, smarterasetask=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil, tasktype=nil, resourceid=nil, skipmatedata=nil)
|
21271
21681
|
@InputInfo = inputinfo
|
21272
21682
|
@OutputStorage = outputstorage
|
21273
21683
|
@OutputDir = outputdir
|
@@ -21278,6 +21688,7 @@ module TencentCloud
|
|
21278
21688
|
@AiRecognitionTask = airecognitiontask
|
21279
21689
|
@AiQualityControlTask = aiqualitycontroltask
|
21280
21690
|
@SmartSubtitlesTask = smartsubtitlestask
|
21691
|
+
@SmartEraseTask = smarterasetask
|
21281
21692
|
@TaskNotifyConfig = tasknotifyconfig
|
21282
21693
|
@TasksPriority = taskspriority
|
21283
21694
|
@SessionId = sessionid
|
@@ -21322,6 +21733,10 @@ module TencentCloud
|
|
21322
21733
|
@SmartSubtitlesTask = SmartSubtitlesTaskInput.new
|
21323
21734
|
@SmartSubtitlesTask.deserialize(params['SmartSubtitlesTask'])
|
21324
21735
|
end
|
21736
|
+
unless params['SmartEraseTask'].nil?
|
21737
|
+
@SmartEraseTask = SmartEraseTaskInput.new
|
21738
|
+
@SmartEraseTask.deserialize(params['SmartEraseTask'])
|
21739
|
+
end
|
21325
21740
|
unless params['TaskNotifyConfig'].nil?
|
21326
21741
|
@TaskNotifyConfig = TaskNotifyConfig.new
|
21327
21742
|
@TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
|
@@ -21596,10 +22011,16 @@ module TencentCloud
|
|
21596
22011
|
# 质检项配置
|
21597
22012
|
class QualityControlItemConfig < TencentCloud::Common::AbstractModel
|
21598
22013
|
# @param Type: 质检项名称。质检项取值如下:
|
21599
|
-
# <li>LowEvaluation
|
22014
|
+
# <li>LowEvaluation:视频无参考评分(MOS)</li>
|
22015
|
+
# <li>AudioEvaluation:音频无参考评分(MOS)</li>
|
21600
22016
|
# <li>Mosaic:马赛克检测</li>
|
21601
22017
|
# <li>CrashScreen:花屏检测</li>
|
21602
22018
|
# <li>Blur:模糊检测</li>
|
22019
|
+
# <li>Jitter:抖动检测</li>
|
22020
|
+
# <li>Noise:噪点检测</li>
|
22021
|
+
# <li>QRCode:二维码检测</li>
|
22022
|
+
# <li>BarCode:条形码检测</li>
|
22023
|
+
# <li>AppletCode:小程序码检测</li>
|
21603
22024
|
# <li>BlackWhiteEdge:黑白边检测</li>
|
21604
22025
|
# <li>SolidColorScreen:纯色屏检测</li>
|
21605
22026
|
# <li>LowLighting:低光照</li>
|
@@ -21607,11 +22028,7 @@ module TencentCloud
|
|
21607
22028
|
# <li>NoVoice:静音检测</li>
|
21608
22029
|
# <li>LowVoice:低音检测</li>
|
21609
22030
|
# <li>HighVoice:爆音检测</li>
|
21610
|
-
# <li>
|
21611
|
-
# <li>Noise:噪点检测</li>
|
21612
|
-
# <li>QRCode:二维码检测</li>
|
21613
|
-
# <li>BarCode:条形码检测</li>
|
21614
|
-
# <li>AppletCode:小程序码检测</li>
|
22031
|
+
# <li>AudioNoise:音频噪声检测</li>
|
21615
22032
|
# <li>VideoResolutionChanged:视频分辨率变化</li>
|
21616
22033
|
# <li>AudioSampleRateChanged:音频采样率变化</li>
|
21617
22034
|
# <li>AudioChannelsChanged:音频通道数变化</li>
|
@@ -21945,6 +22362,52 @@ module TencentCloud
|
|
21945
22362
|
end
|
21946
22363
|
end
|
21947
22364
|
|
22365
|
+
# 智能擦除自定义参数
|
22366
|
+
class RawSmartEraseParameter < TencentCloud::Common::AbstractModel
|
22367
|
+
# @param EraseType: 擦除类型
|
22368
|
+
# - subtitle 去字幕
|
22369
|
+
# - watermark 去水印
|
22370
|
+
# - privacy 隐私保护
|
22371
|
+
# @type EraseType: String
|
22372
|
+
# @param EraseSubtitleConfig: 字幕擦除配置;
|
22373
|
+
# 当EraseType值为:subtitle,此字段为必填参数
|
22374
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
22375
|
+
# @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
|
22376
|
+
# @param EraseWatermarkConfig: 水印擦除配置;
|
22377
|
+
# 当EraseType值为:watermark,此字段为必填参数
|
22378
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
22379
|
+
# @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
|
22380
|
+
# @param ErasePrivacyConfig: 隐私保护配置;
|
22381
|
+
# 当EraseType值为:privacy,此字段为必填参数
|
22382
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
22383
|
+
# @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
|
22384
|
+
|
22385
|
+
attr_accessor :EraseType, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig
|
22386
|
+
|
22387
|
+
def initialize(erasetype=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil)
|
22388
|
+
@EraseType = erasetype
|
22389
|
+
@EraseSubtitleConfig = erasesubtitleconfig
|
22390
|
+
@EraseWatermarkConfig = erasewatermarkconfig
|
22391
|
+
@ErasePrivacyConfig = eraseprivacyconfig
|
22392
|
+
end
|
22393
|
+
|
22394
|
+
def deserialize(params)
|
22395
|
+
@EraseType = params['EraseType']
|
22396
|
+
unless params['EraseSubtitleConfig'].nil?
|
22397
|
+
@EraseSubtitleConfig = SmartEraseSubtitleConfig.new
|
22398
|
+
@EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
|
22399
|
+
end
|
22400
|
+
unless params['EraseWatermarkConfig'].nil?
|
22401
|
+
@EraseWatermarkConfig = SmartEraseWatermarkConfig.new
|
22402
|
+
@EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
|
22403
|
+
end
|
22404
|
+
unless params['ErasePrivacyConfig'].nil?
|
22405
|
+
@ErasePrivacyConfig = SmartErasePrivacyConfig.new
|
22406
|
+
@ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
|
22407
|
+
end
|
22408
|
+
end
|
22409
|
+
end
|
22410
|
+
|
21948
22411
|
# 自定义智能字幕参数
|
21949
22412
|
class RawSmartSubtitleParameter < TencentCloud::Common::AbstractModel
|
21950
22413
|
# @param SubtitleType: 智能字幕字幕语言类型
|
@@ -21976,9 +22439,12 @@ module TencentCloud
|
|
21976
22439
|
# fr:法语
|
21977
22440
|
# de:德语
|
21978
22441
|
# zh_dialect:中文方言
|
22442
|
+
# zh_en: 中英
|
22443
|
+
# prime_zh: 中英方言
|
21979
22444
|
# @type VideoSrcLanguage: String
|
21980
22445
|
# @param SubtitleFormat: 智能字幕文件格式
|
21981
22446
|
# vtt: WebVTT 格式
|
22447
|
+
# srt: SRT格式
|
21982
22448
|
# 不填或填空:不生成字幕文件
|
21983
22449
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21984
22450
|
# @type SubtitleFormat: String
|
@@ -23456,6 +23922,288 @@ module TencentCloud
|
|
23456
23922
|
end
|
23457
23923
|
end
|
23458
23924
|
|
23925
|
+
# 智能擦除模板隐私保护配置
|
23926
|
+
class SmartErasePrivacyConfig < TencentCloud::Common::AbstractModel
|
23927
|
+
# @param PrivacyModel: 隐私保护擦除方式。
|
23928
|
+
# - blur 模糊
|
23929
|
+
# - mosaic 马赛克
|
23930
|
+
# @type PrivacyModel: String
|
23931
|
+
# @param PrivacyTargets: 隐私保护目标,(在API Explorer上使用时无需传入数组,添加相应项并填入对应值即可)。
|
23932
|
+
# - face 人脸
|
23933
|
+
# - plate 车牌
|
23934
|
+
# @type PrivacyTargets: Array
|
23935
|
+
|
23936
|
+
attr_accessor :PrivacyModel, :PrivacyTargets
|
23937
|
+
|
23938
|
+
def initialize(privacymodel=nil, privacytargets=nil)
|
23939
|
+
@PrivacyModel = privacymodel
|
23940
|
+
@PrivacyTargets = privacytargets
|
23941
|
+
end
|
23942
|
+
|
23943
|
+
def deserialize(params)
|
23944
|
+
@PrivacyModel = params['PrivacyModel']
|
23945
|
+
@PrivacyTargets = params['PrivacyTargets']
|
23946
|
+
end
|
23947
|
+
end
|
23948
|
+
|
23949
|
+
# 智能擦除模板去字幕配置
|
23950
|
+
class SmartEraseSubtitleConfig < TencentCloud::Common::AbstractModel
|
23951
|
+
# @param SubtitleEraseMethod: 字幕擦除方式。
|
23952
|
+
# **自动擦除:**通过AI模型自动识别视频中的字幕文本内容,进行无痕化擦除,生成新的视频。但画面干扰、特殊字幕样式可能会带来一定漏擦误擦问题,可以通过指定区域擦除处理。
|
23953
|
+
# 当使用自动擦除时,若您不指定AutoAreas,将对默认区域(画面中下部)进行自动擦除;若指定AutoAreas,将改为对您指定的区域进行自动擦除。
|
23954
|
+
# **指定区域擦除:**若您的字幕位置较固定,建议您直接指定擦除区域,最大程度减少漏擦的情况。
|
23955
|
+
# 当您选择指定区域擦除时,请在CustomAreas中至少传入一个指定区域。
|
23956
|
+
# - auto 自动擦除
|
23957
|
+
# - custom 指定区域擦除
|
23958
|
+
# @type SubtitleEraseMethod: String
|
23959
|
+
# @param SubtitleModel: 字幕擦除模型。
|
23960
|
+
# **标准版(推荐):**若您的字幕样式标准,通常建议选择该版本,细节无痕化效果更好。
|
23961
|
+
# **区域版:**若您的字幕存在花体、阴影、动效等特殊样式,建议选择区域版,擦除面积更大,但细节效果不如标准版。
|
23962
|
+
# - standard 标准模型
|
23963
|
+
# - area 区域模型
|
23964
|
+
# @type SubtitleModel: String
|
23965
|
+
# @param OcrSwitch: 是否开启OCR字幕提取,默认取OFF。
|
23966
|
+
# 当且仅当SubtitleEraseMethod取auto时支持开启OCR字幕提取,开启后将识别自动擦除区域内出现时间最长且最稳定的文字区域为字幕区域,对字幕区域中的文字进行提取和擦除。
|
23967
|
+
# - ON 开启
|
23968
|
+
# - OFF 关闭
|
23969
|
+
# @type OcrSwitch: String
|
23970
|
+
# @param SubtitleLang: 字幕语言,用于指导OCR识别,默认取zh_en;仅当OcrSwitch取"ON"时生效。
|
23971
|
+
# - zh_en 中英文
|
23972
|
+
# - multi 其他
|
23973
|
+
# 其他具体支持识别如下语言:
|
23974
|
+
# 中文、英文、日文、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语、印地语、阿拉伯语、印度-孟加拉语、印度-古吉拉特语、印度-卡纳达语 、印度-马拉亚拉姆语 、印度-泰米尔语、印度-泰卢固语、斯洛文尼亚语、波兰语、加泰罗尼亚语、波斯尼亚语、捷克语、爱沙尼亚语、克罗地亚语、旁遮普语、马拉地语、阿塞拜疆语、印尼语、卢森堡语 、立陶宛语、拉脱维亚语、马耳他语、斯洛伐克语、土耳其语、哈萨克语、希腊语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语
|
23975
|
+
|
23976
|
+
# @type SubtitleLang: String
|
23977
|
+
# @param SubtitleFormat: 字幕文件格式,默认取vtt;仅当OcrSwitch取"ON"时生效。
|
23978
|
+
# - srt srt格式
|
23979
|
+
# - vtt WebVTT格式
|
23980
|
+
# @type SubtitleFormat: String
|
23981
|
+
# @param TransSwitch: 是否开启字幕翻译,默认取OFF;仅当OcrSwitch取"ON"时生效。
|
23982
|
+
# - ON 开启
|
23983
|
+
# - OFF 关闭
|
23984
|
+
# @type TransSwitch: String
|
23985
|
+
# @param TransDstLang: 字幕翻译目标语言,默认取en;仅当TransSwitch取"ON"时生效。
|
23986
|
+
# 当前支持以下语言:
|
23987
|
+
# zh:简体中文
|
23988
|
+
# en:英语
|
23989
|
+
# ja:日语
|
23990
|
+
# ko:韩语
|
23991
|
+
# fr:法语
|
23992
|
+
# es:西班牙语
|
23993
|
+
# it:意大利语
|
23994
|
+
# de:德语
|
23995
|
+
# tr:土耳其语
|
23996
|
+
# ru:俄语
|
23997
|
+
# pt:葡萄牙语
|
23998
|
+
# vi:越南语
|
23999
|
+
# id:印度尼西亚语
|
24000
|
+
# ms:马来语
|
24001
|
+
# th:泰语
|
24002
|
+
# ar:阿拉伯语
|
24003
|
+
# hi:印地语
|
24004
|
+
# @type TransDstLang: String
|
24005
|
+
# @param AutoAreas: 自动擦除自定义区域。
|
24006
|
+
# 对选定区域,利用AI模型自动检测其中存在的擦除目标并擦除。
|
24007
|
+
# 注意:当擦除方式选择custom时,此参数将不会生效;修改模板时,清除区域请传入[],不传时将保持模板区域信息不变。
|
24008
|
+
# @type AutoAreas: Array
|
24009
|
+
# @param CustomAreas: 指定擦除自定义区域。
|
24010
|
+
# 对选定区域,在选定时间段内不进行检测识别直接进行擦除。
|
24011
|
+
# 注意:修改模板时,清除区域请传入[],不传时将保持模板区域信息不变。
|
24012
|
+
# @type CustomAreas: Array
|
24013
|
+
|
24014
|
+
attr_accessor :SubtitleEraseMethod, :SubtitleModel, :OcrSwitch, :SubtitleLang, :SubtitleFormat, :TransSwitch, :TransDstLang, :AutoAreas, :CustomAreas
|
24015
|
+
|
24016
|
+
def initialize(subtitleerasemethod=nil, subtitlemodel=nil, ocrswitch=nil, subtitlelang=nil, subtitleformat=nil, transswitch=nil, transdstlang=nil, autoareas=nil, customareas=nil)
|
24017
|
+
@SubtitleEraseMethod = subtitleerasemethod
|
24018
|
+
@SubtitleModel = subtitlemodel
|
24019
|
+
@OcrSwitch = ocrswitch
|
24020
|
+
@SubtitleLang = subtitlelang
|
24021
|
+
@SubtitleFormat = subtitleformat
|
24022
|
+
@TransSwitch = transswitch
|
24023
|
+
@TransDstLang = transdstlang
|
24024
|
+
@AutoAreas = autoareas
|
24025
|
+
@CustomAreas = customareas
|
24026
|
+
end
|
24027
|
+
|
24028
|
+
def deserialize(params)
|
24029
|
+
@SubtitleEraseMethod = params['SubtitleEraseMethod']
|
24030
|
+
@SubtitleModel = params['SubtitleModel']
|
24031
|
+
@OcrSwitch = params['OcrSwitch']
|
24032
|
+
@SubtitleLang = params['SubtitleLang']
|
24033
|
+
@SubtitleFormat = params['SubtitleFormat']
|
24034
|
+
@TransSwitch = params['TransSwitch']
|
24035
|
+
@TransDstLang = params['TransDstLang']
|
24036
|
+
unless params['AutoAreas'].nil?
|
24037
|
+
@AutoAreas = []
|
24038
|
+
params['AutoAreas'].each do |i|
|
24039
|
+
erasearea_tmp = EraseArea.new
|
24040
|
+
erasearea_tmp.deserialize(i)
|
24041
|
+
@AutoAreas << erasearea_tmp
|
24042
|
+
end
|
24043
|
+
end
|
24044
|
+
unless params['CustomAreas'].nil?
|
24045
|
+
@CustomAreas = []
|
24046
|
+
params['CustomAreas'].each do |i|
|
24047
|
+
erasetimearea_tmp = EraseTimeArea.new
|
24048
|
+
erasetimearea_tmp.deserialize(i)
|
24049
|
+
@CustomAreas << erasetimearea_tmp
|
24050
|
+
end
|
24051
|
+
end
|
24052
|
+
end
|
24053
|
+
end
|
24054
|
+
|
24055
|
+
# 智能擦除任务
|
24056
|
+
class SmartEraseTaskInput < TencentCloud::Common::AbstractModel
|
24057
|
+
# @param Definition: 智能擦除模板id。
|
24058
|
+
# @type Definition: Integer
|
24059
|
+
# @param RawParameter: 智能擦除自定义参数,当 Definition 填 0 时有效。 该参数用于高度定制场景,建议您优先使用 Definition 指定智能擦除参数。
|
24060
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24061
|
+
# @type RawParameter: :class:`Tencentcloud::Mps.v20190612.models.RawSmartEraseParameter`
|
24062
|
+
# @param OutputStorage: 文件的目标存储,不填则继承上层的 OutputStorage 值。
|
24063
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24064
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
24065
|
+
# @param OutputObjectPath: 文件的输出路径,可以为相对路径或者绝对路径。
|
24066
|
+
# 若需定义输出路径,路径需以`.{format}`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。
|
24067
|
+
# 相对路径示例:
|
24068
|
+
# <li>文件名_{变量名}.{format}</li>
|
24069
|
+
# <li>文件名.{format}</li>
|
24070
|
+
# 绝对路径示例:
|
24071
|
+
# <li>/自定义路径/文件名_{变量名}.{format}</li>
|
24072
|
+
|
24073
|
+
# **注意**:目前不支持`BatchProcessMedia`接口。
|
24074
|
+
# @type OutputObjectPath: String
|
24075
|
+
|
24076
|
+
attr_accessor :Definition, :RawParameter, :OutputStorage, :OutputObjectPath
|
24077
|
+
|
24078
|
+
def initialize(definition=nil, rawparameter=nil, outputstorage=nil, outputobjectpath=nil)
|
24079
|
+
@Definition = definition
|
24080
|
+
@RawParameter = rawparameter
|
24081
|
+
@OutputStorage = outputstorage
|
24082
|
+
@OutputObjectPath = outputobjectpath
|
24083
|
+
end
|
24084
|
+
|
24085
|
+
def deserialize(params)
|
24086
|
+
@Definition = params['Definition']
|
24087
|
+
unless params['RawParameter'].nil?
|
24088
|
+
@RawParameter = RawSmartEraseParameter.new
|
24089
|
+
@RawParameter.deserialize(params['RawParameter'])
|
24090
|
+
end
|
24091
|
+
unless params['OutputStorage'].nil?
|
24092
|
+
@OutputStorage = TaskOutputStorage.new
|
24093
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
24094
|
+
end
|
24095
|
+
@OutputObjectPath = params['OutputObjectPath']
|
24096
|
+
end
|
24097
|
+
end
|
24098
|
+
|
24099
|
+
# 智能擦除任务结果
|
24100
|
+
class SmartEraseTaskResult < TencentCloud::Common::AbstractModel
|
24101
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
24102
|
+
# @type Status: String
|
24103
|
+
# @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) 列表。
|
24104
|
+
# @type ErrCodeExt: String
|
24105
|
+
# @param Message: 错误信息。
|
24106
|
+
# @type Message: String
|
24107
|
+
# @param Input: 智能擦除输入。
|
24108
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24109
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseTaskInput`
|
24110
|
+
# @param Output: 智能擦除任务输出。
|
24111
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24112
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskDelLogoOutput`
|
24113
|
+
# @param Progress: 任务进度。
|
24114
|
+
# @type Progress: Integer
|
24115
|
+
# @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
|
24116
|
+
# @type BeginProcessTime: String
|
24117
|
+
# @param FinishTime: 任务执行完毕的时间,采用 ISO 日期格式。
|
24118
|
+
# @type FinishTime: String
|
24119
|
+
|
24120
|
+
attr_accessor :Status, :ErrCodeExt, :Message, :Input, :Output, :Progress, :BeginProcessTime, :FinishTime
|
24121
|
+
|
24122
|
+
def initialize(status=nil, errcodeext=nil, message=nil, input=nil, output=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
24123
|
+
@Status = status
|
24124
|
+
@ErrCodeExt = errcodeext
|
24125
|
+
@Message = message
|
24126
|
+
@Input = input
|
24127
|
+
@Output = output
|
24128
|
+
@Progress = progress
|
24129
|
+
@BeginProcessTime = beginprocesstime
|
24130
|
+
@FinishTime = finishtime
|
24131
|
+
end
|
24132
|
+
|
24133
|
+
def deserialize(params)
|
24134
|
+
@Status = params['Status']
|
24135
|
+
@ErrCodeExt = params['ErrCodeExt']
|
24136
|
+
@Message = params['Message']
|
24137
|
+
unless params['Input'].nil?
|
24138
|
+
@Input = SmartEraseTaskInput.new
|
24139
|
+
@Input.deserialize(params['Input'])
|
24140
|
+
end
|
24141
|
+
unless params['Output'].nil?
|
24142
|
+
@Output = AiAnalysisTaskDelLogoOutput.new
|
24143
|
+
@Output.deserialize(params['Output'])
|
24144
|
+
end
|
24145
|
+
@Progress = params['Progress']
|
24146
|
+
@BeginProcessTime = params['BeginProcessTime']
|
24147
|
+
@FinishTime = params['FinishTime']
|
24148
|
+
end
|
24149
|
+
end
|
24150
|
+
|
24151
|
+
# 智能擦除模板去水印配置
|
24152
|
+
class SmartEraseWatermarkConfig < TencentCloud::Common::AbstractModel
|
24153
|
+
# @param WatermarkEraseMethod: 水印擦除方式。
|
24154
|
+
# **自动擦除:**通过A模型自动识别视频中的水印,擦除后生成新的视频。适用于动态水印。
|
24155
|
+
# 当使用自动擦除时,若您不指定AutoAreas,将对视频全屏进行自动擦除;若指定AutoAreas,将改为对您指定的区域进行自动擦除。
|
24156
|
+
# **指定区域擦除:**针对位置较固定的静态水印,建议您直接指定擦除区域。
|
24157
|
+
# 当您选择指定区域擦除时,请至少传入一个指定区域。
|
24158
|
+
|
24159
|
+
# - auto 自动擦除
|
24160
|
+
# - custom 指定区域擦除
|
24161
|
+
# @type WatermarkEraseMethod: String
|
24162
|
+
# @param WatermarkModel: 水印擦除模型。
|
24163
|
+
# 基础版:效果一般,性价比高,适合动画或背景较干净的视频。
|
24164
|
+
# 高级版:效果更好,适合短剧等现实风格视频。
|
24165
|
+
# - basic 基础版
|
24166
|
+
# - advanced 高级版
|
24167
|
+
# @type WatermarkModel: String
|
24168
|
+
# @param AutoAreas: 自动擦除自定义区域。
|
24169
|
+
# 对选定区域,利用AI模型自动检测其中存在的擦除目标并擦除。
|
24170
|
+
# 注意,当擦除方式为custom时,此参数将不会生效。
|
24171
|
+
# @type AutoAreas: Array
|
24172
|
+
# @param CustomAreas: 指定擦除自定义区域。
|
24173
|
+
# 对选定区域,在选定时间段内不进行检测识别直接进行擦除。
|
24174
|
+
# @type CustomAreas: Array
|
24175
|
+
|
24176
|
+
attr_accessor :WatermarkEraseMethod, :WatermarkModel, :AutoAreas, :CustomAreas
|
24177
|
+
|
24178
|
+
def initialize(watermarkerasemethod=nil, watermarkmodel=nil, autoareas=nil, customareas=nil)
|
24179
|
+
@WatermarkEraseMethod = watermarkerasemethod
|
24180
|
+
@WatermarkModel = watermarkmodel
|
24181
|
+
@AutoAreas = autoareas
|
24182
|
+
@CustomAreas = customareas
|
24183
|
+
end
|
24184
|
+
|
24185
|
+
def deserialize(params)
|
24186
|
+
@WatermarkEraseMethod = params['WatermarkEraseMethod']
|
24187
|
+
@WatermarkModel = params['WatermarkModel']
|
24188
|
+
unless params['AutoAreas'].nil?
|
24189
|
+
@AutoAreas = []
|
24190
|
+
params['AutoAreas'].each do |i|
|
24191
|
+
erasearea_tmp = EraseArea.new
|
24192
|
+
erasearea_tmp.deserialize(i)
|
24193
|
+
@AutoAreas << erasearea_tmp
|
24194
|
+
end
|
24195
|
+
end
|
24196
|
+
unless params['CustomAreas'].nil?
|
24197
|
+
@CustomAreas = []
|
24198
|
+
params['CustomAreas'].each do |i|
|
24199
|
+
erasetimearea_tmp = EraseTimeArea.new
|
24200
|
+
erasetimearea_tmp.deserialize(i)
|
24201
|
+
@CustomAreas << erasetimearea_tmp
|
24202
|
+
end
|
24203
|
+
end
|
24204
|
+
end
|
24205
|
+
end
|
24206
|
+
|
23459
24207
|
# 语音全文识别结果。
|
23460
24208
|
class SmartSubtitleTaskAsrFullTextResult < TencentCloud::Common::AbstractModel
|
23461
24209
|
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
@@ -23512,12 +24260,15 @@ module TencentCloud
|
|
23512
24260
|
# @type SegmentSet: Array
|
23513
24261
|
# @param SubtitlePath: 字幕文件地址。
|
23514
24262
|
# @type SubtitlePath: String
|
24263
|
+
# @param OutputStorage: 字幕文件存储位置。
|
24264
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
23515
24265
|
|
23516
|
-
attr_accessor :SegmentSet, :SubtitlePath
|
24266
|
+
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
23517
24267
|
|
23518
|
-
def initialize(segmentset=nil, subtitlepath=nil)
|
24268
|
+
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
23519
24269
|
@SegmentSet = segmentset
|
23520
24270
|
@SubtitlePath = subtitlepath
|
24271
|
+
@OutputStorage = outputstorage
|
23521
24272
|
end
|
23522
24273
|
|
23523
24274
|
def deserialize(params)
|
@@ -23530,6 +24281,10 @@ module TencentCloud
|
|
23530
24281
|
end
|
23531
24282
|
end
|
23532
24283
|
@SubtitlePath = params['SubtitlePath']
|
24284
|
+
unless params['OutputStorage'].nil?
|
24285
|
+
@OutputStorage = TaskOutputStorage.new
|
24286
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
24287
|
+
end
|
23533
24288
|
end
|
23534
24289
|
end
|
23535
24290
|
|
@@ -23698,12 +24453,15 @@ module TencentCloud
|
|
23698
24453
|
# @type SegmentSet: Array
|
23699
24454
|
# @param SubtitlePath: 字幕文件地址。
|
23700
24455
|
# @type SubtitlePath: String
|
24456
|
+
# @param OutputStorage: 字幕文件存储位置。
|
24457
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
23701
24458
|
|
23702
|
-
attr_accessor :SegmentSet, :SubtitlePath
|
24459
|
+
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
23703
24460
|
|
23704
|
-
def initialize(segmentset=nil, subtitlepath=nil)
|
24461
|
+
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
23705
24462
|
@SegmentSet = segmentset
|
23706
24463
|
@SubtitlePath = subtitlepath
|
24464
|
+
@OutputStorage = outputstorage
|
23707
24465
|
end
|
23708
24466
|
|
23709
24467
|
def deserialize(params)
|
@@ -23716,6 +24474,10 @@ module TencentCloud
|
|
23716
24474
|
end
|
23717
24475
|
end
|
23718
24476
|
@SubtitlePath = params['SubtitlePath']
|
24477
|
+
unless params['OutputStorage'].nil?
|
24478
|
+
@OutputStorage = TaskOutputStorage.new
|
24479
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
24480
|
+
end
|
23719
24481
|
end
|
23720
24482
|
end
|
23721
24483
|
|
@@ -24713,6 +25475,7 @@ module TencentCloud
|
|
24713
25475
|
# @param Type: 媒体处理输出对象存储位置的类型,支持:
|
24714
25476
|
# <li>COS:COS存储</li>
|
24715
25477
|
# <li>AWS-S3:AWS 存储,只适用于AWS任务,且要求同区域</li>
|
25478
|
+
# <li> VOD:点播专业版 </li>
|
24716
25479
|
# @type Type: String
|
24717
25480
|
# @param CosOutputStorage: 当 Type 为 COS 时有效,则该项为必填,表示媒体处理 COS 输出位置。
|
24718
25481
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -24720,13 +25483,17 @@ module TencentCloud
|
|
24720
25483
|
# @param S3OutputStorage: 当 Type 为 AWS-S3 时有效,则该项为必填,表示媒体处理 AWS S3 输出位置。
|
24721
25484
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
24722
25485
|
# @type S3OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.S3OutputStorage`
|
25486
|
+
# @param VODOutputStorage: 当 Type 为 VOD 时有效,则该项为必填,表示媒体处理 点播专业版 输出位置。
|
25487
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
25488
|
+
# @type VODOutputStorage: :class:`Tencentcloud::Mps.v20190612.models.VODOutputStorage`
|
24723
25489
|
|
24724
|
-
attr_accessor :Type, :CosOutputStorage, :S3OutputStorage
|
25490
|
+
attr_accessor :Type, :CosOutputStorage, :S3OutputStorage, :VODOutputStorage
|
24725
25491
|
|
24726
|
-
def initialize(type=nil, cosoutputstorage=nil, s3outputstorage=nil)
|
25492
|
+
def initialize(type=nil, cosoutputstorage=nil, s3outputstorage=nil, vodoutputstorage=nil)
|
24727
25493
|
@Type = type
|
24728
25494
|
@CosOutputStorage = cosoutputstorage
|
24729
25495
|
@S3OutputStorage = s3outputstorage
|
25496
|
+
@VODOutputStorage = vodoutputstorage
|
24730
25497
|
end
|
24731
25498
|
|
24732
25499
|
def deserialize(params)
|
@@ -24739,6 +25506,10 @@ module TencentCloud
|
|
24739
25506
|
@S3OutputStorage = S3OutputStorage.new
|
24740
25507
|
@S3OutputStorage.deserialize(params['S3OutputStorage'])
|
24741
25508
|
end
|
25509
|
+
unless params['VODOutputStorage'].nil?
|
25510
|
+
@VODOutputStorage = VODOutputStorage.new
|
25511
|
+
@VODOutputStorage.deserialize(params['VODOutputStorage'])
|
25512
|
+
end
|
24742
25513
|
end
|
24743
25514
|
end
|
24744
25515
|
|
@@ -25671,6 +26442,58 @@ module TencentCloud
|
|
25671
26442
|
end
|
25672
26443
|
end
|
25673
26444
|
|
26445
|
+
# 媒体处理 VOD (点播专业版)对象信息。
|
26446
|
+
class VODInputInfo < TencentCloud::Common::AbstractModel
|
26447
|
+
# @param Bucket: 媒体处理对象文件所在的 *Bucket ID*
|
26448
|
+
# @type Bucket: String
|
26449
|
+
# @param Region: 媒体处理对象文件所在的 Bucket 所属园区
|
26450
|
+
# @type Region: String
|
26451
|
+
# @param Object: 媒体处理对象文件的输入路径
|
26452
|
+
# @type Object: String
|
26453
|
+
# @param SubAppId: 点播专业版应用Id
|
26454
|
+
# @type SubAppId: Integer
|
26455
|
+
|
26456
|
+
attr_accessor :Bucket, :Region, :Object, :SubAppId
|
26457
|
+
|
26458
|
+
def initialize(bucket=nil, region=nil, object=nil, subappid=nil)
|
26459
|
+
@Bucket = bucket
|
26460
|
+
@Region = region
|
26461
|
+
@Object = object
|
26462
|
+
@SubAppId = subappid
|
26463
|
+
end
|
26464
|
+
|
26465
|
+
def deserialize(params)
|
26466
|
+
@Bucket = params['Bucket']
|
26467
|
+
@Region = params['Region']
|
26468
|
+
@Object = params['Object']
|
26469
|
+
@SubAppId = params['SubAppId']
|
26470
|
+
end
|
26471
|
+
end
|
26472
|
+
|
26473
|
+
# 媒体处理 VOD(点播专业版) 输出对象信息。
|
26474
|
+
class VODOutputStorage < TencentCloud::Common::AbstractModel
|
26475
|
+
# @param Bucket: 媒体处理生成的文件输出的目标 *Bucket ID*
|
26476
|
+
# @type Bucket: String
|
26477
|
+
# @param Region: 媒体处理生成的文件输出的目标 Bucket 的园区
|
26478
|
+
# @type Region: String
|
26479
|
+
# @param SubAppId: 点播专业版应用Id
|
26480
|
+
# @type SubAppId: Integer
|
26481
|
+
|
26482
|
+
attr_accessor :Bucket, :Region, :SubAppId
|
26483
|
+
|
26484
|
+
def initialize(bucket=nil, region=nil, subappid=nil)
|
26485
|
+
@Bucket = bucket
|
26486
|
+
@Region = region
|
26487
|
+
@SubAppId = subappid
|
26488
|
+
end
|
26489
|
+
|
26490
|
+
def deserialize(params)
|
26491
|
+
@Bucket = params['Bucket']
|
26492
|
+
@Region = params['Region']
|
26493
|
+
@SubAppId = params['SubAppId']
|
26494
|
+
end
|
26495
|
+
end
|
26496
|
+
|
25674
26497
|
# 视频检索入库任务的结果
|
25675
26498
|
class VideoDBEntryTaskResult < TencentCloud::Common::AbstractModel
|
25676
26499
|
# @param VideoId: 入库的视频ID
|
@@ -26681,10 +27504,13 @@ module TencentCloud
|
|
26681
27504
|
# @param SmartSubtitlesTaskResult: 智能字幕任务的执行结果
|
26682
27505
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
26683
27506
|
# @type SmartSubtitlesTaskResult: Array
|
27507
|
+
# @param SmartEraseTaskResult: 智能擦除任务的执行结果
|
27508
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
27509
|
+
# @type SmartEraseTaskResult: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseTaskResult`
|
26684
27510
|
|
26685
|
-
attr_accessor :TaskId, :Status, :ErrCode, :Message, :InputInfo, :MetaData, :MediaProcessResultSet, :AiContentReviewResultSet, :AiAnalysisResultSet, :AiRecognitionResultSet, :AiQualityControlTaskResult, :SmartSubtitlesTaskResult
|
27511
|
+
attr_accessor :TaskId, :Status, :ErrCode, :Message, :InputInfo, :MetaData, :MediaProcessResultSet, :AiContentReviewResultSet, :AiAnalysisResultSet, :AiRecognitionResultSet, :AiQualityControlTaskResult, :SmartSubtitlesTaskResult, :SmartEraseTaskResult
|
26686
27512
|
|
26687
|
-
def initialize(taskid=nil, status=nil, errcode=nil, message=nil, inputinfo=nil, metadata=nil, mediaprocessresultset=nil, aicontentreviewresultset=nil, aianalysisresultset=nil, airecognitionresultset=nil, aiqualitycontroltaskresult=nil, smartsubtitlestaskresult=nil)
|
27513
|
+
def initialize(taskid=nil, status=nil, errcode=nil, message=nil, inputinfo=nil, metadata=nil, mediaprocessresultset=nil, aicontentreviewresultset=nil, aianalysisresultset=nil, airecognitionresultset=nil, aiqualitycontroltaskresult=nil, smartsubtitlestaskresult=nil, smarterasetaskresult=nil)
|
26688
27514
|
@TaskId = taskid
|
26689
27515
|
@Status = status
|
26690
27516
|
@ErrCode = errcode
|
@@ -26697,6 +27523,7 @@ module TencentCloud
|
|
26697
27523
|
@AiRecognitionResultSet = airecognitionresultset
|
26698
27524
|
@AiQualityControlTaskResult = aiqualitycontroltaskresult
|
26699
27525
|
@SmartSubtitlesTaskResult = smartsubtitlestaskresult
|
27526
|
+
@SmartEraseTaskResult = smarterasetaskresult
|
26700
27527
|
end
|
26701
27528
|
|
26702
27529
|
def deserialize(params)
|
@@ -26756,6 +27583,10 @@ module TencentCloud
|
|
26756
27583
|
@SmartSubtitlesTaskResult << smartsubtitlesresult_tmp
|
26757
27584
|
end
|
26758
27585
|
end
|
27586
|
+
unless params['SmartEraseTaskResult'].nil?
|
27587
|
+
@SmartEraseTaskResult = SmartEraseTaskResult.new
|
27588
|
+
@SmartEraseTaskResult.deserialize(params['SmartEraseTaskResult'])
|
27589
|
+
end
|
26759
27590
|
end
|
26760
27591
|
end
|
26761
27592
|
|