tencentcloud-sdk-cme 1.0.203 → 1.0.204

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: 4ab74f41371b6e7fb0aaaba97ba728191f8e999a
4
- data.tar.gz: 9298aa4caf374ffca3f6b29f070008b95adb8d8c
3
+ metadata.gz: 78f41108d65a578e7308d16fdd870fe0f84ca177
4
+ data.tar.gz: cc30d49bfe65cfe165ad9597ea39a9c69e119426
5
5
  SHA512:
6
- metadata.gz: 1a39878a80561b16919a126b0ddab8425277d8bea16c8fca2821a6c8797ac55dc092a512a03d19b6db0cd2a1d06eea1eea81b7b369ae11ed77538b6238ea1b19
7
- data.tar.gz: ea9ba9d143674fc69e0b734f499040f22c5bc849b424c3f42bd1821d7be72dca6b450b0f00b6dbdb138e3c49323a96e3554984a10dfc77282755a40a83ac03a6
6
+ metadata.gz: 56bfdbdf7d26c1e9b0eccb2ff6cfbef2e2bb489594a5d5836f8fdf7b0f78ffacd3102eafe7bdb2b66e6fb95d5783c9b34ccbcc711fb2e371116c698b8f0144dd
7
+ data.tar.gz: fb3f68692d6db2cfd8d3dc4de556e8fe65a359b67ccac6ef70b106ac2dc8e5887565ee6f926edff585808bfcb4b90101da5a6e09968078e6b4c65ebc1642d816
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.203
1
+ 1.0.204
@@ -175,6 +175,30 @@ module TencentCloud
175
175
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
176
176
  end
177
177
 
178
+ # 指定导出的参数,创建一个视频编码配置
179
+
180
+ # @param request: Request instance for CreateVideoEncodingPreset.
181
+ # @type request: :class:`Tencentcloud::cme::V20191029::CreateVideoEncodingPresetRequest`
182
+ # @rtype: :class:`Tencentcloud::cme::V20191029::CreateVideoEncodingPresetResponse`
183
+ def CreateVideoEncodingPreset(request)
184
+ body = send_request('CreateVideoEncodingPreset', request.serialize)
185
+ response = JSON.parse(body)
186
+ if response['Response'].key?('Error') == false
187
+ model = CreateVideoEncodingPresetResponse.new
188
+ model.deserialize(response['Response'])
189
+ model
190
+ else
191
+ code = response['Response']['Error']['Code']
192
+ message = response['Response']['Error']['Message']
193
+ reqid = response['Response']['RequestId']
194
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
195
+ end
196
+ rescue TencentCloud::Common::TencentCloudSDKException => e
197
+ raise e
198
+ rescue StandardError => e
199
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
200
+ end
201
+
178
202
  # 删除分类信息,删除时检验下述限制:
179
203
  # <li>分类路径必须存在;</li>
180
204
  # <li>分类下没有绑定素材。</li>
@@ -323,6 +347,30 @@ module TencentCloud
323
347
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
324
348
  end
325
349
 
350
+ # 删除指定 ID 的视频编码配置
351
+
352
+ # @param request: Request instance for DeleteVideoEncodingPreset.
353
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteVideoEncodingPresetRequest`
354
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteVideoEncodingPresetResponse`
355
+ def DeleteVideoEncodingPreset(request)
356
+ body = send_request('DeleteVideoEncodingPreset', request.serialize)
357
+ response = JSON.parse(body)
358
+ if response['Response'].key?('Error') == false
359
+ model = DeleteVideoEncodingPresetResponse.new
360
+ model.deserialize(response['Response'])
361
+ model
362
+ else
363
+ code = response['Response']['Error']['Code']
364
+ message = response['Response']['Error']['Message']
365
+ reqid = response['Response']['RequestId']
366
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
367
+ end
368
+ rescue TencentCloud::Common::TencentCloudSDKException => e
369
+ raise e
370
+ rescue StandardError => e
371
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
372
+ end
373
+
326
374
  # 获取用户账号信息。
327
375
 
328
376
  # @param request: Request instance for DescribeAccounts.
@@ -639,6 +687,30 @@ module TencentCloud
639
687
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
640
688
  end
641
689
 
690
+ # 查询视频编码配置信息。
691
+
692
+ # @param request: Request instance for DescribeVideoEncodingPresets.
693
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeVideoEncodingPresetsRequest`
694
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeVideoEncodingPresetsResponse`
695
+ def DescribeVideoEncodingPresets(request)
696
+ body = send_request('DescribeVideoEncodingPresets', request.serialize)
697
+ response = JSON.parse(body)
698
+ if response['Response'].key?('Error') == false
699
+ model = DescribeVideoEncodingPresetsResponse.new
700
+ model.deserialize(response['Response'])
701
+ model
702
+ else
703
+ code = response['Response']['Error']['Code']
704
+ message = response['Response']['Error']['Message']
705
+ reqid = response['Response']['RequestId']
706
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
707
+ end
708
+ rescue TencentCloud::Common::TencentCloudSDKException => e
709
+ raise e
710
+ rescue StandardError => e
711
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
712
+ end
713
+
642
714
  # 使用视频合成协议导出视频,支持导出到CME云媒资和VOD云媒资。
643
715
 
644
716
  # @param request: Request instance for ExportVideoByEditorTrackData.
@@ -1016,6 +1088,30 @@ module TencentCloud
1016
1088
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1017
1089
  end
1018
1090
 
1091
+ # 修改视频编码配置信息。
1092
+
1093
+ # @param request: Request instance for ModifyVideoEncodingPreset.
1094
+ # @type request: :class:`Tencentcloud::cme::V20191029::ModifyVideoEncodingPresetRequest`
1095
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ModifyVideoEncodingPresetResponse`
1096
+ def ModifyVideoEncodingPreset(request)
1097
+ body = send_request('ModifyVideoEncodingPreset', request.serialize)
1098
+ response = JSON.parse(body)
1099
+ if response['Response'].key?('Error') == false
1100
+ model = ModifyVideoEncodingPresetResponse.new
1101
+ model.deserialize(response['Response'])
1102
+ model
1103
+ else
1104
+ code = response['Response']['Error']['Code']
1105
+ message = response['Response']['Error']['Message']
1106
+ reqid = response['Response']['RequestId']
1107
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1108
+ end
1109
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1110
+ raise e
1111
+ rescue StandardError => e
1112
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1113
+ end
1114
+
1019
1115
  # 移动某一个分类到另外一个分类下,也可用于分类重命名。
1020
1116
  # 如果 SourceClassPath = /素材/视频/NBA,DestinationClassPath = /素材/视频/篮球
1021
1117
  # <li>当 DestinationClassPath 不存在时候,操作结果为重命名 ClassPath;</li>
@@ -733,6 +733,81 @@ module TencentCloud
733
733
  end
734
734
  end
735
735
 
736
+ # CreateVideoEncodingPreset请求参数结构体
737
+ class CreateVideoEncodingPresetRequest < TencentCloud::Common::AbstractModel
738
+ # @param Platform: 平台名称,指定访问的平台。
739
+ # @type Platform: String
740
+ # @param Name: 配置名,可用来简单描述该配置的作用。
741
+ # @type Name: String
742
+ # @param Container: 封装格式,可选值:
743
+ # <li>mp4 ;</li>
744
+ # <li>mov 。</li>
745
+ # 默认值:mp4。
746
+ # @type Container: String
747
+ # @param RemoveVideo: 是否去除视频数据,可选值:
748
+ # <li>0:保留;</li>
749
+ # <li>1:去除。</li>
750
+ # 默认值:0。
751
+ # @type RemoveVideo: Integer
752
+ # @param RemoveAudio: 是否去除音频数据,可选值:
753
+ # <li>0:保留;</li>
754
+ # <li>1:去除。</li>
755
+ # 默认值:0。
756
+ # @type RemoveAudio: Integer
757
+ # @param VideoSetting: 编码配置的视频设置。默认值参考VideoEncodingPresetVideoSetting 定义。
758
+ # @type VideoSetting: :class:`Tencentcloud::Cme.v20191029.models.VideoEncodingPresetVideoSetting`
759
+ # @param AudioSetting: 编码配置的音频设置。默认值参考VideoEncodingPresetAudioSetting 定义。
760
+ # @type AudioSetting: :class:`Tencentcloud::Cme.v20191029.models.VideoEncodingPresetAudioSetting`
761
+
762
+ attr_accessor :Platform, :Name, :Container, :RemoveVideo, :RemoveAudio, :VideoSetting, :AudioSetting
763
+
764
+ def initialize(platform=nil, name=nil, container=nil, removevideo=nil, removeaudio=nil, videosetting=nil, audiosetting=nil)
765
+ @Platform = platform
766
+ @Name = name
767
+ @Container = container
768
+ @RemoveVideo = removevideo
769
+ @RemoveAudio = removeaudio
770
+ @VideoSetting = videosetting
771
+ @AudioSetting = audiosetting
772
+ end
773
+
774
+ def deserialize(params)
775
+ @Platform = params['Platform']
776
+ @Name = params['Name']
777
+ @Container = params['Container']
778
+ @RemoveVideo = params['RemoveVideo']
779
+ @RemoveAudio = params['RemoveAudio']
780
+ unless params['VideoSetting'].nil?
781
+ @VideoSetting = VideoEncodingPresetVideoSetting.new
782
+ @VideoSetting.deserialize(params['VideoSetting'])
783
+ end
784
+ unless params['AudioSetting'].nil?
785
+ @AudioSetting = VideoEncodingPresetAudioSetting.new
786
+ @AudioSetting.deserialize(params['AudioSetting'])
787
+ end
788
+ end
789
+ end
790
+
791
+ # CreateVideoEncodingPreset返回参数结构体
792
+ class CreateVideoEncodingPresetResponse < TencentCloud::Common::AbstractModel
793
+ # @param Id: 模板 ID。
794
+ # @type Id: Integer
795
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
796
+ # @type RequestId: String
797
+
798
+ attr_accessor :Id, :RequestId
799
+
800
+ def initialize(id=nil, requestid=nil)
801
+ @Id = id
802
+ @RequestId = requestid
803
+ end
804
+
805
+ def deserialize(params)
806
+ @Id = params['Id']
807
+ @RequestId = params['RequestId']
808
+ end
809
+ end
810
+
736
811
  # DeleteClass请求参数结构体
737
812
  class DeleteClassRequest < TencentCloud::Common::AbstractModel
738
813
  # @param Platform: 平台名称,指定访问的平台。
@@ -980,6 +1055,42 @@ module TencentCloud
980
1055
  end
981
1056
  end
982
1057
 
1058
+ # DeleteVideoEncodingPreset请求参数结构体
1059
+ class DeleteVideoEncodingPresetRequest < TencentCloud::Common::AbstractModel
1060
+ # @param Platform: 平台名称,指定访问的平台。
1061
+ # @type Platform: String
1062
+ # @param Id: 要删除的视频编码配置 ID。
1063
+ # @type Id: Integer
1064
+
1065
+ attr_accessor :Platform, :Id
1066
+
1067
+ def initialize(platform=nil, id=nil)
1068
+ @Platform = platform
1069
+ @Id = id
1070
+ end
1071
+
1072
+ def deserialize(params)
1073
+ @Platform = params['Platform']
1074
+ @Id = params['Id']
1075
+ end
1076
+ end
1077
+
1078
+ # DeleteVideoEncodingPreset返回参数结构体
1079
+ class DeleteVideoEncodingPresetResponse < TencentCloud::Common::AbstractModel
1080
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1081
+ # @type RequestId: String
1082
+
1083
+ attr_accessor :RequestId
1084
+
1085
+ def initialize(requestid=nil)
1086
+ @RequestId = requestid
1087
+ end
1088
+
1089
+ def deserialize(params)
1090
+ @RequestId = params['RequestId']
1091
+ end
1092
+ end
1093
+
983
1094
  # DescribeAccounts请求参数结构体
984
1095
  class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
985
1096
  # @param Platform: 平台唯一标识。
@@ -1099,7 +1210,7 @@ module TencentCloud
1099
1210
  # @type Platform: String
1100
1211
  # @param MemberId: 团队成员 ID。
1101
1212
  # @type MemberId: String
1102
- # @param Offset: 分页偏移量,默认值:0
1213
+ # @param Offset: 分页偏移量,默认值:0
1103
1214
  # @type Offset: Integer
1104
1215
  # @param Limit: 返回记录条数,默认值:30,最大值:30。
1105
1216
  # @type Limit: Integer
@@ -1125,7 +1236,7 @@ module TencentCloud
1125
1236
  class DescribeJoinTeamsResponse < TencentCloud::Common::AbstractModel
1126
1237
  # @param TotalCount: 符合条件的记录总数。
1127
1238
  # @type TotalCount: Integer
1128
- # @param TeamSet: 团队列表
1239
+ # @param TeamSet: 团队列表。
1129
1240
  # @type TeamSet: Array
1130
1241
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1131
1242
  # @type RequestId: String
@@ -1821,6 +1932,65 @@ module TencentCloud
1821
1932
  end
1822
1933
  end
1823
1934
 
1935
+ # DescribeVideoEncodingPresets请求参数结构体
1936
+ class DescribeVideoEncodingPresetsRequest < TencentCloud::Common::AbstractModel
1937
+ # @param Platform: 平台名称,指定访问的平台。
1938
+ # @type Platform: String
1939
+ # @param Ids: 要查询的配置 ID 列表。填写该参数则按照配置 ID 进行查询。
1940
+ # @type Ids: Array
1941
+ # @param Limit: 分页大小,默认20。最大值50。
1942
+ # @type Limit: Integer
1943
+ # @param Offset: 分页起始,默认0。
1944
+ # @type Offset: Integer
1945
+
1946
+ attr_accessor :Platform, :Ids, :Limit, :Offset
1947
+
1948
+ def initialize(platform=nil, ids=nil, limit=nil, offset=nil)
1949
+ @Platform = platform
1950
+ @Ids = ids
1951
+ @Limit = limit
1952
+ @Offset = offset
1953
+ end
1954
+
1955
+ def deserialize(params)
1956
+ @Platform = params['Platform']
1957
+ @Ids = params['Ids']
1958
+ @Limit = params['Limit']
1959
+ @Offset = params['Offset']
1960
+ end
1961
+ end
1962
+
1963
+ # DescribeVideoEncodingPresets返回参数结构体
1964
+ class DescribeVideoEncodingPresetsResponse < TencentCloud::Common::AbstractModel
1965
+ # @param TotalCount: 符合条件的编码配置总个数。
1966
+ # @type TotalCount: Integer
1967
+ # @param VideoEncodingPresetSet: 视频编码配置信息。
1968
+ # @type VideoEncodingPresetSet: Array
1969
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1970
+ # @type RequestId: String
1971
+
1972
+ attr_accessor :TotalCount, :VideoEncodingPresetSet, :RequestId
1973
+
1974
+ def initialize(totalcount=nil, videoencodingpresetset=nil, requestid=nil)
1975
+ @TotalCount = totalcount
1976
+ @VideoEncodingPresetSet = videoencodingpresetset
1977
+ @RequestId = requestid
1978
+ end
1979
+
1980
+ def deserialize(params)
1981
+ @TotalCount = params['TotalCount']
1982
+ unless params['VideoEncodingPresetSet'].nil?
1983
+ @VideoEncodingPresetSet = []
1984
+ params['VideoEncodingPresetSet'].each do |i|
1985
+ videoencodingpreset_tmp = VideoEncodingPreset.new
1986
+ videoencodingpreset_tmp.deserialize(i)
1987
+ @VideoEncodingPresetSet << videoencodingpreset_tmp
1988
+ end
1989
+ end
1990
+ @RequestId = params['RequestId']
1991
+ end
1992
+ end
1993
+
1824
1994
  # 空的轨道片段,用来进行时间轴的占位。如需要两个音频片段之间有一段时间的静音,可以用 EmptyTrackItem 来进行占位。
1825
1995
  class EmptyTrackItem < TencentCloud::Common::AbstractModel
1826
1996
  # @param Duration: 持续时间,单位为秒。
@@ -1895,7 +2065,7 @@ module TencentCloud
1895
2065
  class ExportVideoByEditorTrackDataRequest < TencentCloud::Common::AbstractModel
1896
2066
  # @param Platform: 平台名称,指定访问的平台。
1897
2067
  # @type Platform: String
1898
- # @param Definition: 导出模板 Id,目前不支持自定义创建,只支持下面的预置模板 Id
2068
+ # @param Definition: 导出视频编码配置 Id,推荐优先使用下面的预置模板 Id,有其他需求可通过接口定制视频编码配置。
1899
2069
  # <li>10:分辨率为 480P,输出视频格式为 MP4;</li>
1900
2070
  # <li>11:分辨率为 720P,输出视频格式为 MP4;</li>
1901
2071
  # <li>12:分辨率为 1080P,输出视频格式为 MP4。</li>
@@ -1906,7 +2076,9 @@ module TencentCloud
1906
2076
  # @type ExportDestination: String
1907
2077
  # @param TrackData: 在线编辑轨道数据。轨道数据相关介绍,请查看 [视频合成协议](https://cloud.tencent.com/document/product/1156/51225)。
1908
2078
  # @type TrackData: String
1909
- # @param AspectRatio: 轨道数据对应的画布宽高比。
2079
+ # @param AspectRatio: 轨道数据对应的画布宽高比,配合视频编码配置中的视频短边尺寸,可决定导出画面的尺寸。例:
2080
+ # <li>如果 AspectRatio 取值 16:9,视频编码配置选为12(短边1080),则导出尺寸为 1920 * 1080;</li>
2081
+ # <li>如果 AspectRatio 取值 9:16,视频编码配置选为11(短边720),则导出尺寸为 720 *1280。</li>
1910
2082
  # @type AspectRatio: String
1911
2083
  # @param CoverData: 视频封面图片文件(如 jpeg, png 等)进行 Base64 编码后的字符串,仅支持 gif、jpeg、png 三种图片格式,原图片文件不能超过2 M大 小。
1912
2084
  # @type CoverData: String
@@ -2137,7 +2309,7 @@ module TencentCloud
2137
2309
  # @type Platform: String
2138
2310
  # @param ProjectId: 项目 Id。
2139
2311
  # @type ProjectId: String
2140
- # @param Definition: 导出模板 Id,目前不支持自定义创建,只支持下面的预置模板 Id。
2312
+ # @param Definition: 视频编码配置 ID,支持自定义创建,推荐优先使用系统预置的导出配置。
2141
2313
  # <li>10:分辨率为 480P,输出视频格式为 MP4;</li>
2142
2314
  # <li>11:分辨率为 720P,输出视频格式为 MP4;</li>
2143
2315
  # <li>12:分辨率为 1080P,输出视频格式为 MP4。</li>
@@ -2152,12 +2324,14 @@ module TencentCloud
2152
2324
  # @type CMEExportInfo: :class:`Tencentcloud::Cme.v20191029.models.CMEExportInfo`
2153
2325
  # @param VODExportInfo: 导出的云点播媒资信息。当导出目标为 VOD 时必填。
2154
2326
  # @type VODExportInfo: :class:`Tencentcloud::Cme.v20191029.models.VODExportInfo`
2327
+ # @param ExportExtensionArgs: 视频导出扩展参数。可以覆盖导出模板中的参数,灵活的指定导出规格及参数。
2328
+ # @type ExportExtensionArgs: :class:`Tencentcloud::Cme.v20191029.models.VideoExportExtensionArgs`
2155
2329
  # @param Operator: 操作者。填写用户的 Id,用于标识调用者及校验项目导出权限。
2156
2330
  # @type Operator: String
2157
2331
 
2158
- attr_accessor :Platform, :ProjectId, :Definition, :ExportDestination, :CoverData, :CMEExportInfo, :VODExportInfo, :Operator
2332
+ attr_accessor :Platform, :ProjectId, :Definition, :ExportDestination, :CoverData, :CMEExportInfo, :VODExportInfo, :ExportExtensionArgs, :Operator
2159
2333
 
2160
- def initialize(platform=nil, projectid=nil, definition=nil, exportdestination=nil, coverdata=nil, cmeexportinfo=nil, vodexportinfo=nil, operator=nil)
2334
+ def initialize(platform=nil, projectid=nil, definition=nil, exportdestination=nil, coverdata=nil, cmeexportinfo=nil, vodexportinfo=nil, exportextensionargs=nil, operator=nil)
2161
2335
  @Platform = platform
2162
2336
  @ProjectId = projectid
2163
2337
  @Definition = definition
@@ -2165,6 +2339,7 @@ module TencentCloud
2165
2339
  @CoverData = coverdata
2166
2340
  @CMEExportInfo = cmeexportinfo
2167
2341
  @VODExportInfo = vodexportinfo
2342
+ @ExportExtensionArgs = exportextensionargs
2168
2343
  @Operator = operator
2169
2344
  end
2170
2345
 
@@ -2182,6 +2357,10 @@ module TencentCloud
2182
2357
  @VODExportInfo = VODExportInfo.new
2183
2358
  @VODExportInfo.deserialize(params['VODExportInfo'])
2184
2359
  end
2360
+ unless params['ExportExtensionArgs'].nil?
2361
+ @ExportExtensionArgs = VideoExportExtensionArgs.new
2362
+ @ExportExtensionArgs.deserialize(params['ExportExtensionArgs'])
2363
+ end
2185
2364
  @Operator = params['Operator']
2186
2365
  end
2187
2366
  end
@@ -3634,6 +3813,74 @@ module TencentCloud
3634
3813
  end
3635
3814
  end
3636
3815
 
3816
+ # ModifyVideoEncodingPreset请求参数结构体
3817
+ class ModifyVideoEncodingPresetRequest < TencentCloud::Common::AbstractModel
3818
+ # @param Platform: 平台名称,指定访问的平台。
3819
+ # @type Platform: String
3820
+ # @param Id: 配置 ID。
3821
+ # @type Id: Integer
3822
+ # @param Name: 更改后的视频编码配置名,不填则不修改。
3823
+ # @type Name: String
3824
+ # @param RemoveVideo: 是否去除视频数据,可选值:
3825
+ # <li>0:保留;</li>
3826
+ # <li>1:去除。</li>
3827
+ # 默认值:0。
3828
+ # @type RemoveVideo: Integer
3829
+ # @param RemoveAudio: 是否去除音频数据,可选值:
3830
+ # <li>0:保留;</li>
3831
+ # <li>1:去除。</li>
3832
+ # 默认值:0。
3833
+ # @type RemoveAudio: Integer
3834
+ # @param VideoSetting: 更改后的编码配置的视频设置。
3835
+ # @type VideoSetting: :class:`Tencentcloud::Cme.v20191029.models.VideoEncodingPresetVideoSettingForUpdate`
3836
+ # @param AudioSetting: 更改后的编码配置的音频设置。
3837
+ # @type AudioSetting: :class:`Tencentcloud::Cme.v20191029.models.VideoEncodingPresetAudioSettingForUpdate`
3838
+
3839
+ attr_accessor :Platform, :Id, :Name, :RemoveVideo, :RemoveAudio, :VideoSetting, :AudioSetting
3840
+
3841
+ def initialize(platform=nil, id=nil, name=nil, removevideo=nil, removeaudio=nil, videosetting=nil, audiosetting=nil)
3842
+ @Platform = platform
3843
+ @Id = id
3844
+ @Name = name
3845
+ @RemoveVideo = removevideo
3846
+ @RemoveAudio = removeaudio
3847
+ @VideoSetting = videosetting
3848
+ @AudioSetting = audiosetting
3849
+ end
3850
+
3851
+ def deserialize(params)
3852
+ @Platform = params['Platform']
3853
+ @Id = params['Id']
3854
+ @Name = params['Name']
3855
+ @RemoveVideo = params['RemoveVideo']
3856
+ @RemoveAudio = params['RemoveAudio']
3857
+ unless params['VideoSetting'].nil?
3858
+ @VideoSetting = VideoEncodingPresetVideoSettingForUpdate.new
3859
+ @VideoSetting.deserialize(params['VideoSetting'])
3860
+ end
3861
+ unless params['AudioSetting'].nil?
3862
+ @AudioSetting = VideoEncodingPresetAudioSettingForUpdate.new
3863
+ @AudioSetting.deserialize(params['AudioSetting'])
3864
+ end
3865
+ end
3866
+ end
3867
+
3868
+ # ModifyVideoEncodingPreset返回参数结构体
3869
+ class ModifyVideoEncodingPresetResponse < TencentCloud::Common::AbstractModel
3870
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3871
+ # @type RequestId: String
3872
+
3873
+ attr_accessor :RequestId
3874
+
3875
+ def initialize(requestid=nil)
3876
+ @RequestId = requestid
3877
+ end
3878
+
3879
+ def deserialize(params)
3880
+ @RequestId = params['RequestId']
3881
+ end
3882
+ end
3883
+
3637
3884
  # MoveClass请求参数结构体
3638
3885
  class MoveClassRequest < TencentCloud::Common::AbstractModel
3639
3886
  # @param Platform: 平台名称,指定访问的平台。
@@ -4985,6 +5232,248 @@ module TencentCloud
4985
5232
  end
4986
5233
  end
4987
5234
 
5235
+ # 视频编码配置
5236
+ class VideoEncodingPreset < TencentCloud::Common::AbstractModel
5237
+ # @param Id: 配置 ID。
5238
+ # @type Id: Integer
5239
+ # @param Name: 配置名。
5240
+ # @type Name: String
5241
+ # @param Container: 封装格式,可选值:
5242
+ # <li>mp4 ;</li>
5243
+ # <li>mov 。</li>
5244
+ # @type Container: String
5245
+ # @param RemoveVideo: 是否去除视频数据,可选值:
5246
+ # <li>0:保留;</li>
5247
+ # <li>1:去除。</li>
5248
+ # 默认值:0。
5249
+ # @type RemoveVideo: Integer
5250
+ # @param RemoveAudio: 是否去除音频数据,可选值:
5251
+ # <li>0:保留;</li>
5252
+ # <li>1:去除。</li>
5253
+ # 默认值:0。
5254
+ # @type RemoveAudio: Integer
5255
+ # @param VideoSetting: 视频编码配置中的视频设置。
5256
+ # @type VideoSetting: :class:`Tencentcloud::Cme.v20191029.models.VideoEncodingPresetVideoSetting`
5257
+ # @param AudioSetting: 视频编码配置中的音频设置。
5258
+ # @type AudioSetting: :class:`Tencentcloud::Cme.v20191029.models.VideoEncodingPresetAudioSetting`
5259
+
5260
+ attr_accessor :Id, :Name, :Container, :RemoveVideo, :RemoveAudio, :VideoSetting, :AudioSetting
5261
+
5262
+ def initialize(id=nil, name=nil, container=nil, removevideo=nil, removeaudio=nil, videosetting=nil, audiosetting=nil)
5263
+ @Id = id
5264
+ @Name = name
5265
+ @Container = container
5266
+ @RemoveVideo = removevideo
5267
+ @RemoveAudio = removeaudio
5268
+ @VideoSetting = videosetting
5269
+ @AudioSetting = audiosetting
5270
+ end
5271
+
5272
+ def deserialize(params)
5273
+ @Id = params['Id']
5274
+ @Name = params['Name']
5275
+ @Container = params['Container']
5276
+ @RemoveVideo = params['RemoveVideo']
5277
+ @RemoveAudio = params['RemoveAudio']
5278
+ unless params['VideoSetting'].nil?
5279
+ @VideoSetting = VideoEncodingPresetVideoSetting.new
5280
+ @VideoSetting.deserialize(params['VideoSetting'])
5281
+ end
5282
+ unless params['AudioSetting'].nil?
5283
+ @AudioSetting = VideoEncodingPresetAudioSetting.new
5284
+ @AudioSetting.deserialize(params['AudioSetting'])
5285
+ end
5286
+ end
5287
+ end
5288
+
5289
+ # 视频编码配置中的音频设置
5290
+ class VideoEncodingPresetAudioSetting < TencentCloud::Common::AbstractModel
5291
+ # @param Codec: 音频流的编码格式,可选值:
5292
+ # AAC:AAC 编码。
5293
+
5294
+ # 默认值:AAC。
5295
+ # @type Codec: String
5296
+ # @param Bitrate: 音频码率,单位:bps。
5297
+ # 默认值:64K。
5298
+ # @type Bitrate: Integer
5299
+ # @param Channels: 音频声道数,可选值:
5300
+ # <li>1:单声道;</li>
5301
+ # <li>2:双声道。</li>
5302
+ # 默认值:2。
5303
+ # @type Channels: Integer
5304
+ # @param SampleRate: 音频流的采样率,仅支持 16000; 32000; 44100; 48000。单位:Hz。
5305
+ # 默认值:16000。
5306
+ # @type SampleRate: Integer
5307
+
5308
+ attr_accessor :Codec, :Bitrate, :Channels, :SampleRate
5309
+
5310
+ def initialize(codec=nil, bitrate=nil, channels=nil, samplerate=nil)
5311
+ @Codec = codec
5312
+ @Bitrate = bitrate
5313
+ @Channels = channels
5314
+ @SampleRate = samplerate
5315
+ end
5316
+
5317
+ def deserialize(params)
5318
+ @Codec = params['Codec']
5319
+ @Bitrate = params['Bitrate']
5320
+ @Channels = params['Channels']
5321
+ @SampleRate = params['SampleRate']
5322
+ end
5323
+ end
5324
+
5325
+ # 视频编码配置中的音频设置更新信息
5326
+ class VideoEncodingPresetAudioSettingForUpdate < TencentCloud::Common::AbstractModel
5327
+ # @param Bitrate: 音频码率,单位:bps。
5328
+ # 不填则不修改。
5329
+ # @type Bitrate: String
5330
+ # @param Channels: 音频声道数,可选值:
5331
+ # <li>1:单声道;</li>
5332
+ # <li>2:双声道。</li>
5333
+ # 不填则不修改。
5334
+ # @type Channels: Integer
5335
+ # @param SampleRate: 音频流的采样率,目前仅支持: 16000; 32000; 44100; 48000。单位:Hz。
5336
+ # 不填则不修改。
5337
+ # @type SampleRate: Integer
5338
+
5339
+ attr_accessor :Bitrate, :Channels, :SampleRate
5340
+
5341
+ def initialize(bitrate=nil, channels=nil, samplerate=nil)
5342
+ @Bitrate = bitrate
5343
+ @Channels = channels
5344
+ @SampleRate = samplerate
5345
+ end
5346
+
5347
+ def deserialize(params)
5348
+ @Bitrate = params['Bitrate']
5349
+ @Channels = params['Channels']
5350
+ @SampleRate = params['SampleRate']
5351
+ end
5352
+ end
5353
+
5354
+ # 视频编码配置中的视频设置信息
5355
+ class VideoEncodingPresetVideoSetting < TencentCloud::Common::AbstractModel
5356
+ # @param Codec: 视频流的编码格式,可选值:
5357
+ # <li>H264:H.264 编码。</li>
5358
+ # @type Codec: String
5359
+ # @param ShortEdge: 视频短边尺寸,取值范围: [128, 4096],单位:px。
5360
+ # 视频最后的分辨率,根据短边尺寸和宽高比进行计算。
5361
+ # 例:如果项目的宽高比是 16:9 :
5362
+ # <li>短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。</li>
5363
+ # <li>短边尺寸为 720,则导出视频的分辨率为 1280 * 720。</li>
5364
+ # 如果项目的宽高比是 9:16 :
5365
+ # <li>短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。</li>
5366
+ # <li>短边尺寸为 720,则导出视频的分辨率为 720 * 1280。</li>
5367
+ # 默认值:1080。
5368
+ # @type ShortEdge: Integer
5369
+ # @param Bitrate: 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。
5370
+ # 默认值:0。
5371
+ # @type Bitrate: Integer
5372
+
5373
+ attr_accessor :Codec, :ShortEdge, :Bitrate
5374
+
5375
+ def initialize(codec=nil, shortedge=nil, bitrate=nil)
5376
+ @Codec = codec
5377
+ @ShortEdge = shortedge
5378
+ @Bitrate = bitrate
5379
+ end
5380
+
5381
+ def deserialize(params)
5382
+ @Codec = params['Codec']
5383
+ @ShortEdge = params['ShortEdge']
5384
+ @Bitrate = params['Bitrate']
5385
+ end
5386
+ end
5387
+
5388
+ # 视频编码配置的视频设置更新信息
5389
+ class VideoEncodingPresetVideoSettingForUpdate < TencentCloud::Common::AbstractModel
5390
+ # @param ShortEdge: 视频短边尺寸,取值范围: [128, 4096],单位:px。
5391
+ # 视频最后的分辨率,根据短边尺寸和宽高比进行计算。
5392
+ # 例:如果项目的宽高比是 16:9 :
5393
+ # <li>短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。</li>
5394
+ # <li>短边尺寸为 720,则导出视频的分辨率为 1280 * 720。</li>
5395
+ # 如果项目的宽高比是 9:16 :
5396
+ # <li>短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。</li>
5397
+ # <li>短边尺寸为 720,则导出视频的分辨率为 720 * 1280。</li>
5398
+ # 不填则不修改。
5399
+ # @type ShortEdge: Integer
5400
+ # @param Bitrate: 指定码率,单位 bps。当该参数为'0' 时则不强制限定码率。
5401
+ # 不填则不修改。
5402
+ # @type Bitrate: Integer
5403
+ # @param FrameRate: 指定帧率。单位 Hz。
5404
+ # 不填则不修改。
5405
+ # @type FrameRate: Float
5406
+
5407
+ attr_accessor :ShortEdge, :Bitrate, :FrameRate
5408
+
5409
+ def initialize(shortedge=nil, bitrate=nil, framerate=nil)
5410
+ @ShortEdge = shortedge
5411
+ @Bitrate = bitrate
5412
+ @FrameRate = framerate
5413
+ end
5414
+
5415
+ def deserialize(params)
5416
+ @ShortEdge = params['ShortEdge']
5417
+ @Bitrate = params['Bitrate']
5418
+ @FrameRate = params['FrameRate']
5419
+ end
5420
+ end
5421
+
5422
+ # 视频导出扩展参数
5423
+ class VideoExportExtensionArgs < TencentCloud::Common::AbstractModel
5424
+ # @param Container: 封装格式,可选值:
5425
+ # <li>mp4 </li>
5426
+ # <li>mov </li>
5427
+ # 不填则默认使用导出模板中的值。
5428
+ # @type Container: String
5429
+ # @param ShortEdge: 视频短边尺寸,取值范围: [128, 4096],单位:px。
5430
+ # 视频最后的分辨率,根据短边尺寸和宽高比进行计算。
5431
+ # 例如:项目的宽高比是 16:9 :
5432
+ # <li>短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。</li>
5433
+ # <li>短边尺寸为 720,则导出视频的分辨率为 1280 * 720</li>
5434
+ # 不填则默认使用导出模板中对的值。
5435
+ # @type ShortEdge: Integer
5436
+ # @param VideoBitrate: 指定码率,单位 bps。当该参数为 0 时则不强制限定码率。
5437
+ # 不填则默认使用导出模板中的值。
5438
+ # @type VideoBitrate: Integer
5439
+ # @param RemoveVideo: 是否去除视频数据,可选值:
5440
+ # <li>0:保留;</li>
5441
+ # <li>1:去除。</li>
5442
+ # 不填则默认使用导出模板中对的值。
5443
+ # @type RemoveVideo: Integer
5444
+ # @param RemoveAudio: 是否去除音频数据,可选值:
5445
+ # <li>0:保留;</li>
5446
+ # <li>1:去除。</li>
5447
+ # 不填则默认使用导出模板中对的值。
5448
+ # @type RemoveAudio: Integer
5449
+ # @param StartTime: 片段起始时间,单位:毫秒。
5450
+ # @type StartTime: Integer
5451
+ # @param EndTime: 片段结束时间,单位:毫秒。
5452
+ # @type EndTime: Integer
5453
+
5454
+ attr_accessor :Container, :ShortEdge, :VideoBitrate, :RemoveVideo, :RemoveAudio, :StartTime, :EndTime
5455
+
5456
+ def initialize(container=nil, shortedge=nil, videobitrate=nil, removevideo=nil, removeaudio=nil, starttime=nil, endtime=nil)
5457
+ @Container = container
5458
+ @ShortEdge = shortedge
5459
+ @VideoBitrate = videobitrate
5460
+ @RemoveVideo = removevideo
5461
+ @RemoveAudio = removeaudio
5462
+ @StartTime = starttime
5463
+ @EndTime = endtime
5464
+ end
5465
+
5466
+ def deserialize(params)
5467
+ @Container = params['Container']
5468
+ @ShortEdge = params['ShortEdge']
5469
+ @VideoBitrate = params['VideoBitrate']
5470
+ @RemoveVideo = params['RemoveVideo']
5471
+ @RemoveAudio = params['RemoveAudio']
5472
+ @StartTime = params['StartTime']
5473
+ @EndTime = params['EndTime']
5474
+ end
5475
+ end
5476
+
4988
5477
  # 视频素材信息
4989
5478
  class VideoMaterial < TencentCloud::Common::AbstractModel
4990
5479
  # @param MetaData: 素材元信息。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.203
4
+ version: 1.0.204
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-16 00:00:00.000000000 Z
11
+ date: 2021-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common