tencentcloud-sdk-vod 3.0.510 → 3.0.511

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f86974a4fa878baa299284f3b820c31f612bafb
4
- data.tar.gz: 54d12572694a665b75b5153ddb5bfb13a89e0ae2
3
+ metadata.gz: e2fec048c1c79b1e3fd0e78977a99f753f3bef58
4
+ data.tar.gz: 12d4f967b0e303f118f1069f98a134e7da7f691c
5
5
  SHA512:
6
- metadata.gz: e0150f86f299920ed72fe750d15fdfb02b3511b66b56f9151349768cc6e3b6f28ce0e88515c199c90024b3f85176b0808ebf0851b03692e76561b56e49c3ad97
7
- data.tar.gz: d8bceed47a1ef8ea98feff127dfeecfe610295affa6cc360161cd5d1e487a5b38f948520c01cde60cf1b2059dc59878005e0ebb4ea0ccf2e3431849150fa2a38
6
+ metadata.gz: 1d2c5ce704dcae9a4b4fa690689c367c33cf1b2dc2302a033bf48d366b75514385bf6a09d71c325e3212a2a8719b5e0806686681ee315055d00800e13762b1e6
7
+ data.tar.gz: 81c1c2b4b83f9b6fa5f894153f7ba606f8439d1d3b05f2e8ca337902bc6e4015607463d218ef3a2a336be3c6794b2c6e6b922c2713c1abac48efa086100c9483
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.510
1
+ 3.0.511
@@ -3404,6 +3404,30 @@ module TencentCloud
3404
3404
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3405
3405
  end
3406
3406
 
3407
+ # 发起音画质重生
3408
+
3409
+ # @param request: Request instance for RebuildMedia.
3410
+ # @type request: :class:`Tencentcloud::vod::V20180717::RebuildMediaRequest`
3411
+ # @rtype: :class:`Tencentcloud::vod::V20180717::RebuildMediaResponse`
3412
+ def RebuildMedia(request)
3413
+ body = send_request('RebuildMedia', request.serialize)
3414
+ response = JSON.parse(body)
3415
+ if response['Response'].key?('Error') == false
3416
+ model = RebuildMediaResponse.new
3417
+ model.deserialize(response['Response'])
3418
+ model
3419
+ else
3420
+ code = response['Response']['Error']['Code']
3421
+ message = response['Response']['Error']['Message']
3422
+ reqid = response['Response']['RequestId']
3423
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3424
+ end
3425
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3426
+ raise e
3427
+ rescue StandardError => e
3428
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3429
+ end
3430
+
3407
3431
  # 1. 刷新指定的 URL 列表。
3408
3432
  # 2. URL 的域名必须已在云点播中注册。
3409
3433
  # 3. 单次请求最多指定20个 URL。
@@ -4070,11 +4070,14 @@ module TencentCloud
4070
4070
  # <li>libfdk_aac。</li>
4071
4071
  # 当外层参数 Format 为 HLS 或 MPEG-DASH 时,可选值为:
4072
4072
  # <li>libfdk_aac。</li>
4073
+ # 当外层参数 Container 为 wav 时,可选值为:
4074
+ # <li>pcm16。</li>
4073
4075
  # @type Codec: String
4074
4076
  # @param Bitrate: 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。
4075
4077
  # 当取值为 0,表示音频码率和原始音频保持一致。
4076
4078
  # @type Bitrate: Integer
4077
4079
  # @param SampleRate: 音频流的采样率,可选值:
4080
+ # <li>16000,仅当 Codec 为 pcm16 时可选。</li>
4078
4081
  # <li>32000</li>
4079
4082
  # <li>44100</li>
4080
4083
  # <li>48000</li>
@@ -4124,10 +4127,13 @@ module TencentCloud
4124
4127
  # <li>libfdk_aac。</li>
4125
4128
  # 当外层参数 Format 为 HLS 或 MPEG-DASH 时,可选值为:
4126
4129
  # <li>libfdk_aac。</li>
4130
+ # 当外层参数 Container 为 wav 时,可选值为:
4131
+ # <li>pcm16。</li>
4127
4132
  # @type Codec: String
4128
4133
  # @param Bitrate: 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。 当取值为 0,表示音频码率和原始音频保持一致。
4129
4134
  # @type Bitrate: Integer
4130
4135
  # @param SampleRate: 音频流的采样率,可选值:
4136
+ # <li>16000,仅当 Codec 为 pcm16 时可选。</li>
4131
4137
  # <li>32000</li>
4132
4138
  # <li>44100</li>
4133
4139
  # <li>48000</li>
@@ -6537,7 +6543,7 @@ module TencentCloud
6537
6543
 
6538
6544
  # CreateTranscodeTemplate请求参数结构体
6539
6545
  class CreateTranscodeTemplateRequest < TencentCloud::Common::AbstractModel
6540
- # @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。
6546
+ # @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a、wav。其中,mp3、flac、ogg、m4a、wav 为纯音频文件。
6541
6547
  # @type Container: String
6542
6548
  # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
6543
6549
  # @type SubAppId: Integer
@@ -10126,7 +10132,8 @@ module TencentCloud
10126
10132
  # <li>FastClipMedia:快速剪辑任务;</li>
10127
10133
  # <li>RemoveWatermarkTask:智能去除水印任务;</li>
10128
10134
  # <li>DescribeFileAttributesTask:获取文件属性任务;</li>
10129
- # <li> ReviewAudioVideo:音视频审核任务。</li>
10135
+ # <li>RebuildMedia:音画质重生任务;</li>
10136
+ # <li>ReviewAudioVideo:音视频审核任务。</li>
10130
10137
  # @type TaskType: String
10131
10138
  # @param Status: 任务状态,取值:
10132
10139
  # <li>WAITING:等待中;</li>
@@ -10178,6 +10185,9 @@ module TencentCloud
10178
10185
  # @param RemoveWatermarkTask: 智能去除水印任务信息,仅当 TaskType 为 RemoveWatermark,该字段有值。
10179
10186
  # 注意:此字段可能返回 null,表示取不到有效值。
10180
10187
  # @type RemoveWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.RemoveWatermarkTask`
10188
+ # @param RebuildMediaTask: 音画质重生任务信息,仅当 TaskType 为 RebuildMedia,该字段有值。
10189
+ # 注意:此字段可能返回 null,表示取不到有效值。
10190
+ # @type RebuildMediaTask: :class:`Tencentcloud::Vod.v20180717.models.RebuildMediaTask`
10181
10191
  # @param ExtractTraceWatermarkTask: 提取溯源水印任务信息,仅当 TaskType 为 ExtractTraceWatermark,该字段有值。
10182
10192
  # 注意:此字段可能返回 null,表示取不到有效值。
10183
10193
  # @type ExtractTraceWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTask`
@@ -10193,9 +10203,9 @@ module TencentCloud
10193
10203
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10194
10204
  # @type RequestId: String
10195
10205
 
10196
- attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :ExtractTraceWatermarkTask, :ReviewAudioVideoTask, :ReduceMediaBitrateTask, :DescribeFileAttributesTask, :RequestId
10206
+ attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :RebuildMediaTask, :ExtractTraceWatermarkTask, :ReviewAudioVideoTask, :ReduceMediaBitrateTask, :DescribeFileAttributesTask, :RequestId
10197
10207
 
10198
- def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, proceduretask=nil, editmediatask=nil, wechatpublishtask=nil, composemediatask=nil, splitmediatask=nil, wechatminiprogrampublishtask=nil, pulluploadtask=nil, transcodetask=nil, concattask=nil, cliptask=nil, createimagespritetask=nil, snapshotbytimeoffsettask=nil, removewatermarktask=nil, extracttracewatermarktask=nil, reviewaudiovideotask=nil, reducemediabitratetask=nil, describefileattributestask=nil, requestid=nil)
10208
+ def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, proceduretask=nil, editmediatask=nil, wechatpublishtask=nil, composemediatask=nil, splitmediatask=nil, wechatminiprogrampublishtask=nil, pulluploadtask=nil, transcodetask=nil, concattask=nil, cliptask=nil, createimagespritetask=nil, snapshotbytimeoffsettask=nil, removewatermarktask=nil, rebuildmediatask=nil, extracttracewatermarktask=nil, reviewaudiovideotask=nil, reducemediabitratetask=nil, describefileattributestask=nil, requestid=nil)
10199
10209
  @TaskType = tasktype
10200
10210
  @Status = status
10201
10211
  @CreateTime = createtime
@@ -10214,6 +10224,7 @@ module TencentCloud
10214
10224
  @CreateImageSpriteTask = createimagespritetask
10215
10225
  @SnapshotByTimeOffsetTask = snapshotbytimeoffsettask
10216
10226
  @RemoveWatermarkTask = removewatermarktask
10227
+ @RebuildMediaTask = rebuildmediatask
10217
10228
  @ExtractTraceWatermarkTask = extracttracewatermarktask
10218
10229
  @ReviewAudioVideoTask = reviewaudiovideotask
10219
10230
  @ReduceMediaBitrateTask = reducemediabitratetask
@@ -10279,6 +10290,10 @@ module TencentCloud
10279
10290
  @RemoveWatermarkTask = RemoveWatermarkTask.new
10280
10291
  @RemoveWatermarkTask.deserialize(params['RemoveWatermarkTask'])
10281
10292
  end
10293
+ unless params['RebuildMediaTask'].nil?
10294
+ @RebuildMediaTask = RebuildMediaTask.new
10295
+ @RebuildMediaTask.deserialize(params['RebuildMediaTask'])
10296
+ end
10282
10297
  unless params['ExtractTraceWatermarkTask'].nil?
10283
10298
  @ExtractTraceWatermarkTask = ExtractTraceWatermarkTask.new
10284
10299
  @ExtractTraceWatermarkTask.deserialize(params['ExtractTraceWatermarkTask'])
@@ -16412,7 +16427,7 @@ module TencentCloud
16412
16427
  # @type Definition: Integer
16413
16428
  # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
16414
16429
  # @type SubAppId: Integer
16415
- # @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。
16430
+ # @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a、wav。其中,mp3、flac、ogg、m4a、wav 为纯音频文件。
16416
16431
  # @type Container: String
16417
16432
  # @param Name: 转码模板名称,长度限制:64 个字符。
16418
16433
  # @type Name: String
@@ -18780,6 +18795,161 @@ module TencentCloud
18780
18795
  end
18781
18796
  end
18782
18797
 
18798
+ # RebuildMedia请求参数结构体
18799
+ class RebuildMediaRequest < TencentCloud::Common::AbstractModel
18800
+ # @param FileId: 媒体文件 ID。
18801
+ # @type FileId: String
18802
+ # @param SubAppId: <b>点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
18803
+ # @type SubAppId: Integer
18804
+ # @param StartTimeOffset: 起始偏移时间,单位:秒,不填表示从视频开始截取。
18805
+ # @type StartTimeOffset: Float
18806
+ # @param EndTimeOffset: 结束偏移时间,单位:秒,不填表示截取到视频末尾。
18807
+ # @type EndTimeOffset: Float
18808
+ # @param RepairInfo: 画质修复控制参数。
18809
+ # @type RepairInfo: :class:`Tencentcloud::Vod.v20180717.models.RepairInfo`
18810
+ # @param VideoFrameInterpolationInfo: 智能插帧控制参数。
18811
+ # @type VideoFrameInterpolationInfo: :class:`Tencentcloud::Vod.v20180717.models.VideoFrameInterpolationInfo`
18812
+ # @param SuperResolutionInfo: 画面超分控制参数。
18813
+ # @type SuperResolutionInfo: :class:`Tencentcloud::Vod.v20180717.models.SuperResolutionInfo`
18814
+ # @param HDRInfo: 高动态范围类型控制参数。
18815
+ # @type HDRInfo: :class:`Tencentcloud::Vod.v20180717.models.HDRInfo`
18816
+ # @param VideoDenoiseInfo: 视频降噪控制参数。
18817
+ # @type VideoDenoiseInfo: :class:`Tencentcloud::Vod.v20180717.models.VideoDenoiseInfo`
18818
+ # @param AudioDenoiseInfo: 音频降噪控制参数。
18819
+ # @type AudioDenoiseInfo: :class:`Tencentcloud::Vod.v20180717.models.AudioDenoiseInfo`
18820
+ # @param ColorInfo: 色彩增强控制参数。
18821
+ # @type ColorInfo: :class:`Tencentcloud::Vod.v20180717.models.ColorEnhanceInfo`
18822
+ # @param SharpInfo: 细节增强控制参数。
18823
+ # @type SharpInfo: :class:`Tencentcloud::Vod.v20180717.models.SharpEnhanceInfo`
18824
+ # @param FaceInfo: 人脸增强控制参数。
18825
+ # @type FaceInfo: :class:`Tencentcloud::Vod.v20180717.models.FaceEnhanceInfo`
18826
+ # @param LowLightInfo: 低光照控制参数。
18827
+ # @type LowLightInfo: :class:`Tencentcloud::Vod.v20180717.models.LowLightEnhanceInfo`
18828
+ # @param ScratchRepairInfo: 去划痕控制参数。
18829
+ # @type ScratchRepairInfo: :class:`Tencentcloud::Vod.v20180717.models.ScratchRepairInfo`
18830
+ # @param ArtifactRepairInfo: 去伪影(毛刺)控制参数。
18831
+ # @type ArtifactRepairInfo: :class:`Tencentcloud::Vod.v20180717.models.ArtifactRepairInfo`
18832
+ # @param TargetInfo: 音画质重生输出目标参数。
18833
+ # @type TargetInfo: :class:`Tencentcloud::Vod.v20180717.models.RebuildMediaTargetInfo`
18834
+ # @param SessionId: 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
18835
+ # @type SessionId: String
18836
+ # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
18837
+ # @type SessionContext: String
18838
+ # @param TasksPriority: 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。
18839
+ # @type TasksPriority: Integer
18840
+ # @param ExtInfo: 保留字段,特殊用途时使用。
18841
+ # @type ExtInfo: String
18842
+
18843
+ attr_accessor :FileId, :SubAppId, :StartTimeOffset, :EndTimeOffset, :RepairInfo, :VideoFrameInterpolationInfo, :SuperResolutionInfo, :HDRInfo, :VideoDenoiseInfo, :AudioDenoiseInfo, :ColorInfo, :SharpInfo, :FaceInfo, :LowLightInfo, :ScratchRepairInfo, :ArtifactRepairInfo, :TargetInfo, :SessionId, :SessionContext, :TasksPriority, :ExtInfo
18844
+
18845
+ def initialize(fileid=nil, subappid=nil, starttimeoffset=nil, endtimeoffset=nil, repairinfo=nil, videoframeinterpolationinfo=nil, superresolutioninfo=nil, hdrinfo=nil, videodenoiseinfo=nil, audiodenoiseinfo=nil, colorinfo=nil, sharpinfo=nil, faceinfo=nil, lowlightinfo=nil, scratchrepairinfo=nil, artifactrepairinfo=nil, targetinfo=nil, sessionid=nil, sessioncontext=nil, taskspriority=nil, extinfo=nil)
18846
+ @FileId = fileid
18847
+ @SubAppId = subappid
18848
+ @StartTimeOffset = starttimeoffset
18849
+ @EndTimeOffset = endtimeoffset
18850
+ @RepairInfo = repairinfo
18851
+ @VideoFrameInterpolationInfo = videoframeinterpolationinfo
18852
+ @SuperResolutionInfo = superresolutioninfo
18853
+ @HDRInfo = hdrinfo
18854
+ @VideoDenoiseInfo = videodenoiseinfo
18855
+ @AudioDenoiseInfo = audiodenoiseinfo
18856
+ @ColorInfo = colorinfo
18857
+ @SharpInfo = sharpinfo
18858
+ @FaceInfo = faceinfo
18859
+ @LowLightInfo = lowlightinfo
18860
+ @ScratchRepairInfo = scratchrepairinfo
18861
+ @ArtifactRepairInfo = artifactrepairinfo
18862
+ @TargetInfo = targetinfo
18863
+ @SessionId = sessionid
18864
+ @SessionContext = sessioncontext
18865
+ @TasksPriority = taskspriority
18866
+ @ExtInfo = extinfo
18867
+ end
18868
+
18869
+ def deserialize(params)
18870
+ @FileId = params['FileId']
18871
+ @SubAppId = params['SubAppId']
18872
+ @StartTimeOffset = params['StartTimeOffset']
18873
+ @EndTimeOffset = params['EndTimeOffset']
18874
+ unless params['RepairInfo'].nil?
18875
+ @RepairInfo = RepairInfo.new
18876
+ @RepairInfo.deserialize(params['RepairInfo'])
18877
+ end
18878
+ unless params['VideoFrameInterpolationInfo'].nil?
18879
+ @VideoFrameInterpolationInfo = VideoFrameInterpolationInfo.new
18880
+ @VideoFrameInterpolationInfo.deserialize(params['VideoFrameInterpolationInfo'])
18881
+ end
18882
+ unless params['SuperResolutionInfo'].nil?
18883
+ @SuperResolutionInfo = SuperResolutionInfo.new
18884
+ @SuperResolutionInfo.deserialize(params['SuperResolutionInfo'])
18885
+ end
18886
+ unless params['HDRInfo'].nil?
18887
+ @HDRInfo = HDRInfo.new
18888
+ @HDRInfo.deserialize(params['HDRInfo'])
18889
+ end
18890
+ unless params['VideoDenoiseInfo'].nil?
18891
+ @VideoDenoiseInfo = VideoDenoiseInfo.new
18892
+ @VideoDenoiseInfo.deserialize(params['VideoDenoiseInfo'])
18893
+ end
18894
+ unless params['AudioDenoiseInfo'].nil?
18895
+ @AudioDenoiseInfo = AudioDenoiseInfo.new
18896
+ @AudioDenoiseInfo.deserialize(params['AudioDenoiseInfo'])
18897
+ end
18898
+ unless params['ColorInfo'].nil?
18899
+ @ColorInfo = ColorEnhanceInfo.new
18900
+ @ColorInfo.deserialize(params['ColorInfo'])
18901
+ end
18902
+ unless params['SharpInfo'].nil?
18903
+ @SharpInfo = SharpEnhanceInfo.new
18904
+ @SharpInfo.deserialize(params['SharpInfo'])
18905
+ end
18906
+ unless params['FaceInfo'].nil?
18907
+ @FaceInfo = FaceEnhanceInfo.new
18908
+ @FaceInfo.deserialize(params['FaceInfo'])
18909
+ end
18910
+ unless params['LowLightInfo'].nil?
18911
+ @LowLightInfo = LowLightEnhanceInfo.new
18912
+ @LowLightInfo.deserialize(params['LowLightInfo'])
18913
+ end
18914
+ unless params['ScratchRepairInfo'].nil?
18915
+ @ScratchRepairInfo = ScratchRepairInfo.new
18916
+ @ScratchRepairInfo.deserialize(params['ScratchRepairInfo'])
18917
+ end
18918
+ unless params['ArtifactRepairInfo'].nil?
18919
+ @ArtifactRepairInfo = ArtifactRepairInfo.new
18920
+ @ArtifactRepairInfo.deserialize(params['ArtifactRepairInfo'])
18921
+ end
18922
+ unless params['TargetInfo'].nil?
18923
+ @TargetInfo = RebuildMediaTargetInfo.new
18924
+ @TargetInfo.deserialize(params['TargetInfo'])
18925
+ end
18926
+ @SessionId = params['SessionId']
18927
+ @SessionContext = params['SessionContext']
18928
+ @TasksPriority = params['TasksPriority']
18929
+ @ExtInfo = params['ExtInfo']
18930
+ end
18931
+ end
18932
+
18933
+ # RebuildMedia返回参数结构体
18934
+ class RebuildMediaResponse < TencentCloud::Common::AbstractModel
18935
+ # @param TaskId: 音画质重生的任务 ID,可以通过该 ID 查询音画质重生任务的状态。
18936
+ # @type TaskId: String
18937
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
18938
+ # @type RequestId: String
18939
+
18940
+ attr_accessor :TaskId, :RequestId
18941
+
18942
+ def initialize(taskid=nil, requestid=nil)
18943
+ @TaskId = taskid
18944
+ @RequestId = requestid
18945
+ end
18946
+
18947
+ def deserialize(params)
18948
+ @TaskId = params['TaskId']
18949
+ @RequestId = params['RequestId']
18950
+ end
18951
+ end
18952
+
18783
18953
  # 画质重生输出的音频信息
18784
18954
  class RebuildMediaTargetAudioStream < TencentCloud::Common::AbstractModel
18785
18955
  # @param Codec: 音频流的编码格式。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vod
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.510
4
+ version: 3.0.511
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-16 00:00:00.000000000 Z
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common