tencentcloud-sdk-mps 3.0.1027 → 3.0.1029

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190612/models.rb +117 -8
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67bed994dd0616cab263aad9be4a5a007aee9400
4
- data.tar.gz: 1e086c983c92fbbb82ab678f2c32571a16f47c25
3
+ metadata.gz: ef94eddf0495d421eddeabe8267dfeaa061aa22a
4
+ data.tar.gz: e8508764e8e67a6069e5c8752e14e44a1805d699
5
5
  SHA512:
6
- metadata.gz: dc5312a6a406013a7bd1e163f795a104bc783096de3f078ff5759506950d79685b0e87d6ae44dbf133290ccc84976235249a2b8b8620b10b819af4ce46c1598d
7
- data.tar.gz: c34bab9fdcdaae0632fb46145ff18661704eb4698ac7cf6382fab7e7efd363a573b9742687e44c74ee64cff928adf3e58b53ce18d1be3fe3d3411eb92486d36a
6
+ metadata.gz: c6d261a4e8979ec93153e218191a540ce24cc78f6bd954030a91632b1a891d8f0e3999c2a9b63be06c13a4634a4a25962cf9ea85789c27552bd1bd2cfa3fbb6f
7
+ data.tar.gz: b9b23ef5fbec5dbed7754ad2b7ed03ecbb91c036a702193444120c7a5a9ae25ab219233c01a2e931b8b5532aca81951e690f19a3119c2b8ad49de0673adaa618
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1027
1
+ 3.0.1029
@@ -680,14 +680,19 @@ module TencentCloud
680
680
  # <li>0:否,</li>
681
681
  # <li>1:是。</li>
682
682
  # @type RemoveVideo: Integer
683
+ # @param AudioList: 音频参数信息列表。
684
+ # 注意:参数数组长度最大为64。
685
+ # 注意:此字段可能返回 null,表示取不到有效值。
686
+ # @type AudioList: Array
683
687
 
684
- attr_accessor :Audio, :Video, :RemoveAudio, :RemoveVideo
688
+ attr_accessor :Audio, :Video, :RemoveAudio, :RemoveVideo, :AudioList
685
689
 
686
- def initialize(audio=nil, video=nil, removeaudio=nil, removevideo=nil)
690
+ def initialize(audio=nil, video=nil, removeaudio=nil, removevideo=nil, audiolist=nil)
687
691
  @Audio = audio
688
692
  @Video = video
689
693
  @RemoveAudio = removeaudio
690
694
  @RemoveVideo = removevideo
695
+ @AudioList = audiolist
691
696
  end
692
697
 
693
698
  def deserialize(params)
@@ -701,6 +706,14 @@ module TencentCloud
701
706
  end
702
707
  @RemoveAudio = params['RemoveAudio']
703
708
  @RemoveVideo = params['RemoveVideo']
709
+ unless params['AudioList'].nil?
710
+ @AudioList = []
711
+ params['AudioList'].each do |i|
712
+ audiotemplateinfo_tmp = AudioTemplateInfo.new
713
+ audiotemplateinfo_tmp.deserialize(i)
714
+ @AudioList << audiotemplateinfo_tmp
715
+ end
716
+ end
704
717
  end
705
718
  end
706
719
 
@@ -4683,14 +4696,19 @@ module TencentCloud
4683
4696
  # 当媒体的封装格式是音频格式时(flac,ogg,mp3,m4a)时,声道数不允许设为5.1声道。
4684
4697
  # 默认值:2。
4685
4698
  # @type AudioChannel: Integer
4699
+ # @param TrackChannelInfo: 合并音轨信息。
4700
+ # 注意:此字段只是自适应转码生效,
4701
+ # 注意:此字段可能返回 null,表示取不到有效值。
4702
+ # @type TrackChannelInfo: :class:`Tencentcloud::Mps.v20190612.models.AudioTrackChannelInfo`
4686
4703
 
4687
- attr_accessor :Codec, :Bitrate, :SampleRate, :AudioChannel
4704
+ attr_accessor :Codec, :Bitrate, :SampleRate, :AudioChannel, :TrackChannelInfo
4688
4705
 
4689
- def initialize(codec=nil, bitrate=nil, samplerate=nil, audiochannel=nil)
4706
+ def initialize(codec=nil, bitrate=nil, samplerate=nil, audiochannel=nil, trackchannelinfo=nil)
4690
4707
  @Codec = codec
4691
4708
  @Bitrate = bitrate
4692
4709
  @SampleRate = samplerate
4693
4710
  @AudioChannel = audiochannel
4711
+ @TrackChannelInfo = trackchannelinfo
4694
4712
  end
4695
4713
 
4696
4714
  def deserialize(params)
@@ -4698,6 +4716,10 @@ module TencentCloud
4698
4716
  @Bitrate = params['Bitrate']
4699
4717
  @SampleRate = params['SampleRate']
4700
4718
  @AudioChannel = params['AudioChannel']
4719
+ unless params['TrackChannelInfo'].nil?
4720
+ @TrackChannelInfo = AudioTrackChannelInfo.new
4721
+ @TrackChannelInfo.deserialize(params['TrackChannelInfo'])
4722
+ end
4701
4723
  end
4702
4724
  end
4703
4725
 
@@ -4762,6 +4784,47 @@ module TencentCloud
4762
4784
  end
4763
4785
  end
4764
4786
 
4787
+ # 音轨信息
4788
+ class AudioTrackChannelInfo < TencentCloud::Common::AbstractModel
4789
+ # @param ChannelsRemix: 是否开启混音,可选值:
4790
+ # 0:表示不开启混音
4791
+ # 1:表示开启混音
4792
+ # 默认值:0
4793
+ # 注意:此字段可能返回 null,表示取不到有效值。
4794
+ # @type ChannelsRemix: Integer
4795
+ # @param SelectType: 合并音轨输入类型,可选值:
4796
+ # trask:表示使用音轨id;
4797
+ # trask_channel: 表示使用音轨id和声道id;
4798
+ # 默认:trask。
4799
+ # 注意:如果原视频是多声道,建议使用trask_channel。
4800
+ # 注意:此字段可能返回 null,表示取不到有效值。
4801
+ # @type SelectType: String
4802
+ # @param InputTrackInfo: 音轨信息
4803
+ # 注意:此字段可能返回 null,表示取不到有效值。
4804
+ # @type InputTrackInfo: Array
4805
+
4806
+ attr_accessor :ChannelsRemix, :SelectType, :InputTrackInfo
4807
+
4808
+ def initialize(channelsremix=nil, selecttype=nil, inputtrackinfo=nil)
4809
+ @ChannelsRemix = channelsremix
4810
+ @SelectType = selecttype
4811
+ @InputTrackInfo = inputtrackinfo
4812
+ end
4813
+
4814
+ def deserialize(params)
4815
+ @ChannelsRemix = params['ChannelsRemix']
4816
+ @SelectType = params['SelectType']
4817
+ unless params['InputTrackInfo'].nil?
4818
+ @InputTrackInfo = []
4819
+ params['InputTrackInfo'].each do |i|
4820
+ trackinfo_tmp = TrackInfo.new
4821
+ trackinfo_tmp.deserialize(i)
4822
+ @InputTrackInfo << trackinfo_tmp
4823
+ end
4824
+ end
4825
+ end
4826
+ end
4827
+
4765
4828
  # AWS S3 文件是上传触发器。
4766
4829
  class AwsS3FileUploadTrigger < TencentCloud::Common::AbstractModel
4767
4830
  # @param S3Bucket: 绑定的 AWS S3 存储桶。
@@ -14028,14 +14091,22 @@ module TencentCloud
14028
14091
  # @param SegmentTags: 片段标签
14029
14092
  # 注意:此字段可能返回 null,表示取不到有效值。
14030
14093
  # @type SegmentTags: Array
14094
+ # @param BeginTime: 直播切片对应直播起始时间点,采用 ISO 日期格式。
14095
+ # 注意:此字段可能返回 null,表示取不到有效值。
14096
+ # @type BeginTime: String
14097
+ # @param EndTime: 直播切片对应直播结束时间点,采用 ISO 日期格式。
14098
+ # 注意:此字段可能返回 null,表示取不到有效值。
14099
+ # @type EndTime: String
14031
14100
 
14032
- attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :SegmentTags
14101
+ attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :SegmentTags, :BeginTime, :EndTime
14033
14102
 
14034
- def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, segmenttags=nil)
14103
+ def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, segmenttags=nil, begintime=nil, endtime=nil)
14035
14104
  @Confidence = confidence
14036
14105
  @StartTimeOffset = starttimeoffset
14037
14106
  @EndTimeOffset = endtimeoffset
14038
14107
  @SegmentTags = segmenttags
14108
+ @BeginTime = begintime
14109
+ @EndTime = endtime
14039
14110
  end
14040
14111
 
14041
14112
  def deserialize(params)
@@ -14043,6 +14114,8 @@ module TencentCloud
14043
14114
  @StartTimeOffset = params['StartTimeOffset']
14044
14115
  @EndTimeOffset = params['EndTimeOffset']
14045
14116
  @SegmentTags = params['SegmentTags']
14117
+ @BeginTime = params['BeginTime']
14118
+ @EndTime = params['EndTime']
14046
14119
  end
14047
14120
  end
14048
14121
 
@@ -21911,10 +21984,12 @@ module TencentCloud
21911
21984
  # @type AudioEndTime: Float
21912
21985
  # @param PersonPositionUrl: 直播拆条用,人物位置参考信息用于横转竖。
21913
21986
  # @type PersonPositionUrl: String
21987
+ # @param PersonId: 指定人物ID。
21988
+ # @type PersonId: String
21914
21989
 
21915
- attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :SegmentUrl, :CovImgUrl, :Title, :Summary, :Keywords, :BeginTime, :EndTime, :AudioUrl, :AudioBeginTime, :AudioEndTime, :PersonPositionUrl
21990
+ attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :SegmentUrl, :CovImgUrl, :Title, :Summary, :Keywords, :BeginTime, :EndTime, :AudioUrl, :AudioBeginTime, :AudioEndTime, :PersonPositionUrl, :PersonId
21916
21991
 
21917
- def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, segmenturl=nil, covimgurl=nil, title=nil, summary=nil, keywords=nil, begintime=nil, endtime=nil, audiourl=nil, audiobegintime=nil, audioendtime=nil, personpositionurl=nil)
21992
+ def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, segmenturl=nil, covimgurl=nil, title=nil, summary=nil, keywords=nil, begintime=nil, endtime=nil, audiourl=nil, audiobegintime=nil, audioendtime=nil, personpositionurl=nil, personid=nil)
21918
21993
  @Confidence = confidence
21919
21994
  @StartTimeOffset = starttimeoffset
21920
21995
  @EndTimeOffset = endtimeoffset
@@ -21929,6 +22004,7 @@ module TencentCloud
21929
22004
  @AudioBeginTime = audiobegintime
21930
22005
  @AudioEndTime = audioendtime
21931
22006
  @PersonPositionUrl = personpositionurl
22007
+ @PersonId = personid
21932
22008
  end
21933
22009
 
21934
22010
  def deserialize(params)
@@ -21946,6 +22022,7 @@ module TencentCloud
21946
22022
  @AudioBeginTime = params['AudioBeginTime']
21947
22023
  @AudioEndTime = params['AudioEndTime']
21948
22024
  @PersonPositionUrl = params['PersonPositionUrl']
22025
+ @PersonId = params['PersonId']
21949
22026
  end
21950
22027
  end
21951
22028
 
@@ -23385,6 +23462,38 @@ module TencentCloud
23385
23462
  end
23386
23463
  end
23387
23464
 
23465
+ # 音轨信息
23466
+ class TrackInfo < TencentCloud::Common::AbstractModel
23467
+ # @param TrackNum: 音轨和声道数字,说明:
23468
+ # 当:SelectType值为trask,此值为整数类型,例如:1;
23469
+ # 当:SelectType值为trask_channel,此值为小数类型,例如:1.0;
23470
+ # 默认值:1.0
23471
+ # 注意:整数部分代表音轨序号,以小数部分代表声道。音轨序号即为音轨的stream index,支持输入0和正整数。小数部分最多支持2位小数,并且仅支持0-63,但是如果Codec为aac/eac3/ac3时,小数部分仅支持0-15。例如:对于stream index为1的音轨,1.0代表这个音轨的第1个声道,1.1代表这个音轨的第2个声道。
23472
+ # 注意:此字段可能返回 null,表示取不到有效值。
23473
+ # @type TrackNum: String
23474
+ # @param ChannelVolume: 声道音量大小,说明:
23475
+ # 当:AudioChannel的值为1时,此值长度为1;
23476
+ # 当:AudioChannel的值为2时,此值长度为2;
23477
+ # 当:AudioChannel的值为6时,此值长度大于2。
23478
+ # 此值数组值取值范围:[-60, 6],其中-60代表静音、0代表保持原音量,6表示原音量增加一倍,默认值为-60。
23479
+ # 注意:支持3位小数。
23480
+
23481
+ # 注意:此字段可能返回 null,表示取不到有效值。
23482
+ # @type ChannelVolume: Array
23483
+
23484
+ attr_accessor :TrackNum, :ChannelVolume
23485
+
23486
+ def initialize(tracknum=nil, channelvolume=nil)
23487
+ @TrackNum = tracknum
23488
+ @ChannelVolume = channelvolume
23489
+ end
23490
+
23491
+ def deserialize(params)
23492
+ @TrackNum = params['TrackNum']
23493
+ @ChannelVolume = params['ChannelVolume']
23494
+ end
23495
+ end
23496
+
23388
23497
  # 转码任务输入参数类型
23389
23498
  class TranscodeTaskInput < TencentCloud::Common::AbstractModel
23390
23499
  # @param Definition: 视频转码模板 ID。
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.1027
4
+ version: 3.0.1029
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-03-25 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common