tencentcloud-sdk-mps 3.0.1094 → 3.0.1102

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: ca22183212cd78d3b9939fc5fa36c8a04557ea4c
4
+ data.tar.gz: 03d191868a6910b382a45853002138d61b6b949f
5
5
  SHA512:
6
- metadata.gz: 8e6506819d5d87c85635f4f05e59d27eec7eb394d13dd7ec7c420a53b3635e8bc761d79bc4e3d7db636ea9a6d9403d250f20e09a03eefa8aca7ba143d21d12aa
7
- data.tar.gz: 90e631a4d4cfe7b353207b4f751212e908767a984047eab932bbd2ed09fc680830be4f4886489440db4dae048516fa3c10a5e52617373f0f614e37a8f34ab3ae
6
+ metadata.gz: 7ab2cc5e3c8a0c40c5d30deed81d30e44763f14d218b259e4d24eeb500bca554b1f8ff0df098862deb0a714845d57ac2554a5137e9f00c6fa066d4874b19dd45
7
+ data.tar.gz: cf0e4cbb28bf683c77f5fa27be8237f4af9e36f25acbc5fc1947dd0ff50bed488a03d0c80729b1bce9213e0caf967e45e8136bf68623a092ce188c9e31a366dd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1102
@@ -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,12 +522,10 @@ 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
535
530
 
536
531
  attr_accessor :Definition, :WatermarkSet, :OutputStorage, :OutputObjectPath, :SubStreamObjectName, :SegmentObjectName, :AddOnSubtitles, :DrmInfo, :DefinitionType
@@ -1076,10 +1071,8 @@ module TencentCloud
1076
1071
  # @param OutputStorage: 擦除后文件的存储位置。
1077
1072
  # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
1078
1073
  # @param OriginSubtitlePath: 基于画面提取的字幕文件路径。
1079
- # 注意:此字段可能返回 null,表示取不到有效值。
1080
1074
  # @type OriginSubtitlePath: String
1081
1075
  # @param TranslateSubtitlePath: 基于画面提取的字幕翻译文件路径。
1082
- # 注意:此字段可能返回 null,表示取不到有效值。
1083
1076
  # @type TranslateSubtitlePath: String
1084
1077
 
1085
1078
  attr_accessor :Path, :OutputStorage, :OriginSubtitlePath, :TranslateSubtitlePath
@@ -2371,35 +2364,26 @@ module TencentCloud
2371
2364
  # @param Gender: 人物性别:
2372
2365
  # <li>Male:男性;</li>
2373
2366
  # <li>Female:女性。</li>
2374
- # 注意:此字段可能返回 null,表示取不到有效值。
2375
2367
  # @type Gender: String
2376
2368
  # @param Birthday: 人物出生日期。
2377
- # 注意:此字段可能返回 null,表示取不到有效值。
2378
2369
  # @type Birthday: String
2379
2370
  # @param Profession: 人物职业或者职务。
2380
- # 注意:此字段可能返回 null,表示取不到有效值。
2381
2371
  # @type Profession: String
2382
2372
  # @param SchoolOfGraduation: 人物毕业院校。
2383
- # 注意:此字段可能返回 null,表示取不到有效值。
2384
2373
  # @type SchoolOfGraduation: String
2385
2374
  # @param Abstract: 人物简介。
2386
- # 注意:此字段可能返回 null,表示取不到有效值。
2387
2375
  # @type Abstract: String
2388
2376
  # @param PlaceOfBirth: 人物出生地或者籍贯。
2389
- # 注意:此字段可能返回 null,表示取不到有效值。
2390
2377
  # @type PlaceOfBirth: String
2391
2378
  # @param PersonType: 人物类型:
2392
2379
  # <li>Politician:官员;</li>
2393
2380
  # <li>Artist:艺人。</li>
2394
- # 注意:此字段可能返回 null,表示取不到有效值。
2395
2381
  # @type PersonType: String
2396
2382
  # @param Remark: 敏感度标注:
2397
2383
  # <li>Normal:正常;</li>
2398
2384
  # <li>Sensitive:敏感。</li>
2399
- # 注意:此字段可能返回 null,表示取不到有效值。
2400
2385
  # @type Remark: String
2401
2386
  # @param Url: 截图链接
2402
- # 注意:此字段可能返回 null,表示取不到有效值。
2403
2387
  # @type Url: String
2404
2388
 
2405
2389
  attr_accessor :Id, :Type, :Name, :SegmentSet, :Gender, :Birthday, :Profession, :SchoolOfGraduation, :Abstract, :PlaceOfBirth, :PersonType, :Remark, :Url
@@ -5778,7 +5762,7 @@ module TencentCloud
5778
5762
  class ComposeSubtitleItem < TencentCloud::Common::AbstractModel
5779
5763
  # @param StyleId: 字幕样式,Styles 列表中对应的 Subtitle样式的 ID。
5780
5764
  # @type StyleId: String
5781
- # @param Text: 字幕文本。
5765
+ # @param Text: 字幕文本。<br/>注:长文本可能超出画面范围,建议使用 \n 进行换行。
5782
5766
  # @type Text: String
5783
5767
  # @param TrackTime: 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。
5784
5768
  # @type TrackTime: :class:`Tencentcloud::Mps.v20190612.models.ComposeTrackTime`
@@ -7310,6 +7294,82 @@ module TencentCloud
7310
7294
  end
7311
7295
  end
7312
7296
 
7297
+ # CreateMediaEvaluation请求参数结构体
7298
+ class CreateMediaEvaluationRequest < TencentCloud::Common::AbstractModel
7299
+ # @param InputInfo: 评测的原文件输入信息。目前输入对象的类型有 COS 和 URL。
7300
+ # @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
7301
+ # @param EvaluationTask: 评测任务参数。
7302
+ # @type EvaluationTask: :class:`Tencentcloud::Mps.v20190612.models.EvaluationTaskInput`
7303
+ # @param OutputStorage: 评测的输出文件的目标存储。不填则继承 InputInfo 中的存储位置。目前输出对象存储位置的类型有COS。
7304
+ # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
7305
+ # @param OutputDir: 评测生成文件的输出目录,必选以 / 开头和结尾,如/movie/201907/。 如果不填,表示与 InputInfo 中文件所在的目录一致。
7306
+ # @type OutputDir: String
7307
+ # @param TaskNotifyConfig: 任务的事件通知信息,不填代表不获取事件通知。
7308
+ # @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
7309
+ # @param TasksPriority: 任务优先级,数值越大优先级越高,取值范围是-10到 10,不填代表0。
7310
+ # @type TasksPriority: Integer
7311
+ # @param SessionId: 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
7312
+ # @type SessionId: String
7313
+ # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
7314
+ # @type SessionContext: String
7315
+
7316
+ attr_accessor :InputInfo, :EvaluationTask, :OutputStorage, :OutputDir, :TaskNotifyConfig, :TasksPriority, :SessionId, :SessionContext
7317
+
7318
+ def initialize(inputinfo=nil, evaluationtask=nil, outputstorage=nil, outputdir=nil, tasknotifyconfig=nil, taskspriority=nil, sessionid=nil, sessioncontext=nil)
7319
+ @InputInfo = inputinfo
7320
+ @EvaluationTask = evaluationtask
7321
+ @OutputStorage = outputstorage
7322
+ @OutputDir = outputdir
7323
+ @TaskNotifyConfig = tasknotifyconfig
7324
+ @TasksPriority = taskspriority
7325
+ @SessionId = sessionid
7326
+ @SessionContext = sessioncontext
7327
+ end
7328
+
7329
+ def deserialize(params)
7330
+ unless params['InputInfo'].nil?
7331
+ @InputInfo = MediaInputInfo.new
7332
+ @InputInfo.deserialize(params['InputInfo'])
7333
+ end
7334
+ unless params['EvaluationTask'].nil?
7335
+ @EvaluationTask = EvaluationTaskInput.new
7336
+ @EvaluationTask.deserialize(params['EvaluationTask'])
7337
+ end
7338
+ unless params['OutputStorage'].nil?
7339
+ @OutputStorage = TaskOutputStorage.new
7340
+ @OutputStorage.deserialize(params['OutputStorage'])
7341
+ end
7342
+ @OutputDir = params['OutputDir']
7343
+ unless params['TaskNotifyConfig'].nil?
7344
+ @TaskNotifyConfig = TaskNotifyConfig.new
7345
+ @TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
7346
+ end
7347
+ @TasksPriority = params['TasksPriority']
7348
+ @SessionId = params['SessionId']
7349
+ @SessionContext = params['SessionContext']
7350
+ end
7351
+ end
7352
+
7353
+ # CreateMediaEvaluation返回参数结构体
7354
+ class CreateMediaEvaluationResponse < TencentCloud::Common::AbstractModel
7355
+ # @param TaskId: 任务 ID。
7356
+ # @type TaskId: String
7357
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7358
+ # @type RequestId: String
7359
+
7360
+ attr_accessor :TaskId, :RequestId
7361
+
7362
+ def initialize(taskid=nil, requestid=nil)
7363
+ @TaskId = taskid
7364
+ @RequestId = requestid
7365
+ end
7366
+
7367
+ def deserialize(params)
7368
+ @TaskId = params['TaskId']
7369
+ @RequestId = params['RequestId']
7370
+ end
7371
+ end
7372
+
7313
7373
  # 创建输出的配置信息。
7314
7374
  class CreateOutputInfo < TencentCloud::Common::AbstractModel
7315
7375
  # @param OutputName: 输出的名称。
@@ -9866,41 +9926,30 @@ module TencentCloud
9866
9926
  # @param HotwordsId: 需要查询的热词库 id
9867
9927
  # @type HotwordsId: String
9868
9928
  # @param Status: 当前热词库 id 状态,为 0 表示查询的时刻,没有模板绑定这个热词库,可以删除
9869
- # 注意:此字段可能返回 null,表示取不到有效值。
9870
9929
  # @type Status: Integer
9871
9930
  # @param Name: 热词库的名称
9872
- # 注意:此字段可能返回 null,表示取不到有效值。
9873
9931
  # @type Name: String
9874
9932
  # @param Type: 临时热词库为 0,返回创建时候的字符串
9875
9933
  # 文件热词库为 1,返回创建是上传的文件内容
9876
9934
 
9877
-
9878
- # 注意:此字段可能返回 null,表示取不到有效值。
9879
9935
  # @type Type: Integer
9880
9936
  # @param FileName: 热词文件上传时的文件名
9881
- # 注意:此字段可能返回 null,表示取不到有效值。
9882
9937
  # @type FileName: String
9883
9938
  # @param HotWords: 查询返回的热词库列表
9884
9939
  # @type HotWords: Array
9885
9940
  # @param Content: 热词库文本,根据 Type 区分
9886
9941
  # 如果 Type 为 0,是热词库字符串
9887
9942
  # 如果 Type 是 1,是热词库文本文件的文件内容 base64 编码
9888
- # 注意:此字段可能返回 null,表示取不到有效值。
9889
9943
  # @type Content: String
9890
9944
  # @param WordCount: 当前热词库包含的词语数量
9891
- # 注意:此字段可能返回 null,表示取不到有效值。
9892
9945
  # @type WordCount: Integer
9893
9946
  # @param Offset: 分页偏移量,默认值:0。
9894
- # 注意:此字段可能返回 null,表示取不到有效值。
9895
9947
  # @type Offset: Integer
9896
9948
  # @param Limit: 返回记录条数,默认值:10,最大值:100。
9897
- # 注意:此字段可能返回 null,表示取不到有效值。
9898
9949
  # @type Limit: Integer
9899
9950
  # @param CreateTime: 热词库创建时间 ISOUTC 格式 "2006-01-02T15:04:05Z"
9900
- # 注意:此字段可能返回 null,表示取不到有效值。
9901
9951
  # @type CreateTime: String
9902
9952
  # @param UpdateTime: 热词库修改时间 ISOUTC 格式 "2006-01-02T15:04:05Z"
9903
- # 注意:此字段可能返回 null,表示取不到有效值。
9904
9953
  # @type UpdateTime: String
9905
9954
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9906
9955
  # @type RequestId: String
@@ -9982,7 +10031,6 @@ module TencentCloud
9982
10031
  # @param TaskId: 媒体处理任务 ID。
9983
10032
  # @type TaskId: String
9984
10033
  # @param BatchTaskResult: 视频处理任务信息,仅当 TaskType 为 BatchTask,该字段有值。
9985
- # 注意:此字段可能返回 null,表示取不到有效值。
9986
10034
  # @type BatchTaskResult: :class:`Tencentcloud::Mps.v20190612.models.BatchSubTaskResult`
9987
10035
  # @param TaskNotifyConfig: 任务的事件通知信息。
9988
10036
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -12999,7 +13047,6 @@ module TencentCloud
12999
13047
  # DescribeWordSamples返回参数结构体
13000
13048
  class DescribeWordSamplesResponse < TencentCloud::Common::AbstractModel
13001
13049
  # @param TotalCount: 符合条件的记录总数。
13002
- # 注意:此字段可能返回 null,表示取不到有效值。
13003
13050
  # @type TotalCount: Integer
13004
13051
  # @param WordSet: 关键词信息。
13005
13052
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -13303,16 +13350,29 @@ module TencentCloud
13303
13350
  # Drm 加密信息。
13304
13351
  class DrmInfo < TencentCloud::Common::AbstractModel
13305
13352
  # @param Type: 加密类型:
13306
- # <li> simpleaes: aes-128 加密</li>
13307
- # <li> widevine</li>
13308
- # <li> fairplay:Dash不支持fairplay加密</li>
13309
- # <li> playready</li>
13310
- # 注意:此字段可能返回 null,表示取不到有效值。
13353
+
13354
+ # - simpleaes
13355
+ # 只能用于HLS,切片格式支持ts和mp4
13356
+ # 只能使用切片模式,不能使用singlefile模式
13357
+
13358
+ # - fairplay:
13359
+ # 只能用于HLS,切片格式只能是mp4
13360
+ # 可以使用切片模式或singlefile模式
13361
+
13362
+ # - widevine:
13363
+ # 可以用于HLS和DASH,切片格式只能是mp4
13364
+ # 输出HLS:可以使用切片模式或singlefile模式
13365
+ # 输出DASH:只能singlefile模式
13366
+
13367
+ # - playready:
13368
+ # 可以用于HLS和DASH,切片格式只能是mp4
13369
+ # 输出HLS:可以使用切片模式或singlefile模式
13370
+ # 输出DASH:只能singlefile模式
13311
13371
  # @type Type: String
13312
13372
  # @param SimpleAesDrm: SimpleAes 加密信息。
13313
13373
  # 注意:此字段可能返回 null,表示取不到有效值。
13314
13374
  # @type SimpleAesDrm: :class:`Tencentcloud::Mps.v20190612.models.SimpleAesDrm`
13315
- # @param SpekeDrm: FairPlay, WideVine, PlayReady 加密信息。
13375
+ # @param SpekeDrm: FairPlayWideVine,PlayReady 加密信息。
13316
13376
  # @type SpekeDrm: :class:`Tencentcloud::Mps.v20190612.models.SpekeDrm`
13317
13377
 
13318
13378
  attr_accessor :Type, :SimpleAesDrm, :SpekeDrm
@@ -13679,6 +13739,137 @@ module TencentCloud
13679
13739
  end
13680
13740
  end
13681
13741
 
13742
+ # 视频评测任务的视频来源信息
13743
+ class EvaluationMediaInputInfo < TencentCloud::Common::AbstractModel
13744
+ # @param SourceId: 对比视频的来源 ID,当评测任务的类型为 BD_RATE 且对比视频来自用户输入时有效;当对比视频来自转码模版时为空
13745
+ # 注意:此字段可能返回 null,表示取不到有效值。
13746
+ # @type SourceId: String
13747
+ # @param InputInfo: 对比视频的输入信息
13748
+ # 注意:此字段可能返回 null,表示取不到有效值。
13749
+ # @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
13750
+
13751
+ attr_accessor :SourceId, :InputInfo
13752
+
13753
+ def initialize(sourceid=nil, inputinfo=nil)
13754
+ @SourceId = sourceid
13755
+ @InputInfo = inputinfo
13756
+ end
13757
+
13758
+ def deserialize(params)
13759
+ @SourceId = params['SourceId']
13760
+ unless params['InputInfo'].nil?
13761
+ @InputInfo = MediaInputInfo.new
13762
+ @InputInfo.deserialize(params['InputInfo'])
13763
+ end
13764
+ end
13765
+ end
13766
+
13767
+ # 评测任务输入参数类型
13768
+ class EvaluationTaskInput < TencentCloud::Common::AbstractModel
13769
+ # @param TaskType: 评测任务类型,可选 NORMAL、BD_RATE
13770
+ # @type TaskType: String
13771
+ # @param EvaluationTypeSet: 评测类型,可选 PSNR、SSIM、VMAF、VMAF_NEG
13772
+ # @type EvaluationTypeSet: Array
13773
+ # @param EvaluationRangeType: 评测范围类型,可选 ALL(全部时长)、TIME(指定时长范围)、FRAME(指定帧数范围)
13774
+ # @type EvaluationRangeType: String
13775
+ # @param ContrastInfoSet: 对比视频信息。
13776
+ # 注意:此字段可能返回 null,表示取不到有效值。
13777
+ # @type ContrastInfoSet: Array
13778
+ # @param ContrastMediaSet: 对比视频信息。
13779
+ # @type ContrastMediaSet: Array
13780
+ # @param ContrastTemplateSet: 对比转码模板信息。
13781
+ # @type ContrastTemplateSet: Array
13782
+ # @param StartTime: 开始评测时间,单位秒,当 EvaluationRangeType 为 TIME 时有效。
13783
+ # @type StartTime: Integer
13784
+ # @param EndTime: 结束评测时间,单位秒,当 EvaluationRangeType 为 TIME 时有效。
13785
+ # @type EndTime: Integer
13786
+ # @param StartFrameIndex: 评测开始帧,默认从0开始,当 EvaluationRangeType 为FRAME 时有效。
13787
+ # @type StartFrameIndex: Integer
13788
+ # @param EndFrameIndex: 评测结束帧,默认为视频中可以参与评测的最后一帧,当 EvaluationRangeType 为 FRAME 时有效。
13789
+ # @type EndFrameIndex: Integer
13790
+ # @param ResolutionAlignmentMode: 分辨率对齐模式,默认对齐到低分辨率的视频,可选 ALIGN_HIGH_RESOLUTION、ALIGN_LOW_RESOLUTION
13791
+ # @type ResolutionAlignmentMode: String
13792
+ # @param BitrateSet: 指定码率评测,当评测任务类型为 BD_RATE 有效。
13793
+ # @type BitrateSet: Array
13794
+ # @param VCRFSet: 指定 vcrf 评测,当评测任务类型为 BD_RATE 有效。
13795
+ # @type VCRFSet: Array
13796
+
13797
+ attr_accessor :TaskType, :EvaluationTypeSet, :EvaluationRangeType, :ContrastInfoSet, :ContrastMediaSet, :ContrastTemplateSet, :StartTime, :EndTime, :StartFrameIndex, :EndFrameIndex, :ResolutionAlignmentMode, :BitrateSet, :VCRFSet
13798
+ extend Gem::Deprecate
13799
+ deprecate :ContrastInfoSet, :none, 2025, 7
13800
+ deprecate :ContrastInfoSet=, :none, 2025, 7
13801
+
13802
+ 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)
13803
+ @TaskType = tasktype
13804
+ @EvaluationTypeSet = evaluationtypeset
13805
+ @EvaluationRangeType = evaluationrangetype
13806
+ @ContrastInfoSet = contrastinfoset
13807
+ @ContrastMediaSet = contrastmediaset
13808
+ @ContrastTemplateSet = contrasttemplateset
13809
+ @StartTime = starttime
13810
+ @EndTime = endtime
13811
+ @StartFrameIndex = startframeindex
13812
+ @EndFrameIndex = endframeindex
13813
+ @ResolutionAlignmentMode = resolutionalignmentmode
13814
+ @BitrateSet = bitrateset
13815
+ @VCRFSet = vcrfset
13816
+ end
13817
+
13818
+ def deserialize(params)
13819
+ @TaskType = params['TaskType']
13820
+ @EvaluationTypeSet = params['EvaluationTypeSet']
13821
+ @EvaluationRangeType = params['EvaluationRangeType']
13822
+ unless params['ContrastInfoSet'].nil?
13823
+ @ContrastInfoSet = []
13824
+ params['ContrastInfoSet'].each do |i|
13825
+ mediainputinfo_tmp = MediaInputInfo.new
13826
+ mediainputinfo_tmp.deserialize(i)
13827
+ @ContrastInfoSet << mediainputinfo_tmp
13828
+ end
13829
+ end
13830
+ unless params['ContrastMediaSet'].nil?
13831
+ @ContrastMediaSet = []
13832
+ params['ContrastMediaSet'].each do |i|
13833
+ evaluationmediainputinfo_tmp = EvaluationMediaInputInfo.new
13834
+ evaluationmediainputinfo_tmp.deserialize(i)
13835
+ @ContrastMediaSet << evaluationmediainputinfo_tmp
13836
+ end
13837
+ end
13838
+ unless params['ContrastTemplateSet'].nil?
13839
+ @ContrastTemplateSet = []
13840
+ params['ContrastTemplateSet'].each do |i|
13841
+ evaluationtemplateinputinfo_tmp = EvaluationTemplateInputInfo.new
13842
+ evaluationtemplateinputinfo_tmp.deserialize(i)
13843
+ @ContrastTemplateSet << evaluationtemplateinputinfo_tmp
13844
+ end
13845
+ end
13846
+ @StartTime = params['StartTime']
13847
+ @EndTime = params['EndTime']
13848
+ @StartFrameIndex = params['StartFrameIndex']
13849
+ @EndFrameIndex = params['EndFrameIndex']
13850
+ @ResolutionAlignmentMode = params['ResolutionAlignmentMode']
13851
+ @BitrateSet = params['BitrateSet']
13852
+ @VCRFSet = params['VCRFSet']
13853
+ end
13854
+ end
13855
+
13856
+ # 在评测中使用的转码模版的信息
13857
+ class EvaluationTemplateInputInfo < TencentCloud::Common::AbstractModel
13858
+ # @param Definition: 转码模版的 ID。
13859
+ # 注意:此字段可能返回 null,表示取不到有效值。
13860
+ # @type Definition: Integer
13861
+
13862
+ attr_accessor :Definition
13863
+
13864
+ def initialize(definition=nil)
13865
+ @Definition = definition
13866
+ end
13867
+
13868
+ def deserialize(params)
13869
+ @Definition = params['Definition']
13870
+ end
13871
+ end
13872
+
13682
13873
  # ExecuteFunction请求参数结构体
13683
13874
  class ExecuteFunctionRequest < TencentCloud::Common::AbstractModel
13684
13875
  # @param FunctionName: 调用后端接口名称。
@@ -17379,13 +17570,10 @@ module TencentCloud
17379
17570
  # @param Input: 对视频截雪碧图任务的输入。
17380
17571
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.ImageSpriteTaskInput`
17381
17572
  # @param Output: 对视频截雪碧图任务的输出。
17382
- # 注意:此字段可能返回 null,表示取不到有效值。
17383
17573
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaImageSpriteItem`
17384
17574
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17385
- # 注意:此字段可能返回 null,表示取不到有效值。
17386
17575
  # @type BeginProcessTime: String
17387
17576
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17388
- # 注意:此字段可能返回 null,表示取不到有效值。
17389
17577
  # @type FinishTime: String
17390
17578
 
17391
17579
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -17581,13 +17769,10 @@ module TencentCloud
17581
17769
  # @param Input: 对视频做采样截图任务输入。
17582
17770
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SampleSnapshotTaskInput`
17583
17771
  # @param Output: 对视频做采样截图任务输出。
17584
- # 注意:此字段可能返回 null,表示取不到有效值。
17585
17772
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaSampleSnapshotItem`
17586
17773
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17587
- # 注意:此字段可能返回 null,表示取不到有效值。
17588
17774
  # @type BeginProcessTime: String
17589
17775
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17590
- # 注意:此字段可能返回 null,表示取不到有效值。
17591
17776
  # @type FinishTime: String
17592
17777
 
17593
17778
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -17634,13 +17819,10 @@ module TencentCloud
17634
17819
  # @param Input: 对视频按指定时间点截图任务输入。
17635
17820
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SnapshotByTimeOffsetTaskInput`
17636
17821
  # @param Output: 对视频按指定时间点截图任务输出。
17637
- # 注意:此字段可能返回 null,表示取不到有效值。
17638
17822
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaSnapshotByTimeOffsetItem`
17639
17823
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17640
- # 注意:此字段可能返回 null,表示取不到有效值。
17641
17824
  # @type BeginProcessTime: String
17642
17825
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
17643
- # 注意:此字段可能返回 null,表示取不到有效值。
17644
17826
  # @type FinishTime: String
17645
17827
 
17646
17828
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -17690,7 +17872,6 @@ module TencentCloud
17690
17872
  # 注意:此字段可能返回 null,表示取不到有效值。
17691
17873
  # @type Output: :class:`Tencentcloud::Mps.v20190612.models.MediaTranscodeItem`
17692
17874
  # @param Progress: 转码进度,取值范围 [0-100]
17693
- # 注意:此字段可能返回 null,表示取不到有效值。
17694
17875
  # @type Progress: Integer
17695
17876
 
17696
17877
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :Progress
@@ -18815,7 +18996,6 @@ module TencentCloud
18815
18996
  # @param Person: 素材信息。
18816
18997
  # @type Person: :class:`Tencentcloud::Mps.v20190612.models.AiSamplePerson`
18817
18998
  # @param FailFaceInfoSet: 处理失败的五官信息。
18818
- # 注意:此字段可能返回 null,表示取不到有效值。
18819
18999
  # @type FailFaceInfoSet: Array
18820
19000
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18821
19001
  # @type RequestId: String
@@ -19943,16 +20123,12 @@ module TencentCloud
19943
20123
  # 注意:此字段可能返回 null,表示取不到有效值。
19944
20124
  # @type TEHDConfig: :class:`Tencentcloud::Mps.v20190612.models.TEHDConfigForUpdate`
19945
20125
  # @param SubtitleTemplate: 字幕流配置参数。
19946
- # 注意:此字段可能返回 null,表示取不到有效值。
19947
20126
  # @type SubtitleTemplate: :class:`Tencentcloud::Mps.v20190612.models.SubtitleTemplate`
19948
20127
  # @param AddonAudioStream: 外挂音轨参数。
19949
- # 注意:此字段可能返回 null,表示取不到有效值。
19950
20128
  # @type AddonAudioStream: Array
19951
20129
  # @param StdExtInfo: 转码扩展字段。
19952
- # 注意:此字段可能返回 null,表示取不到有效值。
19953
20130
  # @type StdExtInfo: String
19954
20131
  # @param AddOnSubtitles: 要插入的字幕文件。
19955
- # 注意:此字段可能返回 null,表示取不到有效值。
19956
20132
  # @type AddOnSubtitles: Array
19957
20133
 
19958
20134
  attr_accessor :Container, :RemoveVideo, :RemoveAudio, :VideoTemplate, :AudioTemplate, :TEHDConfig, :SubtitleTemplate, :AddonAudioStream, :StdExtInfo, :AddOnSubtitles
@@ -20060,10 +20236,8 @@ module TencentCloud
20060
20236
  # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长1000个字符。
20061
20237
  # @type SessionContext: String
20062
20238
  # @param Timestamp: - 过期时间,事件通知签名过期 UNIX 时间戳。 - 来自媒体处理的消息通知默认过期时间是10分钟,如果一条消息通知中的 Timestamp 值所指定的时间已经过期,则可以判定这条通知无效,进而可以防止网络重放攻击。 - Timestamp 的格式为十进制 UNIX 时间戳,即从1970年01月01日(UTC/GMT 的午夜)开始所经过的秒数。
20063
- # 注意:此字段可能返回 null,表示取不到有效值。
20064
20239
  # @type Timestamp: Integer
20065
20240
  # @param Sign: 事件通知安全签名 Sign = MD5(Timestamp + NotifyKey)。说明:媒体处理把Timestamp 和 TaskNotifyConfig 里面的NotifyKey 进行字符串拼接后通过 MD5 计算得出 Sign 值,并将其放在通知消息里,您的后台服务器在收到通知消息后可以根据同样的算法确认 Sign 是否正确,进而确认消息是否确实来自媒体处理后台。
20066
- # 注意:此字段可能返回 null,表示取不到有效值。
20067
20241
  # @type Sign: String
20068
20242
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20069
20243
  # @type RequestId: String
@@ -21692,7 +21866,6 @@ module TencentCloud
21692
21866
  # @param TEHDConfig: 极速高清转码参数。
21693
21867
  # @type TEHDConfig: :class:`Tencentcloud::Mps.v20190612.models.TEHDConfig`
21694
21868
  # @param StdExtInfo: 扩展参数,序列化的 json 字符串。
21695
- # 注意:此字段可能返回 null,表示取不到有效值。
21696
21869
  # @type StdExtInfo: String
21697
21870
  # @param EnhanceConfig: 音视频增强配置
21698
21871
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -22420,13 +22593,10 @@ module TencentCloud
22420
22593
  # @param Input: 识别任务的输入。
22421
22594
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiRecognitionTaskInput`
22422
22595
  # @param Output: 识别任务的输出。
22423
- # 注意:此字段可能返回 null,表示取不到有效值。
22424
22596
  # @type Output: Array
22425
22597
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22426
- # 注意:此字段可能返回 null,表示取不到有效值。
22427
22598
  # @type BeginProcessTime: String
22428
22599
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22429
- # 注意:此字段可能返回 null,表示取不到有效值。
22430
22600
  # @type FinishTime: String
22431
22601
 
22432
22602
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -22532,16 +22702,12 @@ module TencentCloud
22532
22702
  # @param Message: 错误信息。
22533
22703
  # @type Message: String
22534
22704
  # @param Input: 识别任务的输入。
22535
- # 注意:此字段可能返回 null,表示取不到有效值。
22536
22705
  # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitlesTaskInput`
22537
22706
  # @param Output: 识别任务的输出。
22538
- # 注意:此字段可能返回 null,表示取不到有效值。
22539
22707
  # @type Output: Array
22540
22708
  # @param BeginProcessTime: 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22541
- # 注意:此字段可能返回 null,表示取不到有效值。
22542
22709
  # @type BeginProcessTime: String
22543
22710
  # @param FinishTime: 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
22544
- # 注意:此字段可能返回 null,表示取不到有效值。
22545
22711
  # @type FinishTime: String
22546
22712
 
22547
22713
  attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :BeginProcessTime, :FinishTime
@@ -22844,24 +23010,18 @@ module TencentCloud
22844
23010
  # @param EndTimeOffset: 片段结束时间偏移。
22845
23011
  # @type EndTimeOffset: Float
22846
23012
  # @param SegmentUrl: 拆条片段URL。
22847
- # 注意:此字段可能返回 null,表示取不到有效值。
22848
23013
  # @type SegmentUrl: String
22849
23014
  # @param CovImgUrl: 拆条片段封面。
22850
- # 注意:此字段可能返回 null,表示取不到有效值。
22851
23015
  # @type CovImgUrl: String
22852
23016
  # @param Title: 分段标题。
22853
- # 注意:此字段可能返回 null,表示取不到有效值。
22854
23017
  # @type Title: String
22855
23018
  # @param Summary: 分段概要。
22856
- # 注意:此字段可能返回 null,表示取不到有效值。
22857
23019
  # @type Summary: String
22858
23020
  # @param Keywords: 分段关键词。
22859
23021
  # @type Keywords: Array
22860
23022
  # @param BeginTime: 直播切片对应直播起始时间点,采用 ISO 日期格式。
22861
- # 注意:此字段可能返回 null,表示取不到有效值。
22862
23023
  # @type BeginTime: String
22863
23024
  # @param EndTime: 直播切片对应直播结束时间点,采用 ISO 日期格式。
22864
- # 注意:此字段可能返回 null,表示取不到有效值。
22865
23025
  # @type EndTime: String
22866
23026
  # @param AudioUrl: 直播拆条用,音频url。
22867
23027
  # @type AudioUrl: String
@@ -23794,8 +23954,9 @@ module TencentCloud
23794
23954
  # @param Path: 要压制到视频中的字幕文件地址。
23795
23955
  # 注意:此字段可能返回 null,表示取不到有效值。
23796
23956
  # @type Path: String
23797
- # @param StreamIndex: 指定要压制到视频中的字幕轨道,Path 和 StreamIndex 至少指定一个;如果指定了Path,则优先使用Path。
23798
- # Streamindex的取值须与源文件中的字幕轨索引一致。例如,源文件中的字幕轨为stream#0:3,则StreamIndex应为3,否则可能导致任务处理失败。
23957
+ # @param StreamIndex: 指定要压制到视频中的字幕轨道,Streamindex的取值从0开始,0表示使用源视频中的第一条字幕轨。如果指定了Path,则优先使用Path。Path 和 StreamIndex 至少指定一个。
23958
+
23959
+ # - 注意:StreamIndex必须与源文件中的字幕轨索引一致。例如,源文件中的字幕轨为stream#0:3,则StreamIndex应为3,否则可能导致任务处理失败。
23799
23960
 
23800
23961
 
23801
23962
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -23818,7 +23979,7 @@ module TencentCloud
23818
23979
  # <li>korean.ttf:韩语</li>
23819
23980
  # <li>japanese.ttf:日语</li>
23820
23981
  # <li>thai.ttf:泰语</li>
23821
- # 默认:hei.ttf 黑体。
23982
+ # 默认:hei.ttf 黑体。注意:楷体推荐使用kai.ttf
23822
23983
  # 注意:此字段可能返回 null,表示取不到有效值。
23823
23984
  # @type FontType: String
23824
23985
  # @param FontSize: 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。
@@ -24108,7 +24269,7 @@ module TencentCloud
24108
24269
  # <li>URL:指定URL时HTTP回调推送到 NotifyUrl 指定的地址,回调协议http+json,包体内容同解析事件通知接口的输出参数 </li>
24109
24270
  # <li>SCF:不推荐使用,需要在控制台额外配置SCF</li>
24110
24271
  # <li>AWS-SQS:AWS 队列,只适用于 AWS 任务,且要求同区域</li>
24111
- # <font color="red"> 注:不填或为空时默认 CMQ,如需采用其他类型需填写对应类型值。 </font>
24272
+ # <font color="red"> 注:不填或为空时默认 TDMQ-CMQ,如需采用其他类型需填写对应类型值;如果使用TDMQ-CMQ消息队列,任务回包过大可能会写入队列失败 </font>
24112
24273
  # @type NotifyType: String
24113
24274
  # @param NotifyMode: 工作流通知的模式,可取值有 Finish 和 Change,不填代表 Finish。
24114
24275
  # @type NotifyMode: String
@@ -24127,7 +24288,6 @@ module TencentCloud
24127
24288
  # 注意:此字段可能返回 null,表示取不到有效值。
24128
24289
  # @type AwsSQS: :class:`Tencentcloud::Mps.v20190612.models.AwsSQS`
24129
24290
  # @param NotifyKey: 用于生成回调签名的key。
24130
- # 注意:此字段可能返回 null,表示取不到有效值。
24131
24291
  # @type NotifyKey: String
24132
24292
 
24133
24293
  attr_accessor :NotifyType, :NotifyMode, :NotifyUrl, :CmqModel, :CmqRegion, :TopicName, :QueueName, :AwsSQS, :NotifyKey
@@ -24525,7 +24685,6 @@ module TencentCloud
24525
24685
  # @type Definition: Integer
24526
24686
  # @param RawParameter: 视频转码自定义参数,当 Definition 填 0 时有效。
24527
24687
  # 该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
24528
- # 注意:此字段可能返回 null,表示取不到有效值。
24529
24688
  # @type RawParameter: :class:`Tencentcloud::Mps.v20190612.models.RawTranscodeParameter`
24530
24689
  # @param OverrideParameter: 视频转码自定义参数,当 Definition 不填 0 时有效。
24531
24690
  # 当填写了该结构中的部分转码参数时,将使用填写的参数覆盖转码模板中的参数。
@@ -24533,7 +24692,6 @@ module TencentCloud
24533
24692
  # 注意:此字段可能返回 null,表示取不到有效值。
24534
24693
  # @type OverrideParameter: :class:`Tencentcloud::Mps.v20190612.models.OverrideTranscodeParameter`
24535
24694
  # @param WatermarkSet: 水印列表,支持多张图片或文字水印,最大可支持 10 张。
24536
- # 注意:此字段可能返回 null,表示取不到有效值。
24537
24695
  # @type WatermarkSet: Array
24538
24696
  # @param MosaicSet: 马赛克列表,最大可支持 10 张。
24539
24697
  # @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.1102
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-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common