tencentcloud-sdk-mps 3.0.1094 → 3.0.1106

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 426d9c75959dfaa1a8280c3955c5c0f049e8c5f4
4
- data.tar.gz: 679a22fa7f8baf817bdc9ec7367ad61838361d00
3
+ metadata.gz: 0b417c8d6c0c87c2ffae85a4327882275ada0bf9
4
+ data.tar.gz: c1c69556c7141ce0f92a8a43c4804b6dc468f46d
5
5
  SHA512:
6
- metadata.gz: 8e6506819d5d87c85635f4f05e59d27eec7eb394d13dd7ec7c420a53b3635e8bc761d79bc4e3d7db636ea9a6d9403d250f20e09a03eefa8aca7ba143d21d12aa
7
- data.tar.gz: 90e631a4d4cfe7b353207b4f751212e908767a984047eab932bbd2ed09fc680830be4f4886489440db4dae048516fa3c10a5e52617373f0f614e37a8f34ab3ae
6
+ metadata.gz: 445c42a467256fc82541cd42947538e3d035b5021a3a1666f80ddc4cfc74012caae8c1647c7d195f0eb0a8ee680775b7757586301525eb5b5d631d7a6a9728c1
7
+ data.tar.gz: 5ba83223baecbd991e95b23d2d875537be90cfc11dba0e9a2e4dbe6c6ecb8f09a60f3f83e7e25e1ded2077041d28a76584ef09b68b8ba0d3fb1b6c0f3d06475d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1106
@@ -318,6 +318,33 @@ module TencentCloud
318
318
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
319
319
  end
320
320
 
321
+ # 发起视频评测任务,功能包括:
322
+
323
+ # 1. 对一个原视频和多个转码后的视频进行评分。
324
+ # 2. 计算不同转码方式的 BD-Rate。
325
+
326
+ # @param request: Request instance for CreateMediaEvaluation.
327
+ # @type request: :class:`Tencentcloud::mps::V20190612::CreateMediaEvaluationRequest`
328
+ # @rtype: :class:`Tencentcloud::mps::V20190612::CreateMediaEvaluationResponse`
329
+ def CreateMediaEvaluation(request)
330
+ body = send_request('CreateMediaEvaluation', request.serialize)
331
+ response = JSON.parse(body)
332
+ if response['Response'].key?('Error') == false
333
+ model = CreateMediaEvaluationResponse.new
334
+ model.deserialize(response['Response'])
335
+ model
336
+ else
337
+ code = response['Response']['Error']['Code']
338
+ message = response['Response']['Error']['Message']
339
+ reqid = response['Response']['RequestId']
340
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
341
+ end
342
+ rescue TencentCloud::Common::TencentCloudSDKException => e
343
+ raise e
344
+ rescue StandardError => e
345
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
346
+ end
347
+
321
348
  # 该接口用于创建素材样本,用于通过五官定位等技术,进行内容识别、内容不适宜等视频处理。
322
349
 
323
350
  # @param request: Request instance for CreatePersonSample.
@@ -206,11 +206,8 @@ module TencentCloud
206
206
  # <li>action-SmartSubtitles:智能字幕</li>
207
207
 
208
208
 
209
-
210
- # 注意:此字段可能返回 null,表示取不到有效值。
211
209
  # @type ActivityType: String
212
210
  # @param ReardriveIndex: 后驱节点索引数组
213
- # 注意:此字段可能返回 null,表示取不到有效值。
214
211
  # @type ReardriveIndex: Array
215
212
  # @param ActivityPara: 原子任务参数
216
213
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -525,17 +522,18 @@ module TencentCloud
525
522
  # 注意:此字段可能返回 null,表示取不到有效值。
526
523
  # @type AddOnSubtitles: Array
527
524
  # @param DrmInfo: Drm信息。
528
- # 注意:此字段可能返回 null,表示取不到有效值。
529
525
  # @type DrmInfo: :class:`Tencentcloud::Mps.v20190612.models.DrmInfo`
530
526
  # @param DefinitionType: 自适应转码模板类型:
531
527
  # Common:音视频类型
532
528
  # PureAudio:纯音频类型
533
- # 注意:此字段可能返回 null,表示取不到有效值。
534
529
  # @type DefinitionType: String
530
+ # @param SubtitleTemplate: 字幕参数
531
+ # 注意:此字段可能返回 null,表示取不到有效值。
532
+ # @type SubtitleTemplate: :class:`Tencentcloud::Mps.v20190612.models.SubtitleTemplate`
535
533
 
536
- attr_accessor :Definition, :WatermarkSet, :OutputStorage, :OutputObjectPath, :SubStreamObjectName, :SegmentObjectName, :AddOnSubtitles, :DrmInfo, :DefinitionType
534
+ attr_accessor :Definition, :WatermarkSet, :OutputStorage, :OutputObjectPath, :SubStreamObjectName, :SegmentObjectName, :AddOnSubtitles, :DrmInfo, :DefinitionType, :SubtitleTemplate
537
535
 
538
- def initialize(definition=nil, watermarkset=nil, outputstorage=nil, outputobjectpath=nil, substreamobjectname=nil, segmentobjectname=nil, addonsubtitles=nil, drminfo=nil, definitiontype=nil)
536
+ def initialize(definition=nil, watermarkset=nil, outputstorage=nil, outputobjectpath=nil, substreamobjectname=nil, segmentobjectname=nil, addonsubtitles=nil, drminfo=nil, definitiontype=nil, subtitletemplate=nil)
539
537
  @Definition = definition
540
538
  @WatermarkSet = watermarkset
541
539
  @OutputStorage = outputstorage
@@ -545,6 +543,7 @@ module TencentCloud
545
543
  @AddOnSubtitles = addonsubtitles
546
544
  @DrmInfo = drminfo
547
545
  @DefinitionType = definitiontype
546
+ @SubtitleTemplate = subtitletemplate
548
547
  end
549
548
 
550
549
  def deserialize(params)
@@ -577,6 +576,10 @@ module TencentCloud
577
576
  @DrmInfo.deserialize(params['DrmInfo'])
578
577
  end
579
578
  @DefinitionType = params['DefinitionType']
579
+ unless params['SubtitleTemplate'].nil?
580
+ @SubtitleTemplate = SubtitleTemplate.new
581
+ @SubtitleTemplate.deserialize(params['SubtitleTemplate'])
582
+ end
580
583
  end
581
584
  end
582
585
 
@@ -1076,10 +1079,8 @@ module TencentCloud
1076
1079
  # @param OutputStorage: 擦除后文件的存储位置。
1077
1080
  # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
1078
1081
  # @param OriginSubtitlePath: 基于画面提取的字幕文件路径。
1079
- # 注意:此字段可能返回 null,表示取不到有效值。
1080
1082
  # @type OriginSubtitlePath: String
1081
1083
  # @param TranslateSubtitlePath: 基于画面提取的字幕翻译文件路径。
1082
- # 注意:此字段可能返回 null,表示取不到有效值。
1083
1084
  # @type TranslateSubtitlePath: String
1084
1085
 
1085
1086
  attr_accessor :Path, :OutputStorage, :OriginSubtitlePath, :TranslateSubtitlePath
@@ -2371,35 +2372,26 @@ module TencentCloud
2371
2372
  # @param Gender: 人物性别:
2372
2373
  # <li>Male:男性;</li>
2373
2374
  # <li>Female:女性。</li>
2374
- # 注意:此字段可能返回 null,表示取不到有效值。
2375
2375
  # @type Gender: String
2376
2376
  # @param Birthday: 人物出生日期。
2377
- # 注意:此字段可能返回 null,表示取不到有效值。
2378
2377
  # @type Birthday: String
2379
2378
  # @param Profession: 人物职业或者职务。
2380
- # 注意:此字段可能返回 null,表示取不到有效值。
2381
2379
  # @type Profession: String
2382
2380
  # @param SchoolOfGraduation: 人物毕业院校。
2383
- # 注意:此字段可能返回 null,表示取不到有效值。
2384
2381
  # @type SchoolOfGraduation: String
2385
2382
  # @param Abstract: 人物简介。
2386
- # 注意:此字段可能返回 null,表示取不到有效值。
2387
2383
  # @type Abstract: String
2388
2384
  # @param PlaceOfBirth: 人物出生地或者籍贯。
2389
- # 注意:此字段可能返回 null,表示取不到有效值。
2390
2385
  # @type PlaceOfBirth: String
2391
2386
  # @param PersonType: 人物类型:
2392
2387
  # <li>Politician:官员;</li>
2393
2388
  # <li>Artist:艺人。</li>
2394
- # 注意:此字段可能返回 null,表示取不到有效值。
2395
2389
  # @type PersonType: String
2396
2390
  # @param Remark: 敏感度标注:
2397
2391
  # <li>Normal:正常;</li>
2398
2392
  # <li>Sensitive:敏感。</li>
2399
- # 注意:此字段可能返回 null,表示取不到有效值。
2400
2393
  # @type Remark: String
2401
2394
  # @param Url: 截图链接
2402
- # 注意:此字段可能返回 null,表示取不到有效值。
2403
2395
  # @type Url: String
2404
2396
 
2405
2397
  attr_accessor :Id, :Type, :Name, :SegmentSet, :Gender, :Birthday, :Profession, :SchoolOfGraduation, :Abstract, :PlaceOfBirth, :PersonType, :Remark, :Url
@@ -5778,7 +5770,7 @@ module TencentCloud
5778
5770
  class ComposeSubtitleItem < TencentCloud::Common::AbstractModel
5779
5771
  # @param StyleId: 字幕样式,Styles 列表中对应的 Subtitle样式的 ID。
5780
5772
  # @type StyleId: String
5781
- # @param Text: 字幕文本。
5773
+ # @param Text: 字幕文本。<br/>注:长文本可能超出画面范围,建议使用 \n 进行换行。
5782
5774
  # @type Text: String
5783
5775
  # @param TrackTime: 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。
5784
5776
  # @type TrackTime: :class:`Tencentcloud::Mps.v20190612.models.ComposeTrackTime`
@@ -7310,6 +7302,82 @@ module TencentCloud
7310
7302
  end
7311
7303
  end
7312
7304
 
7305
+ # CreateMediaEvaluation请求参数结构体
7306
+ class CreateMediaEvaluationRequest < TencentCloud::Common::AbstractModel
7307
+ # @param InputInfo: 评测的原文件输入信息。目前输入对象的类型有 COS 和 URL。
7308
+ # @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
7309
+ # @param EvaluationTask: 评测任务参数。
7310
+ # @type EvaluationTask: :class:`Tencentcloud::Mps.v20190612.models.EvaluationTaskInput`
7311
+ # @param OutputStorage: 评测的输出文件的目标存储。不填则继承 InputInfo 中的存储位置。目前输出对象存储位置的类型有COS。
7312
+ # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
7313
+ # @param OutputDir: 评测生成文件的输出目录,必选以 / 开头和结尾,如/movie/201907/。 如果不填,表示与 InputInfo 中文件所在的目录一致。
7314
+ # @type OutputDir: String
7315
+ # @param TaskNotifyConfig: 任务的事件通知信息,不填代表不获取事件通知。
7316
+ # @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
7317
+ # @param TasksPriority: 任务优先级,数值越大优先级越高,取值范围是-10到 10,不填代表0。
7318
+ # @type TasksPriority: Integer
7319
+ # @param SessionId: 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
7320
+ # @type SessionId: String
7321
+ # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
7322
+ # @type SessionContext: String
7323
+
7324
+ attr_accessor :InputInfo, :EvaluationTask, :OutputStorage, :OutputDir, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext
7325
+
7326
+ def initialize(inputinfo=nil, evaluationtask=nil, outputstorage=nil, outputdir=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil)
7327
+ @InputInfo = inputinfo
7328
+ @EvaluationTask = evaluationtask
7329
+ @OutputStorage = outputstorage
7330
+ @OutputDir = outputdir
7331
+ @TaskNotifyConfig = tasknotifyconfig
7332
+ @TasksPriority = taskspriority
7333
+ @SessionId = sessionid
7334
+ @SessionContext = sessioncontext
7335
+ end
7336
+
7337
+ def deserialize(params)
7338
+ unless params['InputInfo'].nil?
7339
+ @InputInfo = MediaInputInfo.new
7340
+ @InputInfo.deserialize(params['InputInfo'])
7341
+ end
7342
+ unless params['EvaluationTask'].nil?
7343
+ @EvaluationTask = EvaluationTaskInput.new
7344
+ @EvaluationTask.deserialize(params['EvaluationTask'])
7345
+ end
7346
+ unless params['OutputStorage'].nil?
7347
+ @OutputStorage = TaskOutputStorage.new
7348
+ @OutputStorage.deserialize(params['OutputStorage'])
7349
+ end
7350
+ @OutputDir = params['OutputDir']
7351
+ unless params['TaskNotifyConfig'].nil?
7352
+ @TaskNotifyConfig = TaskNotifyConfig.new
7353
+ @TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
7354
+ end
7355
+ @TasksPriority = params['TasksPriority']
7356
+ @SessionId = params['SessionId']
7357
+ @SessionContext = params['SessionContext']
7358
+ end
7359
+ end
7360
+
7361
+ # CreateMediaEvaluation返回参数结构体
7362
+ class CreateMediaEvaluationResponse < TencentCloud::Common::AbstractModel
7363
+ # @param TaskId: 任务 ID。
7364
+ # @type TaskId: String
7365
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7366
+ # @type RequestId: String
7367
+
7368
+ attr_accessor :TaskId, :RequestId
7369
+
7370
+ def initialize(taskid=nil, requestid=nil)
7371
+ @TaskId = taskid
7372
+ @RequestId = requestid
7373
+ end
7374
+
7375
+ def deserialize(params)
7376
+ @TaskId = params['TaskId']
7377
+ @RequestId = params['RequestId']
7378
+ end
7379
+ end
7380
+
7313
7381
  # 创建输出的配置信息。
7314
7382
  class CreateOutputInfo < TencentCloud::Common::AbstractModel
7315
7383
  # @param OutputName: 输出的名称。
@@ -9866,41 +9934,30 @@ module TencentCloud
9866
9934
  # @param HotwordsId: 需要查询的热词库 id
9867
9935
  # @type HotwordsId: String
9868
9936
  # @param Status: 当前热词库 id 状态,为 0 表示查询的时刻,没有模板绑定这个热词库,可以删除
9869
- # 注意:此字段可能返回 null,表示取不到有效值。
9870
9937
  # @type Status: Integer
9871
9938
  # @param Name: 热词库的名称
9872
- # 注意:此字段可能返回 null,表示取不到有效值。
9873
9939
  # @type Name: String
9874
9940
  # @param Type: 临时热词库为 0,返回创建时候的字符串
9875
9941
  # 文件热词库为 1,返回创建是上传的文件内容
9876
9942
 
9877
-
9878
- # 注意:此字段可能返回 null,表示取不到有效值。
9879
9943
  # @type Type: Integer
9880
9944
  # @param FileName: 热词文件上传时的文件名
9881
- # 注意:此字段可能返回 null,表示取不到有效值。
9882
9945
  # @type FileName: String
9883
9946
  # @param HotWords: 查询返回的热词库列表
9884
9947
  # @type HotWords: Array
9885
9948
  # @param Content: 热词库文本,根据 Type 区分
9886
9949
  # 如果 Type 为 0,是热词库字符串
9887
9950
  # 如果 Type 是 1,是热词库文本文件的文件内容 base64 编码
9888
- # 注意:此字段可能返回 null,表示取不到有效值。
9889
9951
  # @type Content: String
9890
9952
  # @param WordCount: 当前热词库包含的词语数量
9891
- # 注意:此字段可能返回 null,表示取不到有效值。
9892
9953
  # @type WordCount: Integer
9893
9954
  # @param Offset: 分页偏移量,默认值:0。
9894
- # 注意:此字段可能返回 null,表示取不到有效值。
9895
9955
  # @type Offset: Integer
9896
9956
  # @param Limit: 返回记录条数,默认值:10,最大值:100。
9897
- # 注意:此字段可能返回 null,表示取不到有效值。
9898
9957
  # @type Limit: Integer
9899
9958
  # @param CreateTime: 热词库创建时间 ISOUTC 格式 "2006-01-02T15:04:05Z"
9900
- # 注意:此字段可能返回 null,表示取不到有效值。
9901
9959
  # @type CreateTime: String
9902
9960
  # @param UpdateTime: 热词库修改时间 ISOUTC 格式 "2006-01-02T15:04:05Z"
9903
- # 注意:此字段可能返回 null,表示取不到有效值。
9904
9961
  # @type UpdateTime: String
9905
9962
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9906
9963
  # @type RequestId: String
@@ -9982,7 +10039,6 @@ module TencentCloud
9982
10039
  # @param TaskId: 媒体处理任务 ID。
9983
10040
  # @type TaskId: String
9984
10041
  # @param BatchTaskResult: 视频处理任务信息,仅当 TaskType 为 BatchTask,该字段有值。
9985
- # 注意:此字段可能返回 null,表示取不到有效值。
9986
10042
  # @type BatchTaskResult: :class:`Tencentcloud::Mps.v20190612.models.BatchSubTaskResult`
9987
10043
  # @param TaskNotifyConfig: 任务的事件通知信息。
9988
10044
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -12999,7 +13055,6 @@ module TencentCloud
12999
13055
  # DescribeWordSamples返回参数结构体
13000
13056
  class DescribeWordSamplesResponse < TencentCloud::Common::AbstractModel
13001
13057
  # @param TotalCount: 符合条件的记录总数。
13002
- # 注意:此字段可能返回 null,表示取不到有效值。
13003
13058
  # @type TotalCount: Integer
13004
13059
  # @param WordSet: 关键词信息。
13005
13060
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -13303,16 +13358,29 @@ module TencentCloud
13303
13358
  # Drm 加密信息。
13304
13359
  class DrmInfo < TencentCloud::Common::AbstractModel
13305
13360
  # @param Type: 加密类型:
13306
- # <li> simpleaes: aes-128 加密</li>
13307
- # <li> widevine</li>
13308
- # <li> fairplay:Dash不支持fairplay加密</li>
13309
- # <li> playready</li>
13310
- # 注意:此字段可能返回 null,表示取不到有效值。
13361
+
13362
+ # - simpleaes
13363
+ # 只能用于HLS,切片格式支持ts和mp4
13364
+ # 只能使用切片模式,不能使用singlefile模式
13365
+
13366
+ # - fairplay:
13367
+ # 只能用于HLS,切片格式只能是mp4
13368
+ # 可以使用切片模式或singlefile模式
13369
+
13370
+ # - widevine:
13371
+ # 可以用于HLS和DASH,切片格式只能是mp4
13372
+ # 输出HLS:可以使用切片模式或singlefile模式
13373
+ # 输出DASH:只能singlefile模式
13374
+
13375
+ # - playready:
13376
+ # 可以用于HLS和DASH,切片格式只能是mp4
13377
+ # 输出HLS:可以使用切片模式或singlefile模式
13378
+ # 输出DASH:只能singlefile模式
13311
13379
  # @type Type: String
13312
13380
  # @param SimpleAesDrm: SimpleAes 加密信息。
13313
13381
  # 注意:此字段可能返回 null,表示取不到有效值。
13314
13382
  # @type SimpleAesDrm: :class:`Tencentcloud::Mps.v20190612.models.SimpleAesDrm`
13315
- # @param SpekeDrm: FairPlay, WideVine, PlayReady 加密信息。
13383
+ # @param SpekeDrm: FairPlayWideVine,PlayReady 加密信息。
13316
13384
  # @type SpekeDrm: :class:`Tencentcloud::Mps.v20190612.models.SpekeDrm`
13317
13385
 
13318
13386
  attr_accessor :Type, :SimpleAesDrm, :SpekeDrm
@@ -13679,6 +13747,137 @@ module TencentCloud
13679
13747
  end
13680
13748
  end
13681
13749
 
13750
+ # 视频评测任务的视频来源信息
13751
+ class EvaluationMediaInputInfo < TencentCloud::Common::AbstractModel
13752
+ # @param SourceId: 对比视频的来源 ID,当评测任务的类型为 BD_RATE 且对比视频来自用户输入时有效;当对比视频来自转码模版时为空
13753
+ # 注意:此字段可能返回 null,表示取不到有效值。
13754
+ # @type SourceId: String
13755
+ # @param InputInfo: 对比视频的输入信息
13756
+ # 注意:此字段可能返回 null,表示取不到有效值。
13757
+ # @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
13758
+
13759
+ attr_accessor :SourceId, :InputInfo
13760
+
13761
+ def initialize(sourceid=nil, inputinfo=nil)
13762
+ @SourceId = sourceid
13763
+ @InputInfo = inputinfo
13764
+ end
13765
+
13766
+ def deserialize(params)
13767
+ @SourceId = params['SourceId']
13768
+ unless params['InputInfo'].nil?
13769
+ @InputInfo = MediaInputInfo.new
13770
+ @InputInfo.deserialize(params['InputInfo'])
13771
+ end
13772
+ end
13773
+ end
13774
+
13775
+ # 评测任务输入参数类型
13776
+ class EvaluationTaskInput < TencentCloud::Common::AbstractModel
13777
+ # @param TaskType: 评测任务类型,可选 NORMAL、BD_RATE
13778
+ # @type TaskType: String
13779
+ # @param EvaluationTypeSet: 评测类型,可选 PSNR、SSIM、VMAF、VMAF_NEG
13780
+ # @type EvaluationTypeSet: Array
13781
+ # @param EvaluationRangeType: 评测范围类型,可选 ALL(全部时长)、TIME(指定时长范围)、FRAME(指定帧数范围)
13782
+ # @type EvaluationRangeType: String
13783
+ # @param ContrastInfoSet: 对比视频信息。
13784
+ # 注意:此字段可能返回 null,表示取不到有效值。
13785
+ # @type ContrastInfoSet: Array
13786
+ # @param ContrastMediaSet: 对比视频信息。
13787
+ # @type ContrastMediaSet: Array
13788
+ # @param ContrastTemplateSet: 对比转码模板信息。
13789
+ # @type ContrastTemplateSet: Array
13790
+ # @param StartTime: 开始评测时间,单位秒,当 EvaluationRangeType 为 TIME 时有效。
13791
+ # @type StartTime: Integer
13792
+ # @param EndTime: 结束评测时间,单位秒,当 EvaluationRangeType 为 TIME 时有效。
13793
+ # @type EndTime: Integer
13794
+ # @param StartFrameIndex: 评测开始帧,默认从0开始,当 EvaluationRangeType 为FRAME 时有效。
13795
+ # @type StartFrameIndex: Integer
13796
+ # @param EndFrameIndex: 评测结束帧,默认为视频中可以参与评测的最后一帧,当 EvaluationRangeType 为 FRAME 时有效。
13797
+ # @type EndFrameIndex: Integer
13798
+ # @param ResolutionAlignmentMode: 分辨率对齐模式,默认对齐到低分辨率的视频,可选 ALIGN_HIGH_RESOLUTION、ALIGN_LOW_RESOLUTION
13799
+ # @type ResolutionAlignmentMode: String
13800
+ # @param BitrateSet: 指定码率评测,当评测任务类型为 BD_RATE 有效。
13801
+ # @type BitrateSet: Array
13802
+ # @param VCRFSet: 指定 vcrf 评测,当评测任务类型为 BD_RATE 有效。
13803
+ # @type VCRFSet: Array
13804
+
13805
+ attr_accessor :TaskType, :EvaluationTypeSet, :EvaluationRangeType, :ContrastInfoSet, :ContrastMediaSet, :ContrastTemplateSet, :StartTime, :EndTime, :StartFrameIndex, :EndFrameIndex, :ResolutionAlignmentMode, :BitrateSet, :VCRFSet
13806
+ extend Gem::Deprecate
13807
+ deprecate :ContrastInfoSet, :none, 2025, 7
13808
+ deprecate :ContrastInfoSet=, :none, 2025, 7
13809
+
13810
+ 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)
13811
+ @TaskType = tasktype
13812
+ @EvaluationTypeSet = evaluationtypeset
13813
+ @EvaluationRangeType = evaluationrangetype
13814
+ @ContrastInfoSet = contrastinfoset
13815
+ @ContrastMediaSet = contrastmediaset
13816
+ @ContrastTemplateSet = contrasttemplateset
13817
+ @StartTime = starttime
13818
+ @EndTime = endtime
13819
+ @StartFrameIndex = startframeindex
13820
+ @EndFrameIndex = endframeindex
13821
+ @ResolutionAlignmentMode = resolutionalignmentmode
13822
+ @BitrateSet = bitrateset
13823
+ @VCRFSet = vcrfset
13824
+ end
13825
+
13826
+ def deserialize(params)
13827
+ @TaskType = params['TaskType']
13828
+ @EvaluationTypeSet = params['EvaluationTypeSet']
13829
+ @EvaluationRangeType = params['EvaluationRangeType']
13830
+ unless params['ContrastInfoSet'].nil?
13831
+ @ContrastInfoSet = []
13832
+ params['ContrastInfoSet'].each do |i|
13833
+ mediainputinfo_tmp = MediaInputInfo.new
13834
+ mediainputinfo_tmp.deserialize(i)
13835
+ @ContrastInfoSet << mediainputinfo_tmp
13836
+ end
13837
+ end
13838
+ unless params['ContrastMediaSet'].nil?
13839
+ @ContrastMediaSet = []
13840
+ params['ContrastMediaSet'].each do |i|
13841
+ evaluationmediainputinfo_tmp = EvaluationMediaInputInfo.new
13842
+ evaluationmediainputinfo_tmp.deserialize(i)
13843
+ @ContrastMediaSet << evaluationmediainputinfo_tmp
13844
+ end
13845
+ end
13846
+ unless params['ContrastTemplateSet'].nil?
13847
+ @ContrastTemplateSet = []
13848
+ params['ContrastTemplateSet'].each do |i|
13849
+ evaluationtemplateinputinfo_tmp = EvaluationTemplateInputInfo.new
13850
+ evaluationtemplateinputinfo_tmp.deserialize(i)
13851
+ @ContrastTemplateSet << evaluationtemplateinputinfo_tmp
13852
+ end
13853
+ end
13854
+ @StartTime = params['StartTime']
13855
+ @EndTime = params['EndTime']
13856
+ @StartFrameIndex = params['StartFrameIndex']
13857
+ @EndFrameIndex = params['EndFrameIndex']
13858
+ @ResolutionAlignmentMode = params['ResolutionAlignmentMode']
13859
+ @BitrateSet = params['BitrateSet']
13860
+ @VCRFSet = params['VCRFSet']
13861
+ end
13862
+ end
13863
+
13864
+ # 在评测中使用的转码模版的信息
13865
+ class EvaluationTemplateInputInfo < TencentCloud::Common::AbstractModel
13866
+ # @param Definition: 转码模版的 ID。
13867
+ # 注意:此字段可能返回 null,表示取不到有效值。
13868
+ # @type Definition: Integer
13869
+
13870
+ attr_accessor :Definition
13871
+
13872
+ def initialize(definition=nil)
13873
+ @Definition = definition
13874
+ end
13875
+
13876
+ def deserialize(params)
13877
+ @Definition = params['Definition']
13878
+ end
13879
+ end
13880
+
13682
13881
  # ExecuteFunction请求参数结构体
13683
13882
  class ExecuteFunctionRequest < TencentCloud::Common::AbstractModel
13684
13883
  # @param FunctionName: 调用后端接口名称。
@@ -17379,13 +17578,10 @@ module TencentCloud
17379
17578
  # @param Input: 对视频截雪碧图任务的输入。
17380
17579
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.ImageSpriteTaskInput`
17381
17580
  # @param Output: 对视频截雪碧图任务的输出。
17382
- # 注意:此字段可能返回 null,表示取不到有效值。
17383
17581
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaImageSpriteItem`
17384
17582
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17385
- # 注意:此字段可能返回 null,表示取不到有效值。
17386
17583
  # @type BeginProcessTime: String
17387
17584
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17388
- # 注意:此字段可能返回 null,表示取不到有效值。
17389
17585
  # @type FinishTime: String
17390
17586
 
17391
17587
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -17581,13 +17777,10 @@ module TencentCloud
17581
17777
  # @param Input: 对视频做采样截图任务输入。
17582
17778
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SampleSnapshotTaskInput`
17583
17779
  # @param Output: 对视频做采样截图任务输出。
17584
- # 注意:此字段可能返回 null,表示取不到有效值。
17585
17780
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaSampleSnapshotItem`
17586
17781
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17587
- # 注意:此字段可能返回 null,表示取不到有效值。
17588
17782
  # @type BeginProcessTime: String
17589
17783
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17590
- # 注意:此字段可能返回 null,表示取不到有效值。
17591
17784
  # @type FinishTime: String
17592
17785
 
17593
17786
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -17634,13 +17827,10 @@ module TencentCloud
17634
17827
  # @param Input: 对视频按指定时间点截图任务输入。
17635
17828
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SnapshotByTimeOffsetTaskInput`
17636
17829
  # @param Output: 对视频按指定时间点截图任务输出。
17637
- # 注意:此字段可能返回 null,表示取不到有效值。
17638
17830
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaSnapshotByTimeOffsetItem`
17639
17831
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17640
- # 注意:此字段可能返回 null,表示取不到有效值。
17641
17832
  # @type BeginProcessTime: String
17642
17833
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17643
- # 注意:此字段可能返回 null,表示取不到有效值。
17644
17834
  # @type FinishTime: String
17645
17835
 
17646
17836
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -17690,7 +17880,6 @@ module TencentCloud
17690
17880
  # 注意:此字段可能返回 null,表示取不到有效值。
17691
17881
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaTranscodeItem`
17692
17882
  # @param Progress: 转码进度,取值范围 [0-100]
17693
- # 注意:此字段可能返回 null,表示取不到有效值。
17694
17883
  # @type Progress: Integer
17695
17884
 
17696
17885
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :Progress
@@ -18815,7 +19004,6 @@ module TencentCloud
18815
19004
  # @param Person: 素材信息。
18816
19005
  # @type Person: :class:`Tencentcloud::Mps.v20190612.models.AiSamplePerson`
18817
19006
  # @param FailFaceInfoSet: 处理失败的五官信息。
18818
- # 注意:此字段可能返回 null,表示取不到有效值。
18819
19007
  # @type FailFaceInfoSet: Array
18820
19008
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18821
19009
  # @type RequestId: String
@@ -19943,16 +20131,12 @@ module TencentCloud
19943
20131
  # 注意:此字段可能返回 null,表示取不到有效值。
19944
20132
  # @type TEHDConfig: :class:`Tencentcloud::Mps.v20190612.models.TEHDConfigForUpdate`
19945
20133
  # @param SubtitleTemplate: 字幕流配置参数。
19946
- # 注意:此字段可能返回 null,表示取不到有效值。
19947
20134
  # @type SubtitleTemplate: :class:`Tencentcloud::Mps.v20190612.models.SubtitleTemplate`
19948
20135
  # @param AddonAudioStream: 外挂音轨参数。
19949
- # 注意:此字段可能返回 null,表示取不到有效值。
19950
20136
  # @type AddonAudioStream: Array
19951
20137
  # @param StdExtInfo: 转码扩展字段。
19952
- # 注意:此字段可能返回 null,表示取不到有效值。
19953
20138
  # @type StdExtInfo: String
19954
20139
  # @param AddOnSubtitles: 要插入的字幕文件。
19955
- # 注意:此字段可能返回 null,表示取不到有效值。
19956
20140
  # @type AddOnSubtitles: Array
19957
20141
 
19958
20142
  attr_accessor :Container, :RemoveVideo, :RemoveAudio, :VideoTemplate, :AudioTemplate, :TEHDConfig, :SubtitleTemplate, :AddonAudioStream, :StdExtInfo, :AddOnSubtitles
@@ -20060,10 +20244,8 @@ module TencentCloud
20060
20244
  # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长1000个字符。
20061
20245
  # @type SessionContext: String
20062
20246
  # @param Timestamp: - 过期时间,事件通知签名过期 UNIX 时间戳。 - 来自媒体处理的消息通知默认过期时间是10分钟,如果一条消息通知中的 Timestamp 值所指定的时间已经过期,则可以判定这条通知无效,进而可以防止网络重放攻击。 - Timestamp 的格式为十进制 UNIX 时间戳,即从1970年01月01日(UTC/GMT 的午夜)开始所经过的秒数。
20063
- # 注意:此字段可能返回 null,表示取不到有效值。
20064
20247
  # @type Timestamp: Integer
20065
20248
  # @param Sign: 事件通知安全签名 Sign = MD5(Timestamp + NotifyKey)。说明:媒体处理把Timestamp 和 TaskNotifyConfig 里面的NotifyKey 进行字符串拼接后通过 MD5 计算得出 Sign 值,并将其放在通知消息里,您的后台服务器在收到通知消息后可以根据同样的算法确认 Sign 是否正确,进而确认消息是否确实来自媒体处理后台。
20066
- # 注意:此字段可能返回 null,表示取不到有效值。
20067
20249
  # @type Sign: String
20068
20250
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20069
20251
  # @type RequestId: String
@@ -21692,7 +21874,6 @@ module TencentCloud
21692
21874
  # @param TEHDConfig: 极速高清转码参数。
21693
21875
  # @type TEHDConfig: :class:`Tencentcloud::Mps.v20190612.models.TEHDConfig`
21694
21876
  # @param StdExtInfo: 扩展参数,序列化的 json 字符串。
21695
- # 注意:此字段可能返回 null,表示取不到有效值。
21696
21877
  # @type StdExtInfo: String
21697
21878
  # @param EnhanceConfig: 音视频增强配置
21698
21879
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -22420,13 +22601,10 @@ module TencentCloud
22420
22601
  # @param Input: 识别任务的输入。
22421
22602
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiRecognitionTaskInput`
22422
22603
  # @param Output: 识别任务的输出。
22423
- # 注意:此字段可能返回 null,表示取不到有效值。
22424
22604
  # @type Output: Array
22425
22605
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22426
- # 注意:此字段可能返回 null,表示取不到有效值。
22427
22606
  # @type BeginProcessTime: String
22428
22607
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22429
- # 注意:此字段可能返回 null,表示取不到有效值。
22430
22608
  # @type FinishTime: String
22431
22609
 
22432
22610
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -22532,16 +22710,12 @@ module TencentCloud
22532
22710
  # @param Message: 错误信息。
22533
22711
  # @type Message: String
22534
22712
  # @param Input: 识别任务的输入。
22535
- # 注意:此字段可能返回 null,表示取不到有效值。
22536
22713
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitlesTaskInput`
22537
22714
  # @param Output: 识别任务的输出。
22538
- # 注意:此字段可能返回 null,表示取不到有效值。
22539
22715
  # @type Output: Array
22540
22716
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22541
- # 注意:此字段可能返回 null,表示取不到有效值。
22542
22717
  # @type BeginProcessTime: String
22543
22718
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22544
- # 注意:此字段可能返回 null,表示取不到有效值。
22545
22719
  # @type FinishTime: String
22546
22720
 
22547
22721
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -22844,24 +23018,18 @@ module TencentCloud
22844
23018
  # @param EndTimeOffset: 片段结束时间偏移。
22845
23019
  # @type EndTimeOffset: Float
22846
23020
  # @param SegmentUrl: 拆条片段URL。
22847
- # 注意:此字段可能返回 null,表示取不到有效值。
22848
23021
  # @type SegmentUrl: String
22849
23022
  # @param CovImgUrl: 拆条片段封面。
22850
- # 注意:此字段可能返回 null,表示取不到有效值。
22851
23023
  # @type CovImgUrl: String
22852
23024
  # @param Title: 分段标题。
22853
- # 注意:此字段可能返回 null,表示取不到有效值。
22854
23025
  # @type Title: String
22855
23026
  # @param Summary: 分段概要。
22856
- # 注意:此字段可能返回 null,表示取不到有效值。
22857
23027
  # @type Summary: String
22858
23028
  # @param Keywords: 分段关键词。
22859
23029
  # @type Keywords: Array
22860
23030
  # @param BeginTime: 直播切片对应直播起始时间点,采用 ISO 日期格式。
22861
- # 注意:此字段可能返回 null,表示取不到有效值。
22862
23031
  # @type BeginTime: String
22863
23032
  # @param EndTime: 直播切片对应直播结束时间点,采用 ISO 日期格式。
22864
- # 注意:此字段可能返回 null,表示取不到有效值。
22865
23033
  # @type EndTime: String
22866
23034
  # @param AudioUrl: 直播拆条用,音频url。
22867
23035
  # @type AudioUrl: String
@@ -23794,8 +23962,9 @@ module TencentCloud
23794
23962
  # @param Path: 要压制到视频中的字幕文件地址。
23795
23963
  # 注意:此字段可能返回 null,表示取不到有效值。
23796
23964
  # @type Path: String
23797
- # @param StreamIndex: 指定要压制到视频中的字幕轨道,Path 和 StreamIndex 至少指定一个;如果指定了Path,则优先使用Path。
23798
- # Streamindex的取值须与源文件中的字幕轨索引一致。例如,源文件中的字幕轨为stream#0:3,则StreamIndex应为3,否则可能导致任务处理失败。
23965
+ # @param StreamIndex: 指定要压制到视频中的字幕轨道,Streamindex的取值从0开始,0表示使用源视频中的第一条字幕轨。如果指定了Path,则优先使用Path。Path 和 StreamIndex 至少指定一个。
23966
+
23967
+ # - 注意:StreamIndex必须与源文件中的字幕轨索引一致。例如,源文件中的字幕轨为stream#0:3,则StreamIndex应为3,否则可能导致任务处理失败。
23799
23968
 
23800
23969
 
23801
23970
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -23818,7 +23987,7 @@ module TencentCloud
23818
23987
  # <li>korean.ttf:韩语</li>
23819
23988
  # <li>japanese.ttf:日语</li>
23820
23989
  # <li>thai.ttf:泰语</li>
23821
- # 默认:hei.ttf 黑体。
23990
+ # 默认:hei.ttf 黑体。注意:楷体推荐使用kai.ttf
23822
23991
  # 注意:此字段可能返回 null,表示取不到有效值。
23823
23992
  # @type FontType: String
23824
23993
  # @param FontSize: 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。
@@ -24108,7 +24277,7 @@ module TencentCloud
24108
24277
  # <li>URL:指定URL时HTTP回调推送到 NotifyUrl 指定的地址,回调协议http+json,包体内容同解析事件通知接口的输出参数 </li>
24109
24278
  # <li>SCF:不推荐使用,需要在控制台额外配置SCF</li>
24110
24279
  # <li>AWS-SQS:AWS 队列,只适用于 AWS 任务,且要求同区域</li>
24111
- # <font color="red"> 注:不填或为空时默认 CMQ,如需采用其他类型需填写对应类型值。 </font>
24280
+ # <font color="red"> 注:不填或为空时默认 TDMQ-CMQ,如需采用其他类型需填写对应类型值;如果使用TDMQ-CMQ消息队列,任务回包过大可能会写入队列失败 </font>
24112
24281
  # @type NotifyType: String
24113
24282
  # @param NotifyMode: 工作流通知的模式,可取值有 Finish 和 Change,不填代表 Finish。
24114
24283
  # @type NotifyMode: String
@@ -24127,7 +24296,6 @@ module TencentCloud
24127
24296
  # 注意:此字段可能返回 null,表示取不到有效值。
24128
24297
  # @type AwsSQS: :class:`Tencentcloud::Mps.v20190612.models.AwsSQS`
24129
24298
  # @param NotifyKey: 用于生成回调签名的key。
24130
- # 注意:此字段可能返回 null,表示取不到有效值。
24131
24299
  # @type NotifyKey: String
24132
24300
 
24133
24301
  attr_accessor :NotifyType, :NotifyMode, :NotifyUrl, :CmqModel, :CmqRegion, :TopicName, :QueueName, :AwsSQS, :NotifyKey
@@ -24525,7 +24693,6 @@ module TencentCloud
24525
24693
  # @type Definition: Integer
24526
24694
  # @param RawParameter: 视频转码自定义参数,当 Definition 填 0 时有效。
24527
24695
  # 该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
24528
- # 注意:此字段可能返回 null,表示取不到有效值。
24529
24696
  # @type RawParameter: :class:`Tencentcloud::Mps.v20190612.models.RawTranscodeParameter`
24530
24697
  # @param OverrideParameter: 视频转码自定义参数,当 Definition 不填 0 时有效。
24531
24698
  # 当填写了该结构中的部分转码参数时,将使用填写的参数覆盖转码模板中的参数。
@@ -24533,7 +24700,6 @@ module TencentCloud
24533
24700
  # 注意:此字段可能返回 null,表示取不到有效值。
24534
24701
  # @type OverrideParameter: :class:`Tencentcloud::Mps.v20190612.models.OverrideTranscodeParameter`
24535
24702
  # @param WatermarkSet: 水印列表,支持多张图片或文字水印,最大可支持 10 张。
24536
- # 注意:此字段可能返回 null,表示取不到有效值。
24537
24703
  # @type WatermarkSet: Array
24538
24704
  # @param MosaicSet: 马赛克列表,最大可支持 10 张。
24539
24705
  # @type MosaicSet: Array
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1094
4
+ version: 3.0.1106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-05 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common