tencentcloud-sdk-mps 3.0.922 → 3.0.924
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 +97 -0
- data/lib/v20190612/models.rb +506 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ddcd9a61b3ca5de67497941d2b270e381371aa
|
4
|
+
data.tar.gz: ba75b2f014d069892c7ad7172b24c73812b237a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc82f88f50df071e92390f23178f7af7f2dd77c8707f900d82c1e205215829a1645e6f638b580b3a00874e162b613d0d5dc724e4b1d0bb43d9b8dcf278e58f32
|
7
|
+
data.tar.gz: 18ca2db6a8e635ccbc6cda4c26de0ebbbeafb5173a604864d1ad47036e5b607e2ab3e66693dedf39e8bccbcaca26036bafe843883e75090a640b0768aa3e4008
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.924
|
data/lib/v20190612/client.rb
CHANGED
@@ -496,6 +496,55 @@ module TencentCloud
|
|
496
496
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
497
497
|
end
|
498
498
|
|
499
|
+
# 对URL链接或COS中的视频发起入库任务。
|
500
|
+
# 可选在任务完成后向回调方发送任务完成状态信息。
|
501
|
+
|
502
|
+
# @param request: Request instance for CreateVideoDatabaseEntryTask.
|
503
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::CreateVideoDatabaseEntryTaskRequest`
|
504
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::CreateVideoDatabaseEntryTaskResponse`
|
505
|
+
def CreateVideoDatabaseEntryTask(request)
|
506
|
+
body = send_request('CreateVideoDatabaseEntryTask', request.serialize)
|
507
|
+
response = JSON.parse(body)
|
508
|
+
if response['Response'].key?('Error') == false
|
509
|
+
model = CreateVideoDatabaseEntryTaskResponse.new
|
510
|
+
model.deserialize(response['Response'])
|
511
|
+
model
|
512
|
+
else
|
513
|
+
code = response['Response']['Error']['Code']
|
514
|
+
message = response['Response']['Error']['Message']
|
515
|
+
reqid = response['Response']['RequestId']
|
516
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
517
|
+
end
|
518
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
519
|
+
raise e
|
520
|
+
rescue StandardError => e
|
521
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
522
|
+
end
|
523
|
+
|
524
|
+
# 使用检索值检索库中最接近检索值的若干视频。
|
525
|
+
|
526
|
+
# @param request: Request instance for CreateVideoSearchTask.
|
527
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::CreateVideoSearchTaskRequest`
|
528
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::CreateVideoSearchTaskResponse`
|
529
|
+
def CreateVideoSearchTask(request)
|
530
|
+
body = send_request('CreateVideoSearchTask', request.serialize)
|
531
|
+
response = JSON.parse(body)
|
532
|
+
if response['Response'].key?('Error') == false
|
533
|
+
model = CreateVideoSearchTaskResponse.new
|
534
|
+
model.deserialize(response['Response'])
|
535
|
+
model
|
536
|
+
else
|
537
|
+
code = response['Response']['Error']['Code']
|
538
|
+
message = response['Response']['Error']['Message']
|
539
|
+
reqid = response['Response']['RequestId']
|
540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
541
|
+
end
|
542
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
543
|
+
raise e
|
544
|
+
rescue StandardError => e
|
545
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
546
|
+
end
|
547
|
+
|
499
548
|
# 创建用户自定义水印模板,数量上限:1000。
|
500
549
|
|
501
550
|
# @param request: Request instance for CreateWatermarkTemplate.
|
@@ -1663,6 +1712,54 @@ module TencentCloud
|
|
1663
1712
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1664
1713
|
end
|
1665
1714
|
|
1715
|
+
# 根据任务ID查询视频入库任务的状态。
|
1716
|
+
|
1717
|
+
# @param request: Request instance for DescribeVideoDatabaseEntryTaskDetail.
|
1718
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeVideoDatabaseEntryTaskDetailRequest`
|
1719
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeVideoDatabaseEntryTaskDetailResponse`
|
1720
|
+
def DescribeVideoDatabaseEntryTaskDetail(request)
|
1721
|
+
body = send_request('DescribeVideoDatabaseEntryTaskDetail', request.serialize)
|
1722
|
+
response = JSON.parse(body)
|
1723
|
+
if response['Response'].key?('Error') == false
|
1724
|
+
model = DescribeVideoDatabaseEntryTaskDetailResponse.new
|
1725
|
+
model.deserialize(response['Response'])
|
1726
|
+
model
|
1727
|
+
else
|
1728
|
+
code = response['Response']['Error']['Code']
|
1729
|
+
message = response['Response']['Error']['Message']
|
1730
|
+
reqid = response['Response']['RequestId']
|
1731
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1732
|
+
end
|
1733
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1734
|
+
raise e
|
1735
|
+
rescue StandardError => e
|
1736
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
# 根据任务ID查询视频检索任务的状态。
|
1740
|
+
|
1741
|
+
# @param request: Request instance for DescribeVideoSearchTaskDetail.
|
1742
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeVideoSearchTaskDetailRequest`
|
1743
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeVideoSearchTaskDetailResponse`
|
1744
|
+
def DescribeVideoSearchTaskDetail(request)
|
1745
|
+
body = send_request('DescribeVideoSearchTaskDetail', request.serialize)
|
1746
|
+
response = JSON.parse(body)
|
1747
|
+
if response['Response'].key?('Error') == false
|
1748
|
+
model = DescribeVideoSearchTaskDetailResponse.new
|
1749
|
+
model.deserialize(response['Response'])
|
1750
|
+
model
|
1751
|
+
else
|
1752
|
+
code = response['Response']['Error']['Code']
|
1753
|
+
message = response['Response']['Error']['Message']
|
1754
|
+
reqid = response['Response']['RequestId']
|
1755
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1756
|
+
end
|
1757
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1758
|
+
raise e
|
1759
|
+
rescue StandardError => e
|
1760
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1761
|
+
end
|
1762
|
+
|
1666
1763
|
# 查询用户自定义水印模板,支持根据条件,分页查询。
|
1667
1764
|
|
1668
1765
|
# @param request: Request instance for DescribeWatermarkTemplates.
|
data/lib/v20190612/models.rb
CHANGED
@@ -2017,8 +2017,8 @@ module TencentCloud
|
|
2017
2017
|
|
2018
2018
|
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
2019
2019
|
extend Gem::Deprecate
|
2020
|
-
deprecate :OutputStorage, :none, 2024,
|
2021
|
-
deprecate :OutputStorage=, :none, 2024,
|
2020
|
+
deprecate :OutputStorage, :none, 2024, 10
|
2021
|
+
deprecate :OutputStorage=, :none, 2024, 10
|
2022
2022
|
|
2023
2023
|
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
2024
2024
|
@SegmentSet = segmentset
|
@@ -7568,6 +7568,104 @@ module TencentCloud
|
|
7568
7568
|
end
|
7569
7569
|
end
|
7570
7570
|
|
7571
|
+
# CreateVideoDatabaseEntryTask请求参数结构体
|
7572
|
+
class CreateVideoDatabaseEntryTaskRequest < TencentCloud::Common::AbstractModel
|
7573
|
+
# @param InputInfo: 待入库视频信息
|
7574
|
+
# @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
|
7575
|
+
# @param TaskNotifyConfig: 可选,入库任务完成后向指定的回调地址传递任务结果,目前仅支持URL
|
7576
|
+
# @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
|
7577
|
+
|
7578
|
+
attr_accessor :InputInfo, :TaskNotifyConfig
|
7579
|
+
|
7580
|
+
def initialize(inputinfo=nil, tasknotifyconfig=nil)
|
7581
|
+
@InputInfo = inputinfo
|
7582
|
+
@TaskNotifyConfig = tasknotifyconfig
|
7583
|
+
end
|
7584
|
+
|
7585
|
+
def deserialize(params)
|
7586
|
+
unless params['InputInfo'].nil?
|
7587
|
+
@InputInfo = MediaInputInfo.new
|
7588
|
+
@InputInfo.deserialize(params['InputInfo'])
|
7589
|
+
end
|
7590
|
+
unless params['TaskNotifyConfig'].nil?
|
7591
|
+
@TaskNotifyConfig = TaskNotifyConfig.new
|
7592
|
+
@TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
|
7593
|
+
end
|
7594
|
+
end
|
7595
|
+
end
|
7596
|
+
|
7597
|
+
# CreateVideoDatabaseEntryTask返回参数结构体
|
7598
|
+
class CreateVideoDatabaseEntryTaskResponse < TencentCloud::Common::AbstractModel
|
7599
|
+
# @param TaskId: 任务ID
|
7600
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7601
|
+
# @type TaskId: String
|
7602
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7603
|
+
# @type RequestId: String
|
7604
|
+
|
7605
|
+
attr_accessor :TaskId, :RequestId
|
7606
|
+
|
7607
|
+
def initialize(taskid=nil, requestid=nil)
|
7608
|
+
@TaskId = taskid
|
7609
|
+
@RequestId = requestid
|
7610
|
+
end
|
7611
|
+
|
7612
|
+
def deserialize(params)
|
7613
|
+
@TaskId = params['TaskId']
|
7614
|
+
@RequestId = params['RequestId']
|
7615
|
+
end
|
7616
|
+
end
|
7617
|
+
|
7618
|
+
# CreateVideoSearchTask请求参数结构体
|
7619
|
+
class CreateVideoSearchTaskRequest < TencentCloud::Common::AbstractModel
|
7620
|
+
# @param SearchValueInput: 用于检索任务的输入
|
7621
|
+
# @type SearchValueInput: :class:`Tencentcloud::Mps.v20190612.models.SearchValueInput`
|
7622
|
+
# @param Limit: 返回视频的最大数量,取值范围[1,20],将返回最相近的前Limit条视频,默认为5
|
7623
|
+
# @type Limit: Integer
|
7624
|
+
# @param TaskNotifyConfig: 可选,用于检索任务完成后向回调方发送检索结果,目前仅支持URL方式
|
7625
|
+
# @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
|
7626
|
+
|
7627
|
+
attr_accessor :SearchValueInput, :Limit, :TaskNotifyConfig
|
7628
|
+
|
7629
|
+
def initialize(searchvalueinput=nil, limit=nil, tasknotifyconfig=nil)
|
7630
|
+
@SearchValueInput = searchvalueinput
|
7631
|
+
@Limit = limit
|
7632
|
+
@TaskNotifyConfig = tasknotifyconfig
|
7633
|
+
end
|
7634
|
+
|
7635
|
+
def deserialize(params)
|
7636
|
+
unless params['SearchValueInput'].nil?
|
7637
|
+
@SearchValueInput = SearchValueInput.new
|
7638
|
+
@SearchValueInput.deserialize(params['SearchValueInput'])
|
7639
|
+
end
|
7640
|
+
@Limit = params['Limit']
|
7641
|
+
unless params['TaskNotifyConfig'].nil?
|
7642
|
+
@TaskNotifyConfig = TaskNotifyConfig.new
|
7643
|
+
@TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
|
7644
|
+
end
|
7645
|
+
end
|
7646
|
+
end
|
7647
|
+
|
7648
|
+
# CreateVideoSearchTask返回参数结构体
|
7649
|
+
class CreateVideoSearchTaskResponse < TencentCloud::Common::AbstractModel
|
7650
|
+
# @param TaskId: 检索任务的Id,用于后续查询任务状态和返回任务结果时标识任务
|
7651
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7652
|
+
# @type TaskId: String
|
7653
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7654
|
+
# @type RequestId: String
|
7655
|
+
|
7656
|
+
attr_accessor :TaskId, :RequestId
|
7657
|
+
|
7658
|
+
def initialize(taskid=nil, requestid=nil)
|
7659
|
+
@TaskId = taskid
|
7660
|
+
@RequestId = requestid
|
7661
|
+
end
|
7662
|
+
|
7663
|
+
def deserialize(params)
|
7664
|
+
@TaskId = params['TaskId']
|
7665
|
+
@RequestId = params['RequestId']
|
7666
|
+
end
|
7667
|
+
end
|
7668
|
+
|
7571
7669
|
# CreateWatermarkTemplate请求参数结构体
|
7572
7670
|
class CreateWatermarkTemplateRequest < TencentCloud::Common::AbstractModel
|
7573
7671
|
# @param Type: 水印类型,可选值:
|
@@ -10951,6 +11049,114 @@ module TencentCloud
|
|
10951
11049
|
end
|
10952
11050
|
end
|
10953
11051
|
|
11052
|
+
# DescribeVideoDatabaseEntryTaskDetail请求参数结构体
|
11053
|
+
class DescribeVideoDatabaseEntryTaskDetailRequest < TencentCloud::Common::AbstractModel
|
11054
|
+
# @param TaskId: 待查询的任务Id
|
11055
|
+
# @type TaskId: String
|
11056
|
+
|
11057
|
+
attr_accessor :TaskId
|
11058
|
+
|
11059
|
+
def initialize(taskid=nil)
|
11060
|
+
@TaskId = taskid
|
11061
|
+
end
|
11062
|
+
|
11063
|
+
def deserialize(params)
|
11064
|
+
@TaskId = params['TaskId']
|
11065
|
+
end
|
11066
|
+
end
|
11067
|
+
|
11068
|
+
# DescribeVideoDatabaseEntryTaskDetail返回参数结构体
|
11069
|
+
class DescribeVideoDatabaseEntryTaskDetailResponse < TencentCloud::Common::AbstractModel
|
11070
|
+
# @param TaskId: 查询的任务Id
|
11071
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11072
|
+
# @type TaskId: String
|
11073
|
+
# @param Status: 查询的任务的状态,可能为WAITING、PROCESSING、FAIL、SUCCESS。
|
11074
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11075
|
+
# @type Status: String
|
11076
|
+
# @param VideoDBEntryTaskResults: 查询的任务的结果
|
11077
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11078
|
+
# @type VideoDBEntryTaskResults: Array
|
11079
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11080
|
+
# @type RequestId: String
|
11081
|
+
|
11082
|
+
attr_accessor :TaskId, :Status, :VideoDBEntryTaskResults, :RequestId
|
11083
|
+
|
11084
|
+
def initialize(taskid=nil, status=nil, videodbentrytaskresults=nil, requestid=nil)
|
11085
|
+
@TaskId = taskid
|
11086
|
+
@Status = status
|
11087
|
+
@VideoDBEntryTaskResults = videodbentrytaskresults
|
11088
|
+
@RequestId = requestid
|
11089
|
+
end
|
11090
|
+
|
11091
|
+
def deserialize(params)
|
11092
|
+
@TaskId = params['TaskId']
|
11093
|
+
@Status = params['Status']
|
11094
|
+
unless params['VideoDBEntryTaskResults'].nil?
|
11095
|
+
@VideoDBEntryTaskResults = []
|
11096
|
+
params['VideoDBEntryTaskResults'].each do |i|
|
11097
|
+
videodbentrytaskresult_tmp = VideoDBEntryTaskResult.new
|
11098
|
+
videodbentrytaskresult_tmp.deserialize(i)
|
11099
|
+
@VideoDBEntryTaskResults << videodbentrytaskresult_tmp
|
11100
|
+
end
|
11101
|
+
end
|
11102
|
+
@RequestId = params['RequestId']
|
11103
|
+
end
|
11104
|
+
end
|
11105
|
+
|
11106
|
+
# DescribeVideoSearchTaskDetail请求参数结构体
|
11107
|
+
class DescribeVideoSearchTaskDetailRequest < TencentCloud::Common::AbstractModel
|
11108
|
+
# @param TaskId: 待查询的任务Id
|
11109
|
+
# @type TaskId: String
|
11110
|
+
|
11111
|
+
attr_accessor :TaskId
|
11112
|
+
|
11113
|
+
def initialize(taskid=nil)
|
11114
|
+
@TaskId = taskid
|
11115
|
+
end
|
11116
|
+
|
11117
|
+
def deserialize(params)
|
11118
|
+
@TaskId = params['TaskId']
|
11119
|
+
end
|
11120
|
+
end
|
11121
|
+
|
11122
|
+
# DescribeVideoSearchTaskDetail返回参数结构体
|
11123
|
+
class DescribeVideoSearchTaskDetailResponse < TencentCloud::Common::AbstractModel
|
11124
|
+
# @param TaskId: 查询的任务Id
|
11125
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11126
|
+
# @type TaskId: String
|
11127
|
+
# @param Status: 查询的任务的状态,可能为WAITING、PROCESSING、FAIL、SUCCESS。
|
11128
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11129
|
+
# @type Status: String
|
11130
|
+
# @param SearchTaskResults: 查询的任务的结果
|
11131
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11132
|
+
# @type SearchTaskResults: Array
|
11133
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11134
|
+
# @type RequestId: String
|
11135
|
+
|
11136
|
+
attr_accessor :TaskId, :Status, :SearchTaskResults, :RequestId
|
11137
|
+
|
11138
|
+
def initialize(taskid=nil, status=nil, searchtaskresults=nil, requestid=nil)
|
11139
|
+
@TaskId = taskid
|
11140
|
+
@Status = status
|
11141
|
+
@SearchTaskResults = searchtaskresults
|
11142
|
+
@RequestId = requestid
|
11143
|
+
end
|
11144
|
+
|
11145
|
+
def deserialize(params)
|
11146
|
+
@TaskId = params['TaskId']
|
11147
|
+
@Status = params['Status']
|
11148
|
+
unless params['SearchTaskResults'].nil?
|
11149
|
+
@SearchTaskResults = []
|
11150
|
+
params['SearchTaskResults'].each do |i|
|
11151
|
+
searchtaskresult_tmp = SearchTaskResult.new
|
11152
|
+
searchtaskresult_tmp.deserialize(i)
|
11153
|
+
@SearchTaskResults << searchtaskresult_tmp
|
11154
|
+
end
|
11155
|
+
end
|
11156
|
+
@RequestId = params['RequestId']
|
11157
|
+
end
|
11158
|
+
end
|
11159
|
+
|
10954
11160
|
# DescribeWatermarkTemplates请求参数结构体
|
10955
11161
|
class DescribeWatermarkTemplatesRequest < TencentCloud::Common::AbstractModel
|
10956
11162
|
# @param Definitions: 水印模板唯一标识过滤条件,数组长度限制:100。
|
@@ -13150,10 +13356,10 @@ module TencentCloud
|
|
13150
13356
|
|
13151
13357
|
attr_accessor :QualityControlResults, :DiagnoseResults, :QualityControlResultSet, :DiagnoseResultSet
|
13152
13358
|
extend Gem::Deprecate
|
13153
|
-
deprecate :QualityControlResults, :none, 2024,
|
13154
|
-
deprecate :QualityControlResults=, :none, 2024,
|
13155
|
-
deprecate :DiagnoseResults, :none, 2024,
|
13156
|
-
deprecate :DiagnoseResults=, :none, 2024,
|
13359
|
+
deprecate :QualityControlResults, :none, 2024, 10
|
13360
|
+
deprecate :QualityControlResults=, :none, 2024, 10
|
13361
|
+
deprecate :DiagnoseResults, :none, 2024, 10
|
13362
|
+
deprecate :DiagnoseResults=, :none, 2024, 10
|
13157
13363
|
|
13158
13364
|
def initialize(qualitycontrolresults=nil, diagnoseresults=nil, qualitycontrolresultset=nil, diagnoseresultset=nil)
|
13159
13365
|
@QualityControlResults = qualitycontrolresults
|
@@ -19541,6 +19747,50 @@ module TencentCloud
|
|
19541
19747
|
end
|
19542
19748
|
end
|
19543
19749
|
|
19750
|
+
# 视频检索的检索结果
|
19751
|
+
class SearchTaskResult < TencentCloud::Common::AbstractModel
|
19752
|
+
# @param Score: 视频在本次检索中的得分,得分越高和检索值越相似,取值范围[0,1]
|
19753
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19754
|
+
# @type Score: Float
|
19755
|
+
# @param VideoId: 检索获得的视频ID
|
19756
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19757
|
+
# @type VideoId: String
|
19758
|
+
|
19759
|
+
attr_accessor :Score, :VideoId
|
19760
|
+
|
19761
|
+
def initialize(score=nil, videoid=nil)
|
19762
|
+
@Score = score
|
19763
|
+
@VideoId = videoid
|
19764
|
+
end
|
19765
|
+
|
19766
|
+
def deserialize(params)
|
19767
|
+
@Score = params['Score']
|
19768
|
+
@VideoId = params['VideoId']
|
19769
|
+
end
|
19770
|
+
end
|
19771
|
+
|
19772
|
+
# 视频检索的检索输入
|
19773
|
+
class SearchValueInput < TencentCloud::Common::AbstractModel
|
19774
|
+
# @param SearchValueType: 检索输入的类型,目前支持:
|
19775
|
+
# Text:文本检索
|
19776
|
+
# @type SearchValueType: String
|
19777
|
+
# @param TextInput: 当SearchValueType为Text时有效且必填,用于检索视频的文本
|
19778
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19779
|
+
# @type TextInput: String
|
19780
|
+
|
19781
|
+
attr_accessor :SearchValueType, :TextInput
|
19782
|
+
|
19783
|
+
def initialize(searchvaluetype=nil, textinput=nil)
|
19784
|
+
@SearchValueType = searchvaluetype
|
19785
|
+
@TextInput = textinput
|
19786
|
+
end
|
19787
|
+
|
19788
|
+
def deserialize(params)
|
19789
|
+
@SearchValueType = params['SearchValueType']
|
19790
|
+
@TextInput = params['TextInput']
|
19791
|
+
end
|
19792
|
+
end
|
19793
|
+
|
19544
19794
|
# 智能拆条片段。
|
19545
19795
|
class SegmentRecognitionItem < TencentCloud::Common::AbstractModel
|
19546
19796
|
# @param Confidence: 置信度。
|
@@ -19580,6 +19830,36 @@ module TencentCloud
|
|
19580
19830
|
end
|
19581
19831
|
end
|
19582
19832
|
|
19833
|
+
# 切片特殊配置信息。
|
19834
|
+
class SegmentSpecificInfo < TencentCloud::Common::AbstractModel
|
19835
|
+
# @param Switch: 启动分片时长开关,可选值:
|
19836
|
+
# on:打开
|
19837
|
+
# off:关闭
|
19838
|
+
# 默认off
|
19839
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19840
|
+
# @type Switch: String
|
19841
|
+
# @param FragmentTime: 启动时分片时长,单位:秒
|
19842
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19843
|
+
# @type FragmentTime: Integer
|
19844
|
+
# @param FragmentEndNum: 生效分片数,表示前FragmentEndNum个分片以FragmentTime时长切片,取值>=1
|
19845
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19846
|
+
# @type FragmentEndNum: Integer
|
19847
|
+
|
19848
|
+
attr_accessor :Switch, :FragmentTime, :FragmentEndNum
|
19849
|
+
|
19850
|
+
def initialize(switch=nil, fragmenttime=nil, fragmentendnum=nil)
|
19851
|
+
@Switch = switch
|
19852
|
+
@FragmentTime = fragmenttime
|
19853
|
+
@FragmentEndNum = fragmentendnum
|
19854
|
+
end
|
19855
|
+
|
19856
|
+
def deserialize(params)
|
19857
|
+
@Switch = params['Switch']
|
19858
|
+
@FragmentTime = params['FragmentTime']
|
19859
|
+
@FragmentEndNum = params['FragmentEndNum']
|
19860
|
+
end
|
19861
|
+
end
|
19862
|
+
|
19583
19863
|
# 细节增强配置
|
19584
19864
|
class SharpEnhanceConfig < TencentCloud::Common::AbstractModel
|
19585
19865
|
# @param Switch: 能力配置开关,可选值:
|
@@ -21019,6 +21299,23 @@ module TencentCloud
|
|
21019
21299
|
end
|
21020
21300
|
end
|
21021
21301
|
|
21302
|
+
# 视频检索入库任务的结果
|
21303
|
+
class VideoDBEntryTaskResult < TencentCloud::Common::AbstractModel
|
21304
|
+
# @param VideoId: 入库的视频ID
|
21305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21306
|
+
# @type VideoId: String
|
21307
|
+
|
21308
|
+
attr_accessor :VideoId
|
21309
|
+
|
21310
|
+
def initialize(videoid=nil)
|
21311
|
+
@VideoId = videoid
|
21312
|
+
end
|
21313
|
+
|
21314
|
+
def deserialize(params)
|
21315
|
+
@VideoId = params['VideoId']
|
21316
|
+
end
|
21317
|
+
end
|
21318
|
+
|
21022
21319
|
# 视频降噪配置
|
21023
21320
|
class VideoDenoiseConfig < TencentCloud::Common::AbstractModel
|
21024
21321
|
# @param Switch: 能力配置开关,可选值:
|
@@ -21158,7 +21455,6 @@ module TencentCloud
|
|
21158
21455
|
# <li>mpeg2:MPEG2 编码</li>
|
21159
21456
|
# <li>dnxhd:DNxHD 编码</li>
|
21160
21457
|
# <li>mv-hevc:MV-HEVC 编码</li>
|
21161
|
-
# 注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。
|
21162
21458
|
|
21163
21459
|
# 注意:av1 编码容器目前只支持 mp4 ,webm,mkv。
|
21164
21460
|
# 注意:H.266 编码容器目前只支持 mp4 ,hls,ts,mov。
|
@@ -21194,20 +21490,37 @@ module TencentCloud
|
|
21194
21490
|
# <li>当 Width、Height 均非 0,则分辨率按用户指定。</li>
|
21195
21491
|
# 默认值:0。
|
21196
21492
|
# @type Height: Integer
|
21197
|
-
# @param Gop: 关键帧 I
|
21493
|
+
# @param Gop: 关键帧 I 帧之间的间隔,允许按帧或秒自定义GOP长度,取值范围:0 和 [1, 100000],
|
21494
|
+
# 当填 0 或不填时,系统将自动设置 gop 长度。
|
21198
21495
|
# @type Gop: Integer
|
21496
|
+
# @param GopUnit: Gop数值单位,可选值:
|
21497
|
+
# frame:表示帧
|
21498
|
+
# second:表示秒
|
21499
|
+
# 默认值:frame
|
21500
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21501
|
+
# @type GopUnit: String
|
21199
21502
|
# @param FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
|
21200
21503
|
# <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
|
21201
21504
|
# <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li>
|
21202
21505
|
# <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li>
|
21203
21506
|
# <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li>
|
21507
|
+
# <li>smarttailor:智能剪裁:智能选取视频画面,来保证画面比例裁剪。</li>
|
21204
21508
|
# 默认值:black 。
|
21205
21509
|
# 注意:自适应码流只支持 stretch、black。
|
21206
21510
|
# @type FillType: String
|
21207
|
-
# @param Vcrf: 视频恒定码率控制因子,取值范围为[
|
21511
|
+
# @param Vcrf: 视频恒定码率控制因子,取值范围为[0, 51]。
|
21208
21512
|
# 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。
|
21209
21513
|
# 如果没有特殊需求,不建议指定该参数。
|
21514
|
+
# 注意:
|
21515
|
+
# 若Mode选择ABR,无需配置Vcrf值
|
21516
|
+
# 若Mode选择CBR,无需配置Vcrf值
|
21517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21210
21518
|
# @type Vcrf: Integer
|
21519
|
+
# @param HlsTime: 分片平均时长,范围:(0-10],单位:秒
|
21520
|
+
# 默认值:10
|
21521
|
+
# 注意:只能在封装格式hls的情况下使用
|
21522
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21523
|
+
# @type HlsTime: Integer
|
21211
21524
|
# @param SegmentType: hls 分片类型,可选值 :
|
21212
21525
|
# <li>0:HLS+TS 切片</li>
|
21213
21526
|
# <li>2:HLS+TS byte range</li>
|
@@ -21226,10 +21539,62 @@ module TencentCloud
|
|
21226
21539
|
# 默认值:side_by_side
|
21227
21540
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21228
21541
|
# @type Stereo3dType: String
|
21542
|
+
# @param VideoProfile: Profile,适用于不同场景。
|
21543
|
+
# baseline: 只支持I/P帧,并只支持无交错的场景,适用于视频通话、手机视频等场景。
|
21544
|
+
# main: 主流Profile,提供I帧、P帧、B帧,并支持无交错模式和交错模式。主要用在主流的音视频消费产品如视频播放器、流媒体传输设备上。
|
21545
|
+
# high: 最高编码等级,在Main Profile上添加了8X8的预测,并支持自定义量化。广泛应用在蓝光存储、高清电视等场景。
|
21546
|
+
# default:随原视频自动填充。
|
21547
|
+
|
21548
|
+
# 仅编码标准选择h264时出现该配置, 支持 baseline/main/high,默认为:default
|
21549
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21550
|
+
# @type VideoProfile: String
|
21551
|
+
# @param VideoLevel: 编码器级别,默认为自动("")
|
21552
|
+
# 若编码标准选择H264: 支持以下选项:"",1 , 1.1 , 1.2 , 1.3 , 2 , 2.1 , 2.2 , 3 , 3.1 , 3.2 , 4 , 4.1 , 4.2 , 5 , 5.1
|
21553
|
+
# 若编码标准选择H265: 支持以下选项:"",1 , 2 , 2.1 , 3 , 3.1 , 4 , 4.1 , 5 , 5.1 , 5.2 , 6 , 6.1 , 6.2 , 8.5
|
21554
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21555
|
+
# @type VideoLevel: String
|
21556
|
+
# @param Bframes: 参考帧之间的B帧数,默认选自动,支持 0 - 16
|
21557
|
+
# 注意:不填表示使用自动
|
21558
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21559
|
+
# @type Bframes: Integer
|
21560
|
+
# @param Mode: 码率控制模式:可选值:
|
21561
|
+
# VBR(Variable Bit Rate):动态比特率,根据视频画面的复杂度动态调整输出的码率,使得画面质量更高,适用于存储场景和对画面质量要求较高的应用。
|
21562
|
+
# ABR(Average Bit Rate):平均比特率,尽量保持输出视频的平均码率稳定,但允许短期内的码率波动,适用于需要在保持一定画质的情况下尽量减少整体码率的场景。
|
21563
|
+
# CBR(Constant Bit Rate):恒定比特率,指视频编码时输出的码率保持恒定不变,不考虑画面复杂度的变化,适用于对网络带宽要求较为严格的场景,如直播等。
|
21564
|
+
# VCRF(Constant Rate Factor):恒定质量因子,通过设定一个质量因子来控制视频质量,实现视频的恒定质量编码,码率会根据内容的复杂度自动调整,适用于希望保持一定画质的场景。
|
21565
|
+
# 默认选择 VBR
|
21566
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21567
|
+
# @type Mode: String
|
21568
|
+
# @param Sar: 显示高宽比,可选值:[1:1,2:1,default]
|
21569
|
+
# 默认值:default
|
21570
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21571
|
+
# @type Sar: String
|
21572
|
+
# @param NoScenecut: 自适应I帧决策,开启后,媒体处理将自动识别视频中不同场景之间的过渡点(通常是视觉上显著不同的帧,比如从一个镜头切换到另一个镜头),在这些点自适应插入关键帧(I帧),从而提高视频的随机访问性和编码效率。可选值:
|
21573
|
+
# 0:关闭自适应I帧决策
|
21574
|
+
# 1:使用自适应I帧决策
|
21575
|
+
# 默认值:0
|
21576
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21577
|
+
# @type NoScenecut: Integer
|
21578
|
+
# @param BitDepth: 比特位:支持8/10,默认为8
|
21579
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21580
|
+
# @type BitDepth: Integer
|
21581
|
+
# @param RawPts: 保持原始时间戳:可选值:
|
21582
|
+
# 0:表示关闭
|
21583
|
+
# 1:表示打开
|
21584
|
+
# 默认是关闭
|
21585
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21586
|
+
# @type RawPts: Integer
|
21587
|
+
# @param Compress: 按比例压缩码率,开启后,将根据比例来调整输出视频的码率。填写压缩率后,系统会根据视频源码率自动计算目标输出码率。压缩率范围0-100
|
21588
|
+
# 不填此值表示不开启,默认不开启
|
21589
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21590
|
+
# @type Compress: Integer
|
21591
|
+
# @param SegmentSpecificInfo: 切片特殊配置
|
21592
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21593
|
+
# @type SegmentSpecificInfo: :class:`Tencentcloud::Mps.v20190612.models.SegmentSpecificInfo`
|
21229
21594
|
|
21230
|
-
attr_accessor :Codec, :Fps, :Bitrate, :ResolutionAdaptive, :Width, :Height, :Gop, :FillType, :Vcrf, :SegmentType, :FpsDenominator, :Stereo3dType
|
21595
|
+
attr_accessor :Codec, :Fps, :Bitrate, :ResolutionAdaptive, :Width, :Height, :Gop, :GopUnit, :FillType, :Vcrf, :HlsTime, :SegmentType, :FpsDenominator, :Stereo3dType, :VideoProfile, :VideoLevel, :Bframes, :Mode, :Sar, :NoScenecut, :BitDepth, :RawPts, :Compress, :SegmentSpecificInfo
|
21231
21596
|
|
21232
|
-
def initialize(codec=nil, fps=nil, bitrate=nil, resolutionadaptive=nil, width=nil, height=nil, gop=nil, filltype=nil, vcrf=nil, segmenttype=nil, fpsdenominator=nil, stereo3dtype=nil)
|
21597
|
+
def initialize(codec=nil, fps=nil, bitrate=nil, resolutionadaptive=nil, width=nil, height=nil, gop=nil, gopunit=nil, filltype=nil, vcrf=nil, hlstime=nil, segmenttype=nil, fpsdenominator=nil, stereo3dtype=nil, videoprofile=nil, videolevel=nil, bframes=nil, mode=nil, sar=nil, noscenecut=nil, bitdepth=nil, rawpts=nil, compress=nil, segmentspecificinfo=nil)
|
21233
21598
|
@Codec = codec
|
21234
21599
|
@Fps = fps
|
21235
21600
|
@Bitrate = bitrate
|
@@ -21237,11 +21602,23 @@ module TencentCloud
|
|
21237
21602
|
@Width = width
|
21238
21603
|
@Height = height
|
21239
21604
|
@Gop = gop
|
21605
|
+
@GopUnit = gopunit
|
21240
21606
|
@FillType = filltype
|
21241
21607
|
@Vcrf = vcrf
|
21608
|
+
@HlsTime = hlstime
|
21242
21609
|
@SegmentType = segmenttype
|
21243
21610
|
@FpsDenominator = fpsdenominator
|
21244
21611
|
@Stereo3dType = stereo3dtype
|
21612
|
+
@VideoProfile = videoprofile
|
21613
|
+
@VideoLevel = videolevel
|
21614
|
+
@Bframes = bframes
|
21615
|
+
@Mode = mode
|
21616
|
+
@Sar = sar
|
21617
|
+
@NoScenecut = noscenecut
|
21618
|
+
@BitDepth = bitdepth
|
21619
|
+
@RawPts = rawpts
|
21620
|
+
@Compress = compress
|
21621
|
+
@SegmentSpecificInfo = segmentspecificinfo
|
21245
21622
|
end
|
21246
21623
|
|
21247
21624
|
def deserialize(params)
|
@@ -21252,11 +21629,26 @@ module TencentCloud
|
|
21252
21629
|
@Width = params['Width']
|
21253
21630
|
@Height = params['Height']
|
21254
21631
|
@Gop = params['Gop']
|
21632
|
+
@GopUnit = params['GopUnit']
|
21255
21633
|
@FillType = params['FillType']
|
21256
21634
|
@Vcrf = params['Vcrf']
|
21635
|
+
@HlsTime = params['HlsTime']
|
21257
21636
|
@SegmentType = params['SegmentType']
|
21258
21637
|
@FpsDenominator = params['FpsDenominator']
|
21259
21638
|
@Stereo3dType = params['Stereo3dType']
|
21639
|
+
@VideoProfile = params['VideoProfile']
|
21640
|
+
@VideoLevel = params['VideoLevel']
|
21641
|
+
@Bframes = params['Bframes']
|
21642
|
+
@Mode = params['Mode']
|
21643
|
+
@Sar = params['Sar']
|
21644
|
+
@NoScenecut = params['NoScenecut']
|
21645
|
+
@BitDepth = params['BitDepth']
|
21646
|
+
@RawPts = params['RawPts']
|
21647
|
+
@Compress = params['Compress']
|
21648
|
+
unless params['SegmentSpecificInfo'].nil?
|
21649
|
+
@SegmentSpecificInfo = SegmentSpecificInfo.new
|
21650
|
+
@SegmentSpecificInfo.deserialize(params['SegmentSpecificInfo'])
|
21651
|
+
end
|
21260
21652
|
end
|
21261
21653
|
end
|
21262
21654
|
|
@@ -21272,7 +21664,6 @@ module TencentCloud
|
|
21272
21664
|
# <li>mpeg2:MPEG2 编码</li>
|
21273
21665
|
# <li>dnxhd:DNxHD 编码</li>
|
21274
21666
|
# <li>mv-hevc:MV-HEVC 编码</li>
|
21275
|
-
# 注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。
|
21276
21667
|
|
21277
21668
|
# 注意:av1 编码容器目前只支持 mp4 ,webm,mkv。
|
21278
21669
|
# 注意:H.266 编码容器目前只支持 mp4 ,hls,ts,mov。
|
@@ -21307,18 +21698,32 @@ module TencentCloud
|
|
21307
21698
|
# @param Height: 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
|
21308
21699
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21309
21700
|
# @type Height: Integer
|
21310
|
-
# @param Gop: 关键帧 I
|
21701
|
+
# @param Gop: 关键帧 I 帧之间的间隔,允许按帧或秒自定义GOP长度,取值范围:0 和 [1, 100000]。
|
21702
|
+
# 当填 0 时,系统将自动设置 gop 长度。
|
21311
21703
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21312
21704
|
# @type Gop: Integer
|
21705
|
+
# @param GopUnit: Gop数值单位,可选值:
|
21706
|
+
# frame:表示帧
|
21707
|
+
# second:表示秒
|
21708
|
+
# 默认值:frame
|
21709
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21710
|
+
# @type GopUnit: String
|
21313
21711
|
# @param FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
|
21314
21712
|
# <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
|
21315
21713
|
# <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li>
|
21316
21714
|
# <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li>
|
21317
21715
|
# <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li>
|
21716
|
+
# <li>smarttailor:智能剪裁:智能选取视频画面,来保证画面比例裁剪。</li>
|
21717
|
+
# 默认值:black 。
|
21718
|
+
# 注意:自适应码流只支持 stretch、black。
|
21318
21719
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21319
21720
|
# @type FillType: String
|
21320
|
-
# @param Vcrf: 视频恒定码率控制因子。取值范围为[0, 51]
|
21721
|
+
# @param Vcrf: 视频恒定码率控制因子。取值范围为[0, 51]和100。
|
21321
21722
|
# 如果没有特殊需求,不建议指定该参数。
|
21723
|
+
# 注意:
|
21724
|
+
# 需要修改为自动时,填100
|
21725
|
+
# 若Mode选择ABR,无需配置Vcrf值
|
21726
|
+
# 若Mode选择CBR,无需配置Vcrf值
|
21322
21727
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21323
21728
|
# @type Vcrf: Integer
|
21324
21729
|
# @param ContentAdaptStream: 内容自适应编码。可选值:
|
@@ -21327,6 +21732,11 @@ module TencentCloud
|
|
21327
21732
|
# 默认值: 0. 当开启该参数时,将会自适应生成多个不同分辨率,不同码率的码流, 其中VideoTemplate的宽和高为多个码流中的最大分辨率,VideoTemplate中的码率为多个码流中的最高码率, VideoTemplate中的vcrf为多个码流中的最高质量。 当不设置分辨率、码率和vcrf时, ContentAdaptStream 参数生成的最高分辨率为视频源的分辨率,视频质量为接近vmaf95分。 若要开启该参数或了解计费细节, 请联系您的腾讯云商务。
|
21328
21733
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21329
21734
|
# @type ContentAdaptStream: Integer
|
21735
|
+
# @param HlsTime: 分片平均时长,取值范围:(0-10],单位:秒
|
21736
|
+
# 默认值:10
|
21737
|
+
# 注意:只在封装格式HLS时使用
|
21738
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21739
|
+
# @type HlsTime: Integer
|
21330
21740
|
# @param SegmentType: hls 分片类型,可选值:
|
21331
21741
|
# <li>0:HLS+TS 切片</li>
|
21332
21742
|
# <li>2:HLS+TS byte range</li>
|
@@ -21345,10 +21755,63 @@ module TencentCloud
|
|
21345
21755
|
# 默认值:side_by_side
|
21346
21756
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21347
21757
|
# @type Stereo3dType: String
|
21758
|
+
# @param VideoProfile: Profile,适用于不同场景。
|
21759
|
+
# baseline: 只支持I/P帧,并只支持无交错的场景,适用于视频通话、手机视频等场景。
|
21760
|
+
# main: 主流Profile,提供I帧、P帧、B帧,并支持无交错模式和交错模式。主要用在主流的音视频消费产品如视频播放器、流媒体传输设备上。
|
21761
|
+
# high: 最高编码等级,在Main Profile上添加了8X8的预测,并支持自定义量化。广泛应用在蓝光存储、高清电视等场景。
|
21762
|
+
# default:随原视频自动填充
|
21763
|
+
|
21764
|
+
# 仅编码标准选择h264时出现该配置,默认为:default
|
21765
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21766
|
+
# @type VideoProfile: String
|
21767
|
+
# @param VideoLevel: 编码器级别,默认为自动("")
|
21768
|
+
# 若编码标准选择H264: 支持以下选项:"",1 , 1.1 , 1.2 , 1.3 , 2 , 2.1 , 2.2 , 3 , 3.1 , 3.2 , 4 , 4.1 , 4.2 , 5 , 5.1
|
21769
|
+
# 若编码标准选择H265: 支持以下选项:"",1 , 2 , 2.1 , 3 , 3.1 , 4 , 4.1 , 5 , 5.1 , 5.2 , 6 , 6.1 , 6.2 , 8.5
|
21770
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21771
|
+
# @type VideoLevel: String
|
21772
|
+
# @param Bframes: 最大连续B帧数,默认选自动,支持 0 - 16和-1
|
21773
|
+
# 注意:
|
21774
|
+
# -1表示修改为自动值
|
21775
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21776
|
+
# @type Bframes: Integer
|
21777
|
+
# @param Mode: 码率控制模式:可选值:
|
21778
|
+
# VBR(Variable Bit Rate):动态比特率,根据视频画面的复杂度动态调整输出的码率,使得画面质量更高,适用于存储场景和对画面质量要求较高的应用。
|
21779
|
+
# ABR(Average Bit Rate):平均比特率,尽量保持输出视频的平均码率稳定,但允许短期内的码率波动,适用于需要在保持一定画质的情况下尽量减少整体码率的场景。
|
21780
|
+
# CBR(Constant Bit Rate):恒定比特率,指视频编码时输出的码率保持恒定不变,不考虑画面复杂度的变化,适用于对网络带宽要求较为严格的场景,如直播等。
|
21781
|
+
# VCRF(Constant Rate Factor):恒定质量因子,通过设定一个质量因子来控制视频质量,实现视频的恒定质量编码,码率会根据内容的复杂度自动调整,适用于希望保持一定画质的场景。
|
21782
|
+
# 默认选择 VBR
|
21783
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21784
|
+
# @type Mode: String
|
21785
|
+
# @param Sar: 显示高宽比,可选值:[1:1,2:1,default]
|
21786
|
+
# 默认值:default
|
21787
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21788
|
+
# @type Sar: String
|
21789
|
+
# @param NoScenecut: 自适应I帧决策,开启后,媒体处理将自动识别视频中不同场景之间的过渡点(通常是视觉上显著不同的帧,比如从一个镜头切换到另一个镜头),在这些点自适应插入关键帧(I帧),从而提高视频的随机访问性和编码效率。可选值:
|
21790
|
+
# 0:关闭自适应I帧决策
|
21791
|
+
# 1:使用自适应I帧决策
|
21792
|
+
# 默认值:0
|
21793
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21794
|
+
# @type NoScenecut: Integer
|
21795
|
+
# @param BitDepth: 比特位:支持8/10,默认为8
|
21796
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21797
|
+
# @type BitDepth: Integer
|
21798
|
+
# @param RawPts: 保持原始时间戳:可选值:
|
21799
|
+
# 0:表示关闭
|
21800
|
+
# 1:表示打开
|
21801
|
+
# 默认是关闭
|
21802
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21803
|
+
# @type RawPts: Integer
|
21804
|
+
# @param Compress: 按比例压缩码率,开启后,将根据比例来调整输出视频的码率。填写压缩率后,系统会根据视频源码率自动计算目标输出码率。压缩率范围0-100,可选值:[0-100]和-1
|
21805
|
+
# 注意:-1表示修改为自动
|
21806
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21807
|
+
# @type Compress: Integer
|
21808
|
+
# @param SegmentSpecificInfo: 切片特殊配置
|
21809
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21810
|
+
# @type SegmentSpecificInfo: :class:`Tencentcloud::Mps.v20190612.models.SegmentSpecificInfo`
|
21348
21811
|
|
21349
|
-
attr_accessor :Codec, :Fps, :Bitrate, :ResolutionAdaptive, :Width, :Height, :Gop, :FillType, :Vcrf, :ContentAdaptStream, :SegmentType, :FpsDenominator, :Stereo3dType
|
21812
|
+
attr_accessor :Codec, :Fps, :Bitrate, :ResolutionAdaptive, :Width, :Height, :Gop, :GopUnit, :FillType, :Vcrf, :ContentAdaptStream, :HlsTime, :SegmentType, :FpsDenominator, :Stereo3dType, :VideoProfile, :VideoLevel, :Bframes, :Mode, :Sar, :NoScenecut, :BitDepth, :RawPts, :Compress, :SegmentSpecificInfo
|
21350
21813
|
|
21351
|
-
def initialize(codec=nil, fps=nil, bitrate=nil, resolutionadaptive=nil, width=nil, height=nil, gop=nil, filltype=nil, vcrf=nil, contentadaptstream=nil, segmenttype=nil, fpsdenominator=nil, stereo3dtype=nil)
|
21814
|
+
def initialize(codec=nil, fps=nil, bitrate=nil, resolutionadaptive=nil, width=nil, height=nil, gop=nil, gopunit=nil, filltype=nil, vcrf=nil, contentadaptstream=nil, hlstime=nil, segmenttype=nil, fpsdenominator=nil, stereo3dtype=nil, videoprofile=nil, videolevel=nil, bframes=nil, mode=nil, sar=nil, noscenecut=nil, bitdepth=nil, rawpts=nil, compress=nil, segmentspecificinfo=nil)
|
21352
21815
|
@Codec = codec
|
21353
21816
|
@Fps = fps
|
21354
21817
|
@Bitrate = bitrate
|
@@ -21356,12 +21819,24 @@ module TencentCloud
|
|
21356
21819
|
@Width = width
|
21357
21820
|
@Height = height
|
21358
21821
|
@Gop = gop
|
21822
|
+
@GopUnit = gopunit
|
21359
21823
|
@FillType = filltype
|
21360
21824
|
@Vcrf = vcrf
|
21361
21825
|
@ContentAdaptStream = contentadaptstream
|
21826
|
+
@HlsTime = hlstime
|
21362
21827
|
@SegmentType = segmenttype
|
21363
21828
|
@FpsDenominator = fpsdenominator
|
21364
21829
|
@Stereo3dType = stereo3dtype
|
21830
|
+
@VideoProfile = videoprofile
|
21831
|
+
@VideoLevel = videolevel
|
21832
|
+
@Bframes = bframes
|
21833
|
+
@Mode = mode
|
21834
|
+
@Sar = sar
|
21835
|
+
@NoScenecut = noscenecut
|
21836
|
+
@BitDepth = bitdepth
|
21837
|
+
@RawPts = rawpts
|
21838
|
+
@Compress = compress
|
21839
|
+
@SegmentSpecificInfo = segmentspecificinfo
|
21365
21840
|
end
|
21366
21841
|
|
21367
21842
|
def deserialize(params)
|
@@ -21372,12 +21847,27 @@ module TencentCloud
|
|
21372
21847
|
@Width = params['Width']
|
21373
21848
|
@Height = params['Height']
|
21374
21849
|
@Gop = params['Gop']
|
21850
|
+
@GopUnit = params['GopUnit']
|
21375
21851
|
@FillType = params['FillType']
|
21376
21852
|
@Vcrf = params['Vcrf']
|
21377
21853
|
@ContentAdaptStream = params['ContentAdaptStream']
|
21854
|
+
@HlsTime = params['HlsTime']
|
21378
21855
|
@SegmentType = params['SegmentType']
|
21379
21856
|
@FpsDenominator = params['FpsDenominator']
|
21380
21857
|
@Stereo3dType = params['Stereo3dType']
|
21858
|
+
@VideoProfile = params['VideoProfile']
|
21859
|
+
@VideoLevel = params['VideoLevel']
|
21860
|
+
@Bframes = params['Bframes']
|
21861
|
+
@Mode = params['Mode']
|
21862
|
+
@Sar = params['Sar']
|
21863
|
+
@NoScenecut = params['NoScenecut']
|
21864
|
+
@BitDepth = params['BitDepth']
|
21865
|
+
@RawPts = params['RawPts']
|
21866
|
+
@Compress = params['Compress']
|
21867
|
+
unless params['SegmentSpecificInfo'].nil?
|
21868
|
+
@SegmentSpecificInfo = SegmentSpecificInfo.new
|
21869
|
+
@SegmentSpecificInfo.deserialize(params['SegmentSpecificInfo'])
|
21870
|
+
end
|
21381
21871
|
end
|
21382
21872
|
end
|
21383
21873
|
|
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.
|
4
|
+
version: 3.0.924
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|