tencentcloud-sdk-python-intl-en 3.0.1074__py2.py3-none-any.whl → 3.0.1075__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cynosdb/v20190107/models.py +4 -4
- tencentcloud/es/v20180416/errorcodes.py +48 -0
- tencentcloud/es/v20180416/models.py +2 -2
- tencentcloud/facefusion/v20220927/errorcodes.py +18 -0
- tencentcloud/facefusion/v20220927/facefusion_client.py +46 -0
- tencentcloud/facefusion/v20220927/models.py +607 -0
- tencentcloud/mps/v20190612/models.py +564 -105
- tencentcloud/sqlserver/v20180328/models.py +141 -2
- tencentcloud/vod/v20180717/models.py +588 -0
- tencentcloud/vod/v20180717/vod_client.py +33 -0
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/RECORD +15 -15
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/top_level.txt +0 -0
|
@@ -902,24 +902,31 @@ class AdaptiveDynamicStreamingTaskInput(AbstractModel):
|
|
|
902
902
|
|
|
903
903
|
def __init__(self):
|
|
904
904
|
r"""
|
|
905
|
-
:param _Definition: Adaptive
|
|
905
|
+
:param _Definition: Adaptive dynamic streaming template ID.
|
|
906
906
|
:type Definition: int
|
|
907
|
-
:param _WatermarkSet:
|
|
907
|
+
:param _WatermarkSet: Watermark list. Multiple image or text watermarks up to a maximum of 10 are supported.
|
|
908
908
|
:type WatermarkSet: list of WatermarkInput
|
|
909
|
-
:param _OutputStorage:
|
|
910
|
-
Note: This field may return
|
|
909
|
+
:param _OutputStorage: Target storage for files after adaptive dynamic streaming. If left blank, it inherits the upper-level OutputStorage value.
|
|
910
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
911
911
|
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
912
|
-
:param _OutputObjectPath:
|
|
912
|
+
:param _OutputObjectPath: Output path for the manifest file after adaptive dynamic streaming. It can be either a relative path or an absolute path.
|
|
913
|
+
If you need to define an output path, the path must end with `.{format}`. Refer to [Filename Variable Description](https://intl.cloud.tencent.com/document/product/862/37039?from_cn_redirect=1) for variable names.
|
|
914
|
+
Example of relative path:
|
|
915
|
+
<li>filename_{variable name}.{format}</li>
|
|
916
|
+
<li>filename.{format}</li>
|
|
917
|
+
Example of absolute path:
|
|
918
|
+
<li>/custom path/filename_{variable name}.{format}</li>
|
|
919
|
+
If not filled in, it is a relative path by default: {inputName}_adaptiveDynamicStreaming_{definition}.{format}.
|
|
913
920
|
:type OutputObjectPath: str
|
|
914
|
-
:param _SubStreamObjectName:
|
|
921
|
+
:param _SubStreamObjectName: After adaptive dynamic streaming, the output path of substream files can only be a relative path. If not filled in, it is a relative path by default: `{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}.{format}`.
|
|
915
922
|
:type SubStreamObjectName: str
|
|
916
|
-
:param _SegmentObjectName:
|
|
923
|
+
:param _SegmentObjectName: After adaptive dynamic streaming (for HLS only), the output path of segment files can only be a relative path. If not filled in, it is a relative path by default: `{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}_{segmentNumber}.{format}`.
|
|
917
924
|
:type SegmentObjectName: str
|
|
918
|
-
:param _AddOnSubtitles:
|
|
919
|
-
Note: This field may return
|
|
925
|
+
:param _AddOnSubtitles: Subtitle file to be inserted.
|
|
926
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
920
927
|
:type AddOnSubtitles: list of AddOnSubtitle
|
|
921
|
-
:param _DrmInfo:
|
|
922
|
-
Note: This field may return
|
|
928
|
+
:param _DrmInfo: Drm information.
|
|
929
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
923
930
|
:type DrmInfo: :class:`tencentcloud.mps.v20190612.models.DrmInfo`
|
|
924
931
|
:param _DefinitionType: Adaptive transcoding template type.
|
|
925
932
|
Common: audio-video.
|
|
@@ -1238,10 +1245,10 @@ class AdaptiveStreamTemplate(AbstractModel):
|
|
|
1238
1245
|
|
|
1239
1246
|
def __init__(self):
|
|
1240
1247
|
r"""
|
|
1241
|
-
:param _Video: Video parameter information.
|
|
1242
|
-
:type Video: :class:`tencentcloud.mps.v20190612.models.VideoTemplateInfo`
|
|
1243
1248
|
:param _Audio: Audio parameter information.
|
|
1244
1249
|
:type Audio: :class:`tencentcloud.mps.v20190612.models.AudioTemplateInfo`
|
|
1250
|
+
:param _Video: Video parameter information.
|
|
1251
|
+
:type Video: :class:`tencentcloud.mps.v20190612.models.VideoTemplateInfo`
|
|
1245
1252
|
:param _RemoveAudio: Whether to remove audio stream. Valid values:
|
|
1246
1253
|
<li>0: no,</li>
|
|
1247
1254
|
<li>1: yes.</li>
|
|
@@ -1251,19 +1258,11 @@ class AdaptiveStreamTemplate(AbstractModel):
|
|
|
1251
1258
|
<li>1: yes.</li>
|
|
1252
1259
|
:type RemoveVideo: int
|
|
1253
1260
|
"""
|
|
1254
|
-
self._Video = None
|
|
1255
1261
|
self._Audio = None
|
|
1262
|
+
self._Video = None
|
|
1256
1263
|
self._RemoveAudio = None
|
|
1257
1264
|
self._RemoveVideo = None
|
|
1258
1265
|
|
|
1259
|
-
@property
|
|
1260
|
-
def Video(self):
|
|
1261
|
-
return self._Video
|
|
1262
|
-
|
|
1263
|
-
@Video.setter
|
|
1264
|
-
def Video(self, Video):
|
|
1265
|
-
self._Video = Video
|
|
1266
|
-
|
|
1267
1266
|
@property
|
|
1268
1267
|
def Audio(self):
|
|
1269
1268
|
return self._Audio
|
|
@@ -1272,6 +1271,14 @@ class AdaptiveStreamTemplate(AbstractModel):
|
|
|
1272
1271
|
def Audio(self, Audio):
|
|
1273
1272
|
self._Audio = Audio
|
|
1274
1273
|
|
|
1274
|
+
@property
|
|
1275
|
+
def Video(self):
|
|
1276
|
+
return self._Video
|
|
1277
|
+
|
|
1278
|
+
@Video.setter
|
|
1279
|
+
def Video(self, Video):
|
|
1280
|
+
self._Video = Video
|
|
1281
|
+
|
|
1275
1282
|
@property
|
|
1276
1283
|
def RemoveAudio(self):
|
|
1277
1284
|
return self._RemoveAudio
|
|
@@ -1290,12 +1297,12 @@ class AdaptiveStreamTemplate(AbstractModel):
|
|
|
1290
1297
|
|
|
1291
1298
|
|
|
1292
1299
|
def _deserialize(self, params):
|
|
1293
|
-
if params.get("Video") is not None:
|
|
1294
|
-
self._Video = VideoTemplateInfo()
|
|
1295
|
-
self._Video._deserialize(params.get("Video"))
|
|
1296
1300
|
if params.get("Audio") is not None:
|
|
1297
1301
|
self._Audio = AudioTemplateInfo()
|
|
1298
1302
|
self._Audio._deserialize(params.get("Audio"))
|
|
1303
|
+
if params.get("Video") is not None:
|
|
1304
|
+
self._Video = VideoTemplateInfo()
|
|
1305
|
+
self._Video._deserialize(params.get("Video"))
|
|
1299
1306
|
self._RemoveAudio = params.get("RemoveAudio")
|
|
1300
1307
|
self._RemoveVideo = params.get("RemoveVideo")
|
|
1301
1308
|
memeber_set = set(params.keys())
|
|
@@ -4002,10 +4009,14 @@ class AiRecognitionTaskAsrFullTextResultOutput(AbstractModel):
|
|
|
4002
4009
|
|
|
4003
4010
|
@property
|
|
4004
4011
|
def OutputStorage(self):
|
|
4012
|
+
warnings.warn("parameter `OutputStorage` is deprecated", DeprecationWarning)
|
|
4013
|
+
|
|
4005
4014
|
return self._OutputStorage
|
|
4006
4015
|
|
|
4007
4016
|
@OutputStorage.setter
|
|
4008
4017
|
def OutputStorage(self, OutputStorage):
|
|
4018
|
+
warnings.warn("parameter `OutputStorage` is deprecated", DeprecationWarning)
|
|
4019
|
+
|
|
4009
4020
|
self._OutputStorage = OutputStorage
|
|
4010
4021
|
|
|
4011
4022
|
|
|
@@ -5851,12 +5862,9 @@ class AiRecognitionTaskTransTextResultOutput(AbstractModel):
|
|
|
5851
5862
|
:type SegmentSet: list of AiRecognitionTaskTransTextSegmentItem
|
|
5852
5863
|
:param _SubtitlePath: The subtitle URL.
|
|
5853
5864
|
:type SubtitlePath: str
|
|
5854
|
-
:param _OutputStorage: The subtitle storage location.
|
|
5855
|
-
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
5856
5865
|
"""
|
|
5857
5866
|
self._SegmentSet = None
|
|
5858
5867
|
self._SubtitlePath = None
|
|
5859
|
-
self._OutputStorage = None
|
|
5860
5868
|
|
|
5861
5869
|
@property
|
|
5862
5870
|
def SegmentSet(self):
|
|
@@ -5874,14 +5882,6 @@ class AiRecognitionTaskTransTextResultOutput(AbstractModel):
|
|
|
5874
5882
|
def SubtitlePath(self, SubtitlePath):
|
|
5875
5883
|
self._SubtitlePath = SubtitlePath
|
|
5876
5884
|
|
|
5877
|
-
@property
|
|
5878
|
-
def OutputStorage(self):
|
|
5879
|
-
return self._OutputStorage
|
|
5880
|
-
|
|
5881
|
-
@OutputStorage.setter
|
|
5882
|
-
def OutputStorage(self, OutputStorage):
|
|
5883
|
-
self._OutputStorage = OutputStorage
|
|
5884
|
-
|
|
5885
5885
|
|
|
5886
5886
|
def _deserialize(self, params):
|
|
5887
5887
|
if params.get("SegmentSet") is not None:
|
|
@@ -5891,9 +5891,6 @@ class AiRecognitionTaskTransTextResultOutput(AbstractModel):
|
|
|
5891
5891
|
obj._deserialize(item)
|
|
5892
5892
|
self._SegmentSet.append(obj)
|
|
5893
5893
|
self._SubtitlePath = params.get("SubtitlePath")
|
|
5894
|
-
if params.get("OutputStorage") is not None:
|
|
5895
|
-
self._OutputStorage = TaskOutputStorage()
|
|
5896
|
-
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
5897
5894
|
memeber_set = set(params.keys())
|
|
5898
5895
|
for name, value in vars(self).items():
|
|
5899
5896
|
property_name = name[1:]
|
|
@@ -16205,7 +16202,7 @@ class DescribeQualityControlTemplatesRequest(AbstractModel):
|
|
|
16205
16202
|
<li>Default value: 10.</li>
|
|
16206
16203
|
<li>Maximum value: 100.</li>
|
|
16207
16204
|
:type Limit: int
|
|
16208
|
-
:param _Type: Preset: preset template
|
|
16205
|
+
:param _Type: "Preset": preset template, "Custom": custom template
|
|
16209
16206
|
:type Type: str
|
|
16210
16207
|
:param _Name: Filter condition for media quality inspection template identifiers, with a length limit of 64 characters.
|
|
16211
16208
|
:type Name: str
|
|
@@ -29712,7 +29709,9 @@ class ProcessMediaRequest(AbstractModel):
|
|
|
29712
29709
|
r"""
|
|
29713
29710
|
:param _InputInfo: The information of the file to process.
|
|
29714
29711
|
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
29715
|
-
:param _OutputStorage:
|
|
29712
|
+
:param _OutputStorage: Target storage for Media Processing Service output files. If left blank, it inherits the storage location in InputInfo.
|
|
29713
|
+
|
|
29714
|
+
Note: When InputInfo.Type is URL, this parameter is required.
|
|
29716
29715
|
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
29717
29716
|
:param _OutputDir: The directory to save the media processing output file, which must start and end with `/`, such as `/movie/201907/`.
|
|
29718
29717
|
If you do not specify this parameter, the file will be saved to the directory specified in `InputInfo`.
|
|
@@ -32583,6 +32582,69 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
32583
32582
|
|
|
32584
32583
|
|
|
32585
32584
|
|
|
32585
|
+
class SegmentSpecificInfo(AbstractModel):
|
|
32586
|
+
"""Information on special segment configuration.
|
|
32587
|
+
|
|
32588
|
+
"""
|
|
32589
|
+
|
|
32590
|
+
def __init__(self):
|
|
32591
|
+
r"""
|
|
32592
|
+
:param _Switch: Switch for segment duration at startup. Optional values:
|
|
32593
|
+
on: Turn on the switch
|
|
32594
|
+
off: Turn off the switch
|
|
32595
|
+
Default value: off
|
|
32596
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
32597
|
+
:type Switch: str
|
|
32598
|
+
:param _FragmentTime: Segment duration at startup. Unit: second
|
|
32599
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
32600
|
+
:type FragmentTime: int
|
|
32601
|
+
:param _FragmentEndNum: Number of effective segments, indicating the first FragmentEndNum segments with FragmentTime. Value range: >=1
|
|
32602
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
32603
|
+
:type FragmentEndNum: int
|
|
32604
|
+
"""
|
|
32605
|
+
self._Switch = None
|
|
32606
|
+
self._FragmentTime = None
|
|
32607
|
+
self._FragmentEndNum = None
|
|
32608
|
+
|
|
32609
|
+
@property
|
|
32610
|
+
def Switch(self):
|
|
32611
|
+
return self._Switch
|
|
32612
|
+
|
|
32613
|
+
@Switch.setter
|
|
32614
|
+
def Switch(self, Switch):
|
|
32615
|
+
self._Switch = Switch
|
|
32616
|
+
|
|
32617
|
+
@property
|
|
32618
|
+
def FragmentTime(self):
|
|
32619
|
+
return self._FragmentTime
|
|
32620
|
+
|
|
32621
|
+
@FragmentTime.setter
|
|
32622
|
+
def FragmentTime(self, FragmentTime):
|
|
32623
|
+
self._FragmentTime = FragmentTime
|
|
32624
|
+
|
|
32625
|
+
@property
|
|
32626
|
+
def FragmentEndNum(self):
|
|
32627
|
+
return self._FragmentEndNum
|
|
32628
|
+
|
|
32629
|
+
@FragmentEndNum.setter
|
|
32630
|
+
def FragmentEndNum(self, FragmentEndNum):
|
|
32631
|
+
self._FragmentEndNum = FragmentEndNum
|
|
32632
|
+
|
|
32633
|
+
|
|
32634
|
+
def _deserialize(self, params):
|
|
32635
|
+
self._Switch = params.get("Switch")
|
|
32636
|
+
self._FragmentTime = params.get("FragmentTime")
|
|
32637
|
+
self._FragmentEndNum = params.get("FragmentEndNum")
|
|
32638
|
+
memeber_set = set(params.keys())
|
|
32639
|
+
for name, value in vars(self).items():
|
|
32640
|
+
property_name = name[1:]
|
|
32641
|
+
if property_name in memeber_set:
|
|
32642
|
+
memeber_set.remove(property_name)
|
|
32643
|
+
if len(memeber_set) > 0:
|
|
32644
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
32645
|
+
|
|
32646
|
+
|
|
32647
|
+
|
|
32586
32648
|
class SharpEnhanceConfig(AbstractModel):
|
|
32587
32649
|
"""Detail enhancement configuration.
|
|
32588
32650
|
|
|
@@ -33763,21 +33825,13 @@ class TerrorismConfigureInfo(AbstractModel):
|
|
|
33763
33825
|
|
|
33764
33826
|
def __init__(self):
|
|
33765
33827
|
r"""
|
|
33766
|
-
:param _OcrReviewInfo: The parameters for detecting sensitive information based on OCR.
|
|
33767
|
-
:type OcrReviewInfo: :class:`tencentcloud.mps.v20190612.models.TerrorismOcrReviewTemplateInfo`
|
|
33768
33828
|
:param _ImgReviewInfo: The parameters for detecting sensitive information in images.
|
|
33769
33829
|
:type ImgReviewInfo: :class:`tencentcloud.mps.v20190612.models.TerrorismImgReviewTemplateInfo`
|
|
33830
|
+
:param _OcrReviewInfo: The parameters for detecting sensitive information based on OCR.
|
|
33831
|
+
:type OcrReviewInfo: :class:`tencentcloud.mps.v20190612.models.TerrorismOcrReviewTemplateInfo`
|
|
33770
33832
|
"""
|
|
33771
|
-
self._OcrReviewInfo = None
|
|
33772
33833
|
self._ImgReviewInfo = None
|
|
33773
|
-
|
|
33774
|
-
@property
|
|
33775
|
-
def OcrReviewInfo(self):
|
|
33776
|
-
return self._OcrReviewInfo
|
|
33777
|
-
|
|
33778
|
-
@OcrReviewInfo.setter
|
|
33779
|
-
def OcrReviewInfo(self, OcrReviewInfo):
|
|
33780
|
-
self._OcrReviewInfo = OcrReviewInfo
|
|
33834
|
+
self._OcrReviewInfo = None
|
|
33781
33835
|
|
|
33782
33836
|
@property
|
|
33783
33837
|
def ImgReviewInfo(self):
|
|
@@ -33787,14 +33841,22 @@ class TerrorismConfigureInfo(AbstractModel):
|
|
|
33787
33841
|
def ImgReviewInfo(self, ImgReviewInfo):
|
|
33788
33842
|
self._ImgReviewInfo = ImgReviewInfo
|
|
33789
33843
|
|
|
33844
|
+
@property
|
|
33845
|
+
def OcrReviewInfo(self):
|
|
33846
|
+
return self._OcrReviewInfo
|
|
33847
|
+
|
|
33848
|
+
@OcrReviewInfo.setter
|
|
33849
|
+
def OcrReviewInfo(self, OcrReviewInfo):
|
|
33850
|
+
self._OcrReviewInfo = OcrReviewInfo
|
|
33851
|
+
|
|
33790
33852
|
|
|
33791
33853
|
def _deserialize(self, params):
|
|
33792
|
-
if params.get("OcrReviewInfo") is not None:
|
|
33793
|
-
self._OcrReviewInfo = TerrorismOcrReviewTemplateInfo()
|
|
33794
|
-
self._OcrReviewInfo._deserialize(params.get("OcrReviewInfo"))
|
|
33795
33854
|
if params.get("ImgReviewInfo") is not None:
|
|
33796
33855
|
self._ImgReviewInfo = TerrorismImgReviewTemplateInfo()
|
|
33797
33856
|
self._ImgReviewInfo._deserialize(params.get("ImgReviewInfo"))
|
|
33857
|
+
if params.get("OcrReviewInfo") is not None:
|
|
33858
|
+
self._OcrReviewInfo = TerrorismOcrReviewTemplateInfo()
|
|
33859
|
+
self._OcrReviewInfo._deserialize(params.get("OcrReviewInfo"))
|
|
33798
33860
|
memeber_set = set(params.keys())
|
|
33799
33861
|
for name, value in vars(self).items():
|
|
33800
33862
|
property_name = name[1:]
|
|
@@ -35327,7 +35389,7 @@ class UserDefineOcrTextReviewTemplateInfoForUpdate(AbstractModel):
|
|
|
35327
35389
|
:type Switch: str
|
|
35328
35390
|
:param _LabelSet: Custom text filter tag. If an audit result contains the selected tag, it will be returned; if the filter tag is empty, all audit results will be returned. To use the tag filtering feature, you need to add the corresponding tag when adding materials for custom text keywords.
|
|
35329
35391
|
There can be up to 10 tags, each with a length limit of 16 characters.
|
|
35330
|
-
:type LabelSet: str
|
|
35392
|
+
:type LabelSet: list of str
|
|
35331
35393
|
:param _BlockConfidence: Threshold score for violation. If this score is reached or exceeded during intelligent audit, it will be deemed that a suspected violation has occurred. Value range: 0-100.
|
|
35332
35394
|
:type BlockConfidence: int
|
|
35333
35395
|
:param _ReviewConfidence: Threshold score for human audit. If this score is reached or exceeded during intelligent audit, human audit will be considered necessary. Value range: 0-100.
|
|
@@ -35631,22 +35693,21 @@ class VideoTemplateInfo(AbstractModel):
|
|
|
35631
35693
|
|
|
35632
35694
|
def __init__(self):
|
|
35633
35695
|
r"""
|
|
35634
|
-
:param _Codec:
|
|
35635
|
-
<li>h264: H.264 encoding
|
|
35636
|
-
<li>h265: H.265 encoding
|
|
35637
|
-
<li>h266: H.266 encoding
|
|
35638
|
-
<li>av1: AOMedia Video 1 encoding
|
|
35639
|
-
<li>vp8: VP8 encoding
|
|
35640
|
-
<li>vp9: VP9 encoding
|
|
35641
|
-
<li>mpeg2: MPEG2 encoding
|
|
35642
|
-
<li>dnxhd: DNxHD encoding
|
|
35643
|
-
<li>mv-hevc: MV-HEVC encoding
|
|
35644
|
-
Note: A resolution within 640x480 should be specified for H.265 encoding.
|
|
35696
|
+
:param _Codec: Encoding format for video streams. Optional values:
|
|
35697
|
+
<li>h264: H.264 encoding</li>
|
|
35698
|
+
<li>h265: H.265 encoding</li>
|
|
35699
|
+
<li>h266: H.266 encoding</li>
|
|
35700
|
+
<li>av1: AOMedia Video 1 encoding</li>
|
|
35701
|
+
<li>vp8: VP8 encoding</li>
|
|
35702
|
+
<li>vp9: VP9 encoding</li>
|
|
35703
|
+
<li>mpeg2: MPEG2 encoding</li>
|
|
35704
|
+
<li>dnxhd: DNxHD encoding</li>
|
|
35705
|
+
<li>mv-hevc: MV-HEVC encoding</li>
|
|
35645
35706
|
|
|
35646
|
-
Note: AV1 encoding containers only support mp4, webm, and mkv.
|
|
35647
|
-
Note: H.266 encoding containers only support mp4, hls, ts, and mov.
|
|
35648
|
-
Note: VP8 and VP9 encoding containers only support webm and mkv.
|
|
35649
|
-
Note: MPEG2 and DNxHD encoding containers only support mxf.
|
|
35707
|
+
Note: AV1 encoding containers currently only support mp4, webm, and mkv.
|
|
35708
|
+
Note: H.266 encoding containers currently only support mp4, hls, ts, and mov.
|
|
35709
|
+
Note: VP8 and VP9 encoding containers currently only support webm and mkv.
|
|
35710
|
+
Note: MPEG2 and DNxHD encoding containers currently only support mxf.
|
|
35650
35711
|
Note: MV-HEVC encoding containers only support mp4, hls, and mov. Among them, the hls format only supports mp4 segmentation format.
|
|
35651
35712
|
:type Codec: str
|
|
35652
35713
|
:param _Fps: Video frame rate. Value range:
|
|
@@ -35676,20 +35737,39 @@ Default value: 0.
|
|
|
35676
35737
|
<li>If both `Width` and `Height` are not 0, the custom resolution will be used.</li>
|
|
35677
35738
|
Default value: 0.
|
|
35678
35739
|
:type Height: int
|
|
35679
|
-
:param _Gop: Interval between I-frames, in frames.
|
|
35740
|
+
:param _Gop: Interval between I-frames (keyframes), which can be customized in frames or seconds. GOP value range: 0 and [1, 100000].
|
|
35741
|
+
If this parameter is 0 or left blank, the system will automatically set the GOP length.
|
|
35680
35742
|
:type Gop: int
|
|
35681
|
-
:param
|
|
35682
|
-
|
|
35683
|
-
|
|
35684
|
-
|
|
35685
|
-
|
|
35743
|
+
:param _GopUnit: GOP value unit. Optional values:
|
|
35744
|
+
frame: indicates frame
|
|
35745
|
+
second: indicates second
|
|
35746
|
+
Default value: frame
|
|
35747
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35748
|
+
:type GopUnit: str
|
|
35749
|
+
:param _FillType: Filling mode. When the configured aspect ratio parameter for video streams differs from the aspect ratio of the original video, the processing method for transcoding is "filling". Optional filling modes:
|
|
35750
|
+
<li>stretch: Each frame is stretched to fill the entire screen, which may cause the transcoded video to be "flattened" or "stretched".</li>
|
|
35751
|
+
<li>black: The aspect ratio of the video is kept unchanged, and the rest of the edges is filled with black.</li>
|
|
35752
|
+
<li>white: The aspect ratio of the video is kept unchanged, and the rest of the edges is filled with white.</li>
|
|
35753
|
+
<li>gauss: The aspect ratio of the video is kept unchanged, and the rest of the edges is filled with a Gaussian blur.</li>
|
|
35754
|
+
|
|
35755
|
+
<li>smarttailor: Video images are smartly selected to ensure proportional image cropping.</li>
|
|
35686
35756
|
Default value: black.
|
|
35687
|
-
Note: Only
|
|
35757
|
+
Note: Only stretch and black are supported for adaptive bitrate streaming.
|
|
35688
35758
|
:type FillType: str
|
|
35689
|
-
:param _Vcrf:
|
|
35690
|
-
If this parameter is specified,
|
|
35691
|
-
It is not
|
|
35759
|
+
:param _Vcrf: Control factor for constant video bitrate. Value range: [0, 51].
|
|
35760
|
+
If this parameter is specified, the bitrate control mode for the CRF will be used for transcoding (the video bitrate will no longer take effect).
|
|
35761
|
+
It is recommended not to specify this parameter if there are no special requirements.
|
|
35762
|
+
|
|
35763
|
+
Note:
|
|
35764
|
+
If Mode is set to ABR, the Vcrf value does not need to be configured.
|
|
35765
|
+
If Mode is set to CBR, the Vcrf value does not need to be configured.
|
|
35766
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35692
35767
|
:type Vcrf: int
|
|
35768
|
+
:param _HlsTime: Average segment duration. Value range: (0-10], unit: second
|
|
35769
|
+
Default value: 10
|
|
35770
|
+
Note: It can be used only in the container format of hls.
|
|
35771
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35772
|
+
:type HlsTime: int
|
|
35693
35773
|
:param _SegmentType: HLS segment type. Valid values:
|
|
35694
35774
|
<li>0: HLS+TS segment.</li>
|
|
35695
35775
|
<li>2: HLS+TS byte range.</li>
|
|
@@ -35709,6 +35789,59 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35709
35789
|
Default value: side_by_side.
|
|
35710
35790
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
35711
35791
|
:type Stereo3dType: str
|
|
35792
|
+
:param _VideoProfile: Profile, suitable for different scenarios.
|
|
35793
|
+
baseline: It only supports I/P-frames and non-interlaced scenarios, and is suitable for scenarios such as video calls and mobile videos.
|
|
35794
|
+
main: It offers I-frames, P-frames, and B-frames, and supports both interlaced and non-interlaced modes. It is mainly used in mainstream audio and video consumption products such as video players and streaming media transmission devices.
|
|
35795
|
+
high: the highest encoding level, with 8x8 prediction added to the main profile and support for custom quantification. It is widely used in scenarios such as Blu-ray storage and HDTV.
|
|
35796
|
+
default: automatic filling along with the original video.
|
|
35797
|
+
|
|
35798
|
+
This configuration appears only when the encoding standard is set to H264. baseline/main/high is supported. Default value: default
|
|
35799
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35800
|
+
:type VideoProfile: str
|
|
35801
|
+
:param _VideoLevel: Encoder level. Default value: auto ("")
|
|
35802
|
+
If the encoding standard is set to H264, the following options are supported: "", 1, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1, 4.2, 5, and 5.1.
|
|
35803
|
+
If the encoding standard is set to H265, the following options are supported: "", 1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2, and 8.5.
|
|
35804
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35805
|
+
:type VideoLevel: str
|
|
35806
|
+
:param _Bframes: Number of B-frames between reference frames. The default is auto, and a range of 0 - 16 is supported.
|
|
35807
|
+
Note: Leaving it blank means using the auto option.
|
|
35808
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35809
|
+
:type Bframes: int
|
|
35810
|
+
:param _Mode: Bitrate control mode. Optional values:
|
|
35811
|
+
VBR: variable bitrate. The output bitrate is adjusted based on the complexity of the video image, ensuring higher image quality. This mode is suitable for storage scenarios as well as applications with high image quality requirements.
|
|
35812
|
+
ABR: average bitrate. The average bitrate of the output video is kept stable to the greatest extent, but short-term bitrate fluctuations are allowed. This mode is suitable for scenarios where it is necessary to minimize the overall bitrate while a certain quality is maintained.
|
|
35813
|
+
CBR: constant bitrate. The output bitrate remains constant during the video encoding process, regardless of changes in image complexity. This mode is suitable for scenarios with strict network bandwidth requirements, such as live streaming.
|
|
35814
|
+
VCRF: constant rate factor. The video quality is controlled by setting a quality factor, achieving constant quality encoding of videos. The bitrate is automatically adjusted based on the complexity of the content. This mode is suitable for scenarios where maintaining a certain quality is desired.
|
|
35815
|
+
VBR is selected by default.
|
|
35816
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35817
|
+
:type Mode: str
|
|
35818
|
+
:param _Sar: Display aspect ratio. Optional values: [1:1, 2:1, default]
|
|
35819
|
+
Default value: default
|
|
35820
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35821
|
+
:type Sar: str
|
|
35822
|
+
:param _NoScenecut: Adaptive I-frame decision. When it is enabled, Media Processing Service will automatically identify transition points between different scenarios in the video (usually they are visually distinct frames, such as those of switching from one shot to another) and adaptively insert keyframes (I-frames) at these points to improve the random accessibility and encoding efficiency of the video. Optional values:
|
|
35823
|
+
0: Disable the adaptive I-frame decision
|
|
35824
|
+
1: Enable the adaptive I-frame decision
|
|
35825
|
+
Default value: 0
|
|
35826
|
+
|
|
35827
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35828
|
+
:type NoScenecut: int
|
|
35829
|
+
:param _BitDepth: Bit: 8/10 is supported. Default value: 8
|
|
35830
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35831
|
+
:type BitDepth: int
|
|
35832
|
+
:param _RawPts: Preservation of original timestamp. Optional values:
|
|
35833
|
+
0: Disabled
|
|
35834
|
+
1: Enabled
|
|
35835
|
+
Default value: Disabled
|
|
35836
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35837
|
+
:type RawPts: int
|
|
35838
|
+
:param _Compress: Proportional compression bitrate. When it is enabled, the bitrate of the output video will be adjusted according to the proportion. After the compression ratio is entered, the system will automatically calculate the target output bitrate based on the source video bitrate. Compression ratio range: 0-100
|
|
35839
|
+
Leaving this value blank means it is not enabled by default.
|
|
35840
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35841
|
+
:type Compress: int
|
|
35842
|
+
:param _SegmentSpecificInfo: Special segment configuration
|
|
35843
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35844
|
+
:type SegmentSpecificInfo: :class:`tencentcloud.mps.v20190612.models.SegmentSpecificInfo`
|
|
35712
35845
|
"""
|
|
35713
35846
|
self._Codec = None
|
|
35714
35847
|
self._Fps = None
|
|
@@ -35717,11 +35850,23 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35717
35850
|
self._Width = None
|
|
35718
35851
|
self._Height = None
|
|
35719
35852
|
self._Gop = None
|
|
35853
|
+
self._GopUnit = None
|
|
35720
35854
|
self._FillType = None
|
|
35721
35855
|
self._Vcrf = None
|
|
35856
|
+
self._HlsTime = None
|
|
35722
35857
|
self._SegmentType = None
|
|
35723
35858
|
self._FpsDenominator = None
|
|
35724
35859
|
self._Stereo3dType = None
|
|
35860
|
+
self._VideoProfile = None
|
|
35861
|
+
self._VideoLevel = None
|
|
35862
|
+
self._Bframes = None
|
|
35863
|
+
self._Mode = None
|
|
35864
|
+
self._Sar = None
|
|
35865
|
+
self._NoScenecut = None
|
|
35866
|
+
self._BitDepth = None
|
|
35867
|
+
self._RawPts = None
|
|
35868
|
+
self._Compress = None
|
|
35869
|
+
self._SegmentSpecificInfo = None
|
|
35725
35870
|
|
|
35726
35871
|
@property
|
|
35727
35872
|
def Codec(self):
|
|
@@ -35779,6 +35924,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35779
35924
|
def Gop(self, Gop):
|
|
35780
35925
|
self._Gop = Gop
|
|
35781
35926
|
|
|
35927
|
+
@property
|
|
35928
|
+
def GopUnit(self):
|
|
35929
|
+
return self._GopUnit
|
|
35930
|
+
|
|
35931
|
+
@GopUnit.setter
|
|
35932
|
+
def GopUnit(self, GopUnit):
|
|
35933
|
+
self._GopUnit = GopUnit
|
|
35934
|
+
|
|
35782
35935
|
@property
|
|
35783
35936
|
def FillType(self):
|
|
35784
35937
|
return self._FillType
|
|
@@ -35795,6 +35948,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35795
35948
|
def Vcrf(self, Vcrf):
|
|
35796
35949
|
self._Vcrf = Vcrf
|
|
35797
35950
|
|
|
35951
|
+
@property
|
|
35952
|
+
def HlsTime(self):
|
|
35953
|
+
return self._HlsTime
|
|
35954
|
+
|
|
35955
|
+
@HlsTime.setter
|
|
35956
|
+
def HlsTime(self, HlsTime):
|
|
35957
|
+
self._HlsTime = HlsTime
|
|
35958
|
+
|
|
35798
35959
|
@property
|
|
35799
35960
|
def SegmentType(self):
|
|
35800
35961
|
return self._SegmentType
|
|
@@ -35819,6 +35980,86 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35819
35980
|
def Stereo3dType(self, Stereo3dType):
|
|
35820
35981
|
self._Stereo3dType = Stereo3dType
|
|
35821
35982
|
|
|
35983
|
+
@property
|
|
35984
|
+
def VideoProfile(self):
|
|
35985
|
+
return self._VideoProfile
|
|
35986
|
+
|
|
35987
|
+
@VideoProfile.setter
|
|
35988
|
+
def VideoProfile(self, VideoProfile):
|
|
35989
|
+
self._VideoProfile = VideoProfile
|
|
35990
|
+
|
|
35991
|
+
@property
|
|
35992
|
+
def VideoLevel(self):
|
|
35993
|
+
return self._VideoLevel
|
|
35994
|
+
|
|
35995
|
+
@VideoLevel.setter
|
|
35996
|
+
def VideoLevel(self, VideoLevel):
|
|
35997
|
+
self._VideoLevel = VideoLevel
|
|
35998
|
+
|
|
35999
|
+
@property
|
|
36000
|
+
def Bframes(self):
|
|
36001
|
+
return self._Bframes
|
|
36002
|
+
|
|
36003
|
+
@Bframes.setter
|
|
36004
|
+
def Bframes(self, Bframes):
|
|
36005
|
+
self._Bframes = Bframes
|
|
36006
|
+
|
|
36007
|
+
@property
|
|
36008
|
+
def Mode(self):
|
|
36009
|
+
return self._Mode
|
|
36010
|
+
|
|
36011
|
+
@Mode.setter
|
|
36012
|
+
def Mode(self, Mode):
|
|
36013
|
+
self._Mode = Mode
|
|
36014
|
+
|
|
36015
|
+
@property
|
|
36016
|
+
def Sar(self):
|
|
36017
|
+
return self._Sar
|
|
36018
|
+
|
|
36019
|
+
@Sar.setter
|
|
36020
|
+
def Sar(self, Sar):
|
|
36021
|
+
self._Sar = Sar
|
|
36022
|
+
|
|
36023
|
+
@property
|
|
36024
|
+
def NoScenecut(self):
|
|
36025
|
+
return self._NoScenecut
|
|
36026
|
+
|
|
36027
|
+
@NoScenecut.setter
|
|
36028
|
+
def NoScenecut(self, NoScenecut):
|
|
36029
|
+
self._NoScenecut = NoScenecut
|
|
36030
|
+
|
|
36031
|
+
@property
|
|
36032
|
+
def BitDepth(self):
|
|
36033
|
+
return self._BitDepth
|
|
36034
|
+
|
|
36035
|
+
@BitDepth.setter
|
|
36036
|
+
def BitDepth(self, BitDepth):
|
|
36037
|
+
self._BitDepth = BitDepth
|
|
36038
|
+
|
|
36039
|
+
@property
|
|
36040
|
+
def RawPts(self):
|
|
36041
|
+
return self._RawPts
|
|
36042
|
+
|
|
36043
|
+
@RawPts.setter
|
|
36044
|
+
def RawPts(self, RawPts):
|
|
36045
|
+
self._RawPts = RawPts
|
|
36046
|
+
|
|
36047
|
+
@property
|
|
36048
|
+
def Compress(self):
|
|
36049
|
+
return self._Compress
|
|
36050
|
+
|
|
36051
|
+
@Compress.setter
|
|
36052
|
+
def Compress(self, Compress):
|
|
36053
|
+
self._Compress = Compress
|
|
36054
|
+
|
|
36055
|
+
@property
|
|
36056
|
+
def SegmentSpecificInfo(self):
|
|
36057
|
+
return self._SegmentSpecificInfo
|
|
36058
|
+
|
|
36059
|
+
@SegmentSpecificInfo.setter
|
|
36060
|
+
def SegmentSpecificInfo(self, SegmentSpecificInfo):
|
|
36061
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo
|
|
36062
|
+
|
|
35822
36063
|
|
|
35823
36064
|
def _deserialize(self, params):
|
|
35824
36065
|
self._Codec = params.get("Codec")
|
|
@@ -35828,11 +36069,25 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35828
36069
|
self._Width = params.get("Width")
|
|
35829
36070
|
self._Height = params.get("Height")
|
|
35830
36071
|
self._Gop = params.get("Gop")
|
|
36072
|
+
self._GopUnit = params.get("GopUnit")
|
|
35831
36073
|
self._FillType = params.get("FillType")
|
|
35832
36074
|
self._Vcrf = params.get("Vcrf")
|
|
36075
|
+
self._HlsTime = params.get("HlsTime")
|
|
35833
36076
|
self._SegmentType = params.get("SegmentType")
|
|
35834
36077
|
self._FpsDenominator = params.get("FpsDenominator")
|
|
35835
36078
|
self._Stereo3dType = params.get("Stereo3dType")
|
|
36079
|
+
self._VideoProfile = params.get("VideoProfile")
|
|
36080
|
+
self._VideoLevel = params.get("VideoLevel")
|
|
36081
|
+
self._Bframes = params.get("Bframes")
|
|
36082
|
+
self._Mode = params.get("Mode")
|
|
36083
|
+
self._Sar = params.get("Sar")
|
|
36084
|
+
self._NoScenecut = params.get("NoScenecut")
|
|
36085
|
+
self._BitDepth = params.get("BitDepth")
|
|
36086
|
+
self._RawPts = params.get("RawPts")
|
|
36087
|
+
self._Compress = params.get("Compress")
|
|
36088
|
+
if params.get("SegmentSpecificInfo") is not None:
|
|
36089
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo()
|
|
36090
|
+
self._SegmentSpecificInfo._deserialize(params.get("SegmentSpecificInfo"))
|
|
35836
36091
|
memeber_set = set(params.keys())
|
|
35837
36092
|
for name, value in vars(self).items():
|
|
35838
36093
|
property_name = name[1:]
|
|
@@ -35850,23 +36105,24 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
|
35850
36105
|
|
|
35851
36106
|
def __init__(self):
|
|
35852
36107
|
r"""
|
|
35853
|
-
:param _Codec:
|
|
35854
|
-
<li>h264: H.264 encoding
|
|
35855
|
-
<li>h265: H.265 encoding
|
|
35856
|
-
<li>h266: H.266 encoding
|
|
35857
|
-
<li>av1: AOMedia Video 1 encoding
|
|
35858
|
-
<li>vp8: VP8 encoding
|
|
35859
|
-
<li>vp9: VP9 encoding
|
|
35860
|
-
<li>mpeg2: MPEG2 encoding
|
|
35861
|
-
<li>dnxhd: DNxHD encoding
|
|
35862
|
-
<li>mv-hevc: MV-HEVC encoding
|
|
35863
|
-
Note: A resolution within 640x480 should be specified for H.265 encoding.
|
|
36108
|
+
:param _Codec: Encoding format for video streams. Optional values:
|
|
36109
|
+
<li>h264: H.264 encoding</li>
|
|
36110
|
+
<li>h265: H.265 encoding</li>
|
|
36111
|
+
<li>h266: H.266 encoding</li>
|
|
36112
|
+
<li>av1: AOMedia Video 1 encoding</li>
|
|
36113
|
+
<li>vp8: VP8 encoding</li>
|
|
36114
|
+
<li>vp9: VP9 encoding</li>
|
|
36115
|
+
<li>mpeg2: MPEG2 encoding</li>
|
|
36116
|
+
<li>dnxhd: DNxHD encoding</li>
|
|
36117
|
+
<li>mv-hevc: MV-HEVC encoding</li>
|
|
35864
36118
|
|
|
35865
|
-
Note: AV1 encoding containers only support mp4, webm, and mkv.
|
|
35866
|
-
Note: H.266 encoding containers only support mp4, hls, ts, and mov.
|
|
35867
|
-
Note: VP8 and VP9 encoding containers only support webm and mkv.
|
|
35868
|
-
Note: MPEG2 and DNxHD encoding containers only support mxf.
|
|
35869
|
-
Note: MV-HEVC encoding containers only support mp4, hls, and mov. Among them, the hls format only supports mp4 segmentation format.
|
|
36119
|
+
Note: AV1 encoding containers currently only support mp4, webm, and mkv.
|
|
36120
|
+
Note: H.266 encoding containers currently only support mp4, hls, ts, and mov.
|
|
36121
|
+
Note: VP8 and VP9 encoding containers currently only support webm and mkv.
|
|
36122
|
+
Note: MPEG2 and DNxHD encoding containers currently only support mxf.
|
|
36123
|
+
Note: MV-HEVC encoding containers only support mp4, hls, and mov. Among them, the hls format only supports mp4 segmentation format.
|
|
36124
|
+
|
|
36125
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35870
36126
|
:type Codec: str
|
|
35871
36127
|
:param _Fps: Video frame rate. Value range:
|
|
35872
36128
|
When FpsDenominator is empty, the range is [0, 120], in Hz.
|
|
@@ -35888,22 +36144,48 @@ Note: When resolution adaption is enabled, `Width` cannot be smaller than `Heigh
|
|
|
35888
36144
|
:type Width: int
|
|
35889
36145
|
:param _Height: Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096].
|
|
35890
36146
|
:type Height: int
|
|
35891
|
-
:param _Gop:
|
|
36147
|
+
:param _Gop: Interval between I-frames (keyframes), which can be customized in frames or seconds. GOP value range: 0 and [1, 100000].
|
|
36148
|
+
If this parameter is 0, the system will automatically set the GOP length.
|
|
36149
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35892
36150
|
:type Gop: int
|
|
35893
|
-
:param
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
36151
|
+
:param _GopUnit: GOP value unit. Optional values:
|
|
36152
|
+
frame: indicates frame
|
|
36153
|
+
second: indicates second
|
|
36154
|
+
Default value: frame
|
|
36155
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36156
|
+
:type GopUnit: str
|
|
36157
|
+
:param _FillType: Filling mode. When the configured aspect ratio parameter for video streams differs from the aspect ratio of the original video, the processing method for transcoding is "filling". Optional filling modes:
|
|
36158
|
+
<li>stretch: Each frame is stretched to fill the entire screen, which may cause the transcoded video to be "flattened" or "stretched".</li>
|
|
36159
|
+
<li>black: The aspect ratio of the video is kept unchanged, and the rest of the edges is filled with black.</li>
|
|
36160
|
+
<li>white: The aspect ratio of the video is kept unchanged, and the rest of the edges is filled with white.</li>
|
|
36161
|
+
<li>gauss: The aspect ratio of the video is kept unchanged, and the rest of the edges is filled with a Gaussian blur.</li>
|
|
36162
|
+
|
|
36163
|
+
<li>smarttailor: Video images are smartly selected to ensure proportional image cropping.</li>
|
|
36164
|
+
Default value: black.
|
|
36165
|
+
|
|
36166
|
+
Note: Only stretch and black are supported for adaptive bitrate streaming.
|
|
36167
|
+
|
|
36168
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35898
36169
|
:type FillType: str
|
|
35899
|
-
:param _Vcrf:
|
|
35900
|
-
It is not
|
|
36170
|
+
:param _Vcrf: Control factor for constant video bitrate. Value range: [0, 51] and 100.
|
|
36171
|
+
It is recommended not to specify this parameter if there are no special requirements.
|
|
36172
|
+
|
|
36173
|
+
Note:
|
|
36174
|
+
When you need to set it to auto, fill in 100.
|
|
36175
|
+
If Mode is set to ABR, the Vcrf value does not need to be configured.
|
|
36176
|
+
If Mode is set to CBR, the Vcrf value does not need to be configured.
|
|
36177
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
35901
36178
|
:type Vcrf: int
|
|
35902
36179
|
:param _ContentAdaptStream: Whether to enable adaptive encoding. Valid values:
|
|
35903
36180
|
<li>0: Disable</li>
|
|
35904
36181
|
<li>1: Enable</li>
|
|
35905
36182
|
Default value: 0. If this parameter is set to `1`, multiple streams with different resolutions and bitrates will be generated automatically. The highest resolution, bitrate, and quality of the streams are determined by the values of `width` and `height`, `Bitrate`, and `Vcrf` in `VideoTemplate` respectively. If these parameters are not set in `VideoTemplate`, the highest resolution generated will be the same as that of the source video, and the highest video quality will be close to VMAF 95. To use this parameter or learn about the billing details of adaptive encoding, please contact your sales rep.
|
|
35906
36183
|
:type ContentAdaptStream: int
|
|
36184
|
+
:param _HlsTime: Average segment duration. Value range: (0-10], unit: second
|
|
36185
|
+
Default value: 10
|
|
36186
|
+
Note: It is used only in the format of HLS.
|
|
36187
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36188
|
+
:type HlsTime: int
|
|
35907
36189
|
:param _SegmentType: HLS segment type. Valid values:
|
|
35908
36190
|
<li>0: HLS+TS segment.</li>
|
|
35909
36191
|
<li>2: HLS+TS byte range.</li>
|
|
@@ -35923,6 +36205,61 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35923
36205
|
Default value: side_by_side.
|
|
35924
36206
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
35925
36207
|
:type Stereo3dType: str
|
|
36208
|
+
:param _VideoProfile: Profile, suitable for different scenarios.
|
|
36209
|
+
baseline: It only supports I/P-frames and non-interlaced scenarios, and is suitable for scenarios such as video calls and mobile videos.
|
|
36210
|
+
main: It offers I-frames, P-frames, and B-frames, and supports both interlaced and non-interlaced modes. It is mainly used in mainstream audio and video consumption products such as video players and streaming media transmission devices.
|
|
36211
|
+
high: the highest encoding level, with 8x8 prediction added to the main profile and support for custom quantification. It is widely used in scenarios such as Blu-ray storage and HDTV.
|
|
36212
|
+
default: automatic filling along with the original video
|
|
36213
|
+
|
|
36214
|
+
This configuration appears only when the encoding standard is set to H264. Default value: default
|
|
36215
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36216
|
+
:type VideoProfile: str
|
|
36217
|
+
:param _VideoLevel: Encoder level. Default value: auto ("")
|
|
36218
|
+
If the encoding standard is set to H264, the following options are supported: "", 1, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1, 4.2, 5, and 5.1.
|
|
36219
|
+
If the encoding standard is set to H265, the following options are supported: "", 1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2, and 8.5.
|
|
36220
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36221
|
+
:type VideoLevel: str
|
|
36222
|
+
:param _Bframes: Maximum number of consecutive B-frames. The default is auto, and 0 - 16 and -1 are supported.
|
|
36223
|
+
Note:
|
|
36224
|
+
|
|
36225
|
+
-1 indicates auto.
|
|
36226
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36227
|
+
:type Bframes: int
|
|
36228
|
+
:param _Mode: Bitrate control mode. Optional values:
|
|
36229
|
+
VBR: variable bitrate. The output bitrate is adjusted based on the complexity of the video image, ensuring higher image quality. This mode is suitable for storage scenarios as well as applications with high image quality requirements.
|
|
36230
|
+
ABR: average bitrate. The average bitrate of the output video is kept stable to the greatest extent, but short-term bitrate fluctuations are allowed. This mode is suitable for scenarios where it is necessary to minimize the overall bitrate while a certain quality is maintained.
|
|
36231
|
+
CBR: constant bitrate. The output bitrate remains constant during the video encoding process, regardless of changes in image complexity. This mode is suitable for scenarios with strict network bandwidth requirements, such as live streaming.
|
|
36232
|
+
VCRF: constant rate factor. The video quality is controlled by setting a quality factor, achieving constant quality encoding of videos. The bitrate is automatically adjusted based on the complexity of the content. This mode is suitable for scenarios where maintaining a certain quality is desired.
|
|
36233
|
+
VBR is selected by default.
|
|
36234
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36235
|
+
:type Mode: str
|
|
36236
|
+
:param _Sar: Display aspect ratio. Optional values: [1:1, 2:1, default]
|
|
36237
|
+
Default value: default
|
|
36238
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36239
|
+
:type Sar: str
|
|
36240
|
+
:param _NoScenecut: Adaptive I-frame decision. When it is enabled, Media Processing Service will automatically identify transition points between different scenarios in the video (usually they are visually distinct frames, such as those of switching from one shot to another) and adaptively insert keyframes (I-frames) at these points to improve the random accessibility and encoding efficiency of the video. Optional values:
|
|
36241
|
+
0: Disable the adaptive I-frame decision
|
|
36242
|
+
1: Enable the adaptive I-frame decision
|
|
36243
|
+
Default value: 0
|
|
36244
|
+
|
|
36245
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36246
|
+
:type NoScenecut: int
|
|
36247
|
+
:param _BitDepth: Bit: 8/10 is supported. Default value: 8
|
|
36248
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36249
|
+
:type BitDepth: int
|
|
36250
|
+
:param _RawPts: Preservation of original timestamp. Optional values:
|
|
36251
|
+
0: Disabled
|
|
36252
|
+
1: Enabled
|
|
36253
|
+
Default value: Disabled
|
|
36254
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36255
|
+
:type RawPts: int
|
|
36256
|
+
:param _Compress: Proportional compression bitrate. When it is enabled, the bitrate of the output video will be adjusted according to the proportion. After the compression ratio is entered, the system will automatically calculate the target output bitrate based on the source video bitrate. Compression ratio range: 0-100, optional values: [0-100] and -1
|
|
36257
|
+
Note: -1 indicates auto.
|
|
36258
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36259
|
+
:type Compress: int
|
|
36260
|
+
:param _SegmentSpecificInfo: Special segment configuration
|
|
36261
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
36262
|
+
:type SegmentSpecificInfo: :class:`tencentcloud.mps.v20190612.models.SegmentSpecificInfo`
|
|
35926
36263
|
"""
|
|
35927
36264
|
self._Codec = None
|
|
35928
36265
|
self._Fps = None
|
|
@@ -35931,12 +36268,24 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35931
36268
|
self._Width = None
|
|
35932
36269
|
self._Height = None
|
|
35933
36270
|
self._Gop = None
|
|
36271
|
+
self._GopUnit = None
|
|
35934
36272
|
self._FillType = None
|
|
35935
36273
|
self._Vcrf = None
|
|
35936
36274
|
self._ContentAdaptStream = None
|
|
36275
|
+
self._HlsTime = None
|
|
35937
36276
|
self._SegmentType = None
|
|
35938
36277
|
self._FpsDenominator = None
|
|
35939
36278
|
self._Stereo3dType = None
|
|
36279
|
+
self._VideoProfile = None
|
|
36280
|
+
self._VideoLevel = None
|
|
36281
|
+
self._Bframes = None
|
|
36282
|
+
self._Mode = None
|
|
36283
|
+
self._Sar = None
|
|
36284
|
+
self._NoScenecut = None
|
|
36285
|
+
self._BitDepth = None
|
|
36286
|
+
self._RawPts = None
|
|
36287
|
+
self._Compress = None
|
|
36288
|
+
self._SegmentSpecificInfo = None
|
|
35940
36289
|
|
|
35941
36290
|
@property
|
|
35942
36291
|
def Codec(self):
|
|
@@ -35994,6 +36343,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
35994
36343
|
def Gop(self, Gop):
|
|
35995
36344
|
self._Gop = Gop
|
|
35996
36345
|
|
|
36346
|
+
@property
|
|
36347
|
+
def GopUnit(self):
|
|
36348
|
+
return self._GopUnit
|
|
36349
|
+
|
|
36350
|
+
@GopUnit.setter
|
|
36351
|
+
def GopUnit(self, GopUnit):
|
|
36352
|
+
self._GopUnit = GopUnit
|
|
36353
|
+
|
|
35997
36354
|
@property
|
|
35998
36355
|
def FillType(self):
|
|
35999
36356
|
return self._FillType
|
|
@@ -36018,6 +36375,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
36018
36375
|
def ContentAdaptStream(self, ContentAdaptStream):
|
|
36019
36376
|
self._ContentAdaptStream = ContentAdaptStream
|
|
36020
36377
|
|
|
36378
|
+
@property
|
|
36379
|
+
def HlsTime(self):
|
|
36380
|
+
return self._HlsTime
|
|
36381
|
+
|
|
36382
|
+
@HlsTime.setter
|
|
36383
|
+
def HlsTime(self, HlsTime):
|
|
36384
|
+
self._HlsTime = HlsTime
|
|
36385
|
+
|
|
36021
36386
|
@property
|
|
36022
36387
|
def SegmentType(self):
|
|
36023
36388
|
return self._SegmentType
|
|
@@ -36042,6 +36407,86 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
36042
36407
|
def Stereo3dType(self, Stereo3dType):
|
|
36043
36408
|
self._Stereo3dType = Stereo3dType
|
|
36044
36409
|
|
|
36410
|
+
@property
|
|
36411
|
+
def VideoProfile(self):
|
|
36412
|
+
return self._VideoProfile
|
|
36413
|
+
|
|
36414
|
+
@VideoProfile.setter
|
|
36415
|
+
def VideoProfile(self, VideoProfile):
|
|
36416
|
+
self._VideoProfile = VideoProfile
|
|
36417
|
+
|
|
36418
|
+
@property
|
|
36419
|
+
def VideoLevel(self):
|
|
36420
|
+
return self._VideoLevel
|
|
36421
|
+
|
|
36422
|
+
@VideoLevel.setter
|
|
36423
|
+
def VideoLevel(self, VideoLevel):
|
|
36424
|
+
self._VideoLevel = VideoLevel
|
|
36425
|
+
|
|
36426
|
+
@property
|
|
36427
|
+
def Bframes(self):
|
|
36428
|
+
return self._Bframes
|
|
36429
|
+
|
|
36430
|
+
@Bframes.setter
|
|
36431
|
+
def Bframes(self, Bframes):
|
|
36432
|
+
self._Bframes = Bframes
|
|
36433
|
+
|
|
36434
|
+
@property
|
|
36435
|
+
def Mode(self):
|
|
36436
|
+
return self._Mode
|
|
36437
|
+
|
|
36438
|
+
@Mode.setter
|
|
36439
|
+
def Mode(self, Mode):
|
|
36440
|
+
self._Mode = Mode
|
|
36441
|
+
|
|
36442
|
+
@property
|
|
36443
|
+
def Sar(self):
|
|
36444
|
+
return self._Sar
|
|
36445
|
+
|
|
36446
|
+
@Sar.setter
|
|
36447
|
+
def Sar(self, Sar):
|
|
36448
|
+
self._Sar = Sar
|
|
36449
|
+
|
|
36450
|
+
@property
|
|
36451
|
+
def NoScenecut(self):
|
|
36452
|
+
return self._NoScenecut
|
|
36453
|
+
|
|
36454
|
+
@NoScenecut.setter
|
|
36455
|
+
def NoScenecut(self, NoScenecut):
|
|
36456
|
+
self._NoScenecut = NoScenecut
|
|
36457
|
+
|
|
36458
|
+
@property
|
|
36459
|
+
def BitDepth(self):
|
|
36460
|
+
return self._BitDepth
|
|
36461
|
+
|
|
36462
|
+
@BitDepth.setter
|
|
36463
|
+
def BitDepth(self, BitDepth):
|
|
36464
|
+
self._BitDepth = BitDepth
|
|
36465
|
+
|
|
36466
|
+
@property
|
|
36467
|
+
def RawPts(self):
|
|
36468
|
+
return self._RawPts
|
|
36469
|
+
|
|
36470
|
+
@RawPts.setter
|
|
36471
|
+
def RawPts(self, RawPts):
|
|
36472
|
+
self._RawPts = RawPts
|
|
36473
|
+
|
|
36474
|
+
@property
|
|
36475
|
+
def Compress(self):
|
|
36476
|
+
return self._Compress
|
|
36477
|
+
|
|
36478
|
+
@Compress.setter
|
|
36479
|
+
def Compress(self, Compress):
|
|
36480
|
+
self._Compress = Compress
|
|
36481
|
+
|
|
36482
|
+
@property
|
|
36483
|
+
def SegmentSpecificInfo(self):
|
|
36484
|
+
return self._SegmentSpecificInfo
|
|
36485
|
+
|
|
36486
|
+
@SegmentSpecificInfo.setter
|
|
36487
|
+
def SegmentSpecificInfo(self, SegmentSpecificInfo):
|
|
36488
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo
|
|
36489
|
+
|
|
36045
36490
|
|
|
36046
36491
|
def _deserialize(self, params):
|
|
36047
36492
|
self._Codec = params.get("Codec")
|
|
@@ -36051,12 +36496,26 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
36051
36496
|
self._Width = params.get("Width")
|
|
36052
36497
|
self._Height = params.get("Height")
|
|
36053
36498
|
self._Gop = params.get("Gop")
|
|
36499
|
+
self._GopUnit = params.get("GopUnit")
|
|
36054
36500
|
self._FillType = params.get("FillType")
|
|
36055
36501
|
self._Vcrf = params.get("Vcrf")
|
|
36056
36502
|
self._ContentAdaptStream = params.get("ContentAdaptStream")
|
|
36503
|
+
self._HlsTime = params.get("HlsTime")
|
|
36057
36504
|
self._SegmentType = params.get("SegmentType")
|
|
36058
36505
|
self._FpsDenominator = params.get("FpsDenominator")
|
|
36059
36506
|
self._Stereo3dType = params.get("Stereo3dType")
|
|
36507
|
+
self._VideoProfile = params.get("VideoProfile")
|
|
36508
|
+
self._VideoLevel = params.get("VideoLevel")
|
|
36509
|
+
self._Bframes = params.get("Bframes")
|
|
36510
|
+
self._Mode = params.get("Mode")
|
|
36511
|
+
self._Sar = params.get("Sar")
|
|
36512
|
+
self._NoScenecut = params.get("NoScenecut")
|
|
36513
|
+
self._BitDepth = params.get("BitDepth")
|
|
36514
|
+
self._RawPts = params.get("RawPts")
|
|
36515
|
+
self._Compress = params.get("Compress")
|
|
36516
|
+
if params.get("SegmentSpecificInfo") is not None:
|
|
36517
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo()
|
|
36518
|
+
self._SegmentSpecificInfo._deserialize(params.get("SegmentSpecificInfo"))
|
|
36060
36519
|
memeber_set = set(params.keys())
|
|
36061
36520
|
for name, value in vars(self).items():
|
|
36062
36521
|
property_name = name[1:]
|