tencentcloud-sdk-python 3.0.1248__py2.py3-none-any.whl → 3.0.1249__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cbs/v20170312/models.py +3 -3
- tencentcloud/cdn/v20180606/models.py +1 -1
- tencentcloud/cdwch/v20200915/models.py +26 -0
- tencentcloud/clb/v20180317/models.py +10 -5
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +1 -1
- tencentcloud/cynosdb/v20190107/models.py +146 -0
- tencentcloud/dsgc/v20190723/models.py +190 -26
- tencentcloud/ess/v20201111/ess_client.py +8 -15
- tencentcloud/ess/v20201111/models.py +98 -10
- tencentcloud/essbasic/v20210526/essbasic_client.py +35 -15
- tencentcloud/essbasic/v20210526/models.py +144 -4
- tencentcloud/iotexplorer/v20190423/errorcodes.py +6 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +293 -0
- tencentcloud/lke/v20231130/models.py +1 -2
- tencentcloud/mongodb/v20190725/models.py +3 -4
- tencentcloud/mps/v20190612/errorcodes.py +3 -0
- tencentcloud/mps/v20190612/models.py +981 -17
- tencentcloud/mps/v20190612/mps_client.py +93 -0
- tencentcloud/oceanus/v20190422/models.py +146 -0
- tencentcloud/oceanus/v20190422/oceanus_client.py +23 -0
- tencentcloud/redis/v20180412/models.py +98 -1
- tencentcloud/redis/v20180412/redis_client.py +24 -1
- tencentcloud/tcss/v20201101/tcss_client.py +15 -5
- tencentcloud/tms/v20201229/errorcodes.py +3 -0
- tencentcloud/tms/v20201229/models.py +1 -1
- tencentcloud/trtc/v20190722/models.py +24 -5
- tencentcloud/waf/v20180125/models.py +1456 -515
- tencentcloud/waf/v20180125/waf_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1248.dist-info → tencentcloud_sdk_python-3.0.1249.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1248.dist-info → tencentcloud_sdk_python-3.0.1249.dist-info}/RECORD +35 -35
- {tencentcloud_sdk_python-3.0.1248.dist-info → tencentcloud_sdk_python-3.0.1249.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1248.dist-info → tencentcloud_sdk_python-3.0.1249.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1248.dist-info → tencentcloud_sdk_python-3.0.1249.dist-info}/top_level.txt +0 -0
@@ -15506,6 +15506,192 @@ class CreateTranscodeTemplateResponse(AbstractModel):
|
|
15506
15506
|
self._RequestId = params.get("RequestId")
|
15507
15507
|
|
15508
15508
|
|
15509
|
+
class CreateVideoDatabaseEntryTaskRequest(AbstractModel):
|
15510
|
+
"""CreateVideoDatabaseEntryTask请求参数结构体
|
15511
|
+
|
15512
|
+
"""
|
15513
|
+
|
15514
|
+
def __init__(self):
|
15515
|
+
r"""
|
15516
|
+
:param _InputInfo: 待入库视频信息
|
15517
|
+
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
15518
|
+
:param _TaskNotifyConfig: 可选,入库任务完成后向指定的回调地址传递任务结果,目前仅支持URL
|
15519
|
+
:type TaskNotifyConfig: :class:`tencentcloud.mps.v20190612.models.TaskNotifyConfig`
|
15520
|
+
"""
|
15521
|
+
self._InputInfo = None
|
15522
|
+
self._TaskNotifyConfig = None
|
15523
|
+
|
15524
|
+
@property
|
15525
|
+
def InputInfo(self):
|
15526
|
+
return self._InputInfo
|
15527
|
+
|
15528
|
+
@InputInfo.setter
|
15529
|
+
def InputInfo(self, InputInfo):
|
15530
|
+
self._InputInfo = InputInfo
|
15531
|
+
|
15532
|
+
@property
|
15533
|
+
def TaskNotifyConfig(self):
|
15534
|
+
return self._TaskNotifyConfig
|
15535
|
+
|
15536
|
+
@TaskNotifyConfig.setter
|
15537
|
+
def TaskNotifyConfig(self, TaskNotifyConfig):
|
15538
|
+
self._TaskNotifyConfig = TaskNotifyConfig
|
15539
|
+
|
15540
|
+
|
15541
|
+
def _deserialize(self, params):
|
15542
|
+
if params.get("InputInfo") is not None:
|
15543
|
+
self._InputInfo = MediaInputInfo()
|
15544
|
+
self._InputInfo._deserialize(params.get("InputInfo"))
|
15545
|
+
if params.get("TaskNotifyConfig") is not None:
|
15546
|
+
self._TaskNotifyConfig = TaskNotifyConfig()
|
15547
|
+
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
15548
|
+
memeber_set = set(params.keys())
|
15549
|
+
for name, value in vars(self).items():
|
15550
|
+
property_name = name[1:]
|
15551
|
+
if property_name in memeber_set:
|
15552
|
+
memeber_set.remove(property_name)
|
15553
|
+
if len(memeber_set) > 0:
|
15554
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
15555
|
+
|
15556
|
+
|
15557
|
+
|
15558
|
+
class CreateVideoDatabaseEntryTaskResponse(AbstractModel):
|
15559
|
+
"""CreateVideoDatabaseEntryTask返回参数结构体
|
15560
|
+
|
15561
|
+
"""
|
15562
|
+
|
15563
|
+
def __init__(self):
|
15564
|
+
r"""
|
15565
|
+
:param _TaskId: 任务ID
|
15566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
15567
|
+
:type TaskId: str
|
15568
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
15569
|
+
:type RequestId: str
|
15570
|
+
"""
|
15571
|
+
self._TaskId = None
|
15572
|
+
self._RequestId = None
|
15573
|
+
|
15574
|
+
@property
|
15575
|
+
def TaskId(self):
|
15576
|
+
return self._TaskId
|
15577
|
+
|
15578
|
+
@TaskId.setter
|
15579
|
+
def TaskId(self, TaskId):
|
15580
|
+
self._TaskId = TaskId
|
15581
|
+
|
15582
|
+
@property
|
15583
|
+
def RequestId(self):
|
15584
|
+
return self._RequestId
|
15585
|
+
|
15586
|
+
@RequestId.setter
|
15587
|
+
def RequestId(self, RequestId):
|
15588
|
+
self._RequestId = RequestId
|
15589
|
+
|
15590
|
+
|
15591
|
+
def _deserialize(self, params):
|
15592
|
+
self._TaskId = params.get("TaskId")
|
15593
|
+
self._RequestId = params.get("RequestId")
|
15594
|
+
|
15595
|
+
|
15596
|
+
class CreateVideoSearchTaskRequest(AbstractModel):
|
15597
|
+
"""CreateVideoSearchTask请求参数结构体
|
15598
|
+
|
15599
|
+
"""
|
15600
|
+
|
15601
|
+
def __init__(self):
|
15602
|
+
r"""
|
15603
|
+
:param _SearchValueInput: 用于检索任务的输入
|
15604
|
+
:type SearchValueInput: :class:`tencentcloud.mps.v20190612.models.SearchValueInput`
|
15605
|
+
:param _Limit: 返回视频的最大数量,取值范围[1,20],将返回最相近的前Limit条视频,默认为5
|
15606
|
+
:type Limit: int
|
15607
|
+
:param _TaskNotifyConfig: 可选,用于检索任务完成后向回调方发送检索结果,目前仅支持URL方式
|
15608
|
+
:type TaskNotifyConfig: :class:`tencentcloud.mps.v20190612.models.TaskNotifyConfig`
|
15609
|
+
"""
|
15610
|
+
self._SearchValueInput = None
|
15611
|
+
self._Limit = None
|
15612
|
+
self._TaskNotifyConfig = None
|
15613
|
+
|
15614
|
+
@property
|
15615
|
+
def SearchValueInput(self):
|
15616
|
+
return self._SearchValueInput
|
15617
|
+
|
15618
|
+
@SearchValueInput.setter
|
15619
|
+
def SearchValueInput(self, SearchValueInput):
|
15620
|
+
self._SearchValueInput = SearchValueInput
|
15621
|
+
|
15622
|
+
@property
|
15623
|
+
def Limit(self):
|
15624
|
+
return self._Limit
|
15625
|
+
|
15626
|
+
@Limit.setter
|
15627
|
+
def Limit(self, Limit):
|
15628
|
+
self._Limit = Limit
|
15629
|
+
|
15630
|
+
@property
|
15631
|
+
def TaskNotifyConfig(self):
|
15632
|
+
return self._TaskNotifyConfig
|
15633
|
+
|
15634
|
+
@TaskNotifyConfig.setter
|
15635
|
+
def TaskNotifyConfig(self, TaskNotifyConfig):
|
15636
|
+
self._TaskNotifyConfig = TaskNotifyConfig
|
15637
|
+
|
15638
|
+
|
15639
|
+
def _deserialize(self, params):
|
15640
|
+
if params.get("SearchValueInput") is not None:
|
15641
|
+
self._SearchValueInput = SearchValueInput()
|
15642
|
+
self._SearchValueInput._deserialize(params.get("SearchValueInput"))
|
15643
|
+
self._Limit = params.get("Limit")
|
15644
|
+
if params.get("TaskNotifyConfig") is not None:
|
15645
|
+
self._TaskNotifyConfig = TaskNotifyConfig()
|
15646
|
+
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
15647
|
+
memeber_set = set(params.keys())
|
15648
|
+
for name, value in vars(self).items():
|
15649
|
+
property_name = name[1:]
|
15650
|
+
if property_name in memeber_set:
|
15651
|
+
memeber_set.remove(property_name)
|
15652
|
+
if len(memeber_set) > 0:
|
15653
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
15654
|
+
|
15655
|
+
|
15656
|
+
|
15657
|
+
class CreateVideoSearchTaskResponse(AbstractModel):
|
15658
|
+
"""CreateVideoSearchTask返回参数结构体
|
15659
|
+
|
15660
|
+
"""
|
15661
|
+
|
15662
|
+
def __init__(self):
|
15663
|
+
r"""
|
15664
|
+
:param _TaskId: 检索任务的Id,用于后续查询任务状态和返回任务结果时标识任务
|
15665
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
15666
|
+
:type TaskId: str
|
15667
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
15668
|
+
:type RequestId: str
|
15669
|
+
"""
|
15670
|
+
self._TaskId = None
|
15671
|
+
self._RequestId = None
|
15672
|
+
|
15673
|
+
@property
|
15674
|
+
def TaskId(self):
|
15675
|
+
return self._TaskId
|
15676
|
+
|
15677
|
+
@TaskId.setter
|
15678
|
+
def TaskId(self, TaskId):
|
15679
|
+
self._TaskId = TaskId
|
15680
|
+
|
15681
|
+
@property
|
15682
|
+
def RequestId(self):
|
15683
|
+
return self._RequestId
|
15684
|
+
|
15685
|
+
@RequestId.setter
|
15686
|
+
def RequestId(self, RequestId):
|
15687
|
+
self._RequestId = RequestId
|
15688
|
+
|
15689
|
+
|
15690
|
+
def _deserialize(self, params):
|
15691
|
+
self._TaskId = params.get("TaskId")
|
15692
|
+
self._RequestId = params.get("RequestId")
|
15693
|
+
|
15694
|
+
|
15509
15695
|
class CreateWatermarkTemplateRequest(AbstractModel):
|
15510
15696
|
"""CreateWatermarkTemplate请求参数结构体
|
15511
15697
|
|
@@ -22324,12 +22510,215 @@ class DescribeTranscodeTemplatesResponse(AbstractModel):
|
|
22324
22510
|
self._TotalCount = TotalCount
|
22325
22511
|
|
22326
22512
|
@property
|
22327
|
-
def TranscodeTemplateSet(self):
|
22328
|
-
return self._TranscodeTemplateSet
|
22513
|
+
def TranscodeTemplateSet(self):
|
22514
|
+
return self._TranscodeTemplateSet
|
22515
|
+
|
22516
|
+
@TranscodeTemplateSet.setter
|
22517
|
+
def TranscodeTemplateSet(self, TranscodeTemplateSet):
|
22518
|
+
self._TranscodeTemplateSet = TranscodeTemplateSet
|
22519
|
+
|
22520
|
+
@property
|
22521
|
+
def RequestId(self):
|
22522
|
+
return self._RequestId
|
22523
|
+
|
22524
|
+
@RequestId.setter
|
22525
|
+
def RequestId(self, RequestId):
|
22526
|
+
self._RequestId = RequestId
|
22527
|
+
|
22528
|
+
|
22529
|
+
def _deserialize(self, params):
|
22530
|
+
self._TotalCount = params.get("TotalCount")
|
22531
|
+
if params.get("TranscodeTemplateSet") is not None:
|
22532
|
+
self._TranscodeTemplateSet = []
|
22533
|
+
for item in params.get("TranscodeTemplateSet"):
|
22534
|
+
obj = TranscodeTemplate()
|
22535
|
+
obj._deserialize(item)
|
22536
|
+
self._TranscodeTemplateSet.append(obj)
|
22537
|
+
self._RequestId = params.get("RequestId")
|
22538
|
+
|
22539
|
+
|
22540
|
+
class DescribeVideoDatabaseEntryTaskDetailRequest(AbstractModel):
|
22541
|
+
"""DescribeVideoDatabaseEntryTaskDetail请求参数结构体
|
22542
|
+
|
22543
|
+
"""
|
22544
|
+
|
22545
|
+
def __init__(self):
|
22546
|
+
r"""
|
22547
|
+
:param _TaskId: 待查询的任务Id
|
22548
|
+
:type TaskId: str
|
22549
|
+
"""
|
22550
|
+
self._TaskId = None
|
22551
|
+
|
22552
|
+
@property
|
22553
|
+
def TaskId(self):
|
22554
|
+
return self._TaskId
|
22555
|
+
|
22556
|
+
@TaskId.setter
|
22557
|
+
def TaskId(self, TaskId):
|
22558
|
+
self._TaskId = TaskId
|
22559
|
+
|
22560
|
+
|
22561
|
+
def _deserialize(self, params):
|
22562
|
+
self._TaskId = params.get("TaskId")
|
22563
|
+
memeber_set = set(params.keys())
|
22564
|
+
for name, value in vars(self).items():
|
22565
|
+
property_name = name[1:]
|
22566
|
+
if property_name in memeber_set:
|
22567
|
+
memeber_set.remove(property_name)
|
22568
|
+
if len(memeber_set) > 0:
|
22569
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
22570
|
+
|
22571
|
+
|
22572
|
+
|
22573
|
+
class DescribeVideoDatabaseEntryTaskDetailResponse(AbstractModel):
|
22574
|
+
"""DescribeVideoDatabaseEntryTaskDetail返回参数结构体
|
22575
|
+
|
22576
|
+
"""
|
22577
|
+
|
22578
|
+
def __init__(self):
|
22579
|
+
r"""
|
22580
|
+
:param _TaskId: 查询的任务Id
|
22581
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22582
|
+
:type TaskId: str
|
22583
|
+
:param _Status: 查询的任务的状态,可能为WAITING、PROCESSING、FAIL、SUCCESS。
|
22584
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22585
|
+
:type Status: str
|
22586
|
+
:param _VideoDBEntryTaskResults: 查询的任务的结果
|
22587
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22588
|
+
:type VideoDBEntryTaskResults: list of VideoDBEntryTaskResult
|
22589
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
22590
|
+
:type RequestId: str
|
22591
|
+
"""
|
22592
|
+
self._TaskId = None
|
22593
|
+
self._Status = None
|
22594
|
+
self._VideoDBEntryTaskResults = None
|
22595
|
+
self._RequestId = None
|
22596
|
+
|
22597
|
+
@property
|
22598
|
+
def TaskId(self):
|
22599
|
+
return self._TaskId
|
22600
|
+
|
22601
|
+
@TaskId.setter
|
22602
|
+
def TaskId(self, TaskId):
|
22603
|
+
self._TaskId = TaskId
|
22604
|
+
|
22605
|
+
@property
|
22606
|
+
def Status(self):
|
22607
|
+
return self._Status
|
22608
|
+
|
22609
|
+
@Status.setter
|
22610
|
+
def Status(self, Status):
|
22611
|
+
self._Status = Status
|
22612
|
+
|
22613
|
+
@property
|
22614
|
+
def VideoDBEntryTaskResults(self):
|
22615
|
+
return self._VideoDBEntryTaskResults
|
22616
|
+
|
22617
|
+
@VideoDBEntryTaskResults.setter
|
22618
|
+
def VideoDBEntryTaskResults(self, VideoDBEntryTaskResults):
|
22619
|
+
self._VideoDBEntryTaskResults = VideoDBEntryTaskResults
|
22620
|
+
|
22621
|
+
@property
|
22622
|
+
def RequestId(self):
|
22623
|
+
return self._RequestId
|
22624
|
+
|
22625
|
+
@RequestId.setter
|
22626
|
+
def RequestId(self, RequestId):
|
22627
|
+
self._RequestId = RequestId
|
22628
|
+
|
22629
|
+
|
22630
|
+
def _deserialize(self, params):
|
22631
|
+
self._TaskId = params.get("TaskId")
|
22632
|
+
self._Status = params.get("Status")
|
22633
|
+
if params.get("VideoDBEntryTaskResults") is not None:
|
22634
|
+
self._VideoDBEntryTaskResults = []
|
22635
|
+
for item in params.get("VideoDBEntryTaskResults"):
|
22636
|
+
obj = VideoDBEntryTaskResult()
|
22637
|
+
obj._deserialize(item)
|
22638
|
+
self._VideoDBEntryTaskResults.append(obj)
|
22639
|
+
self._RequestId = params.get("RequestId")
|
22640
|
+
|
22641
|
+
|
22642
|
+
class DescribeVideoSearchTaskDetailRequest(AbstractModel):
|
22643
|
+
"""DescribeVideoSearchTaskDetail请求参数结构体
|
22644
|
+
|
22645
|
+
"""
|
22646
|
+
|
22647
|
+
def __init__(self):
|
22648
|
+
r"""
|
22649
|
+
:param _TaskId: 待查询的任务Id
|
22650
|
+
:type TaskId: str
|
22651
|
+
"""
|
22652
|
+
self._TaskId = None
|
22653
|
+
|
22654
|
+
@property
|
22655
|
+
def TaskId(self):
|
22656
|
+
return self._TaskId
|
22657
|
+
|
22658
|
+
@TaskId.setter
|
22659
|
+
def TaskId(self, TaskId):
|
22660
|
+
self._TaskId = TaskId
|
22661
|
+
|
22662
|
+
|
22663
|
+
def _deserialize(self, params):
|
22664
|
+
self._TaskId = params.get("TaskId")
|
22665
|
+
memeber_set = set(params.keys())
|
22666
|
+
for name, value in vars(self).items():
|
22667
|
+
property_name = name[1:]
|
22668
|
+
if property_name in memeber_set:
|
22669
|
+
memeber_set.remove(property_name)
|
22670
|
+
if len(memeber_set) > 0:
|
22671
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
22672
|
+
|
22673
|
+
|
22674
|
+
|
22675
|
+
class DescribeVideoSearchTaskDetailResponse(AbstractModel):
|
22676
|
+
"""DescribeVideoSearchTaskDetail返回参数结构体
|
22677
|
+
|
22678
|
+
"""
|
22679
|
+
|
22680
|
+
def __init__(self):
|
22681
|
+
r"""
|
22682
|
+
:param _TaskId: 查询的任务Id
|
22683
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22684
|
+
:type TaskId: str
|
22685
|
+
:param _Status: 查询的任务的状态,可能为WAITING、PROCESSING、FAIL、SUCCESS。
|
22686
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22687
|
+
:type Status: str
|
22688
|
+
:param _SearchTaskResults: 查询的任务的结果
|
22689
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22690
|
+
:type SearchTaskResults: list of SearchTaskResult
|
22691
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
22692
|
+
:type RequestId: str
|
22693
|
+
"""
|
22694
|
+
self._TaskId = None
|
22695
|
+
self._Status = None
|
22696
|
+
self._SearchTaskResults = None
|
22697
|
+
self._RequestId = None
|
22698
|
+
|
22699
|
+
@property
|
22700
|
+
def TaskId(self):
|
22701
|
+
return self._TaskId
|
22702
|
+
|
22703
|
+
@TaskId.setter
|
22704
|
+
def TaskId(self, TaskId):
|
22705
|
+
self._TaskId = TaskId
|
22706
|
+
|
22707
|
+
@property
|
22708
|
+
def Status(self):
|
22709
|
+
return self._Status
|
22710
|
+
|
22711
|
+
@Status.setter
|
22712
|
+
def Status(self, Status):
|
22713
|
+
self._Status = Status
|
22714
|
+
|
22715
|
+
@property
|
22716
|
+
def SearchTaskResults(self):
|
22717
|
+
return self._SearchTaskResults
|
22329
22718
|
|
22330
|
-
@
|
22331
|
-
def
|
22332
|
-
self.
|
22719
|
+
@SearchTaskResults.setter
|
22720
|
+
def SearchTaskResults(self, SearchTaskResults):
|
22721
|
+
self._SearchTaskResults = SearchTaskResults
|
22333
22722
|
|
22334
22723
|
@property
|
22335
22724
|
def RequestId(self):
|
@@ -22341,13 +22730,14 @@ class DescribeTranscodeTemplatesResponse(AbstractModel):
|
|
22341
22730
|
|
22342
22731
|
|
22343
22732
|
def _deserialize(self, params):
|
22344
|
-
self.
|
22345
|
-
|
22346
|
-
|
22347
|
-
|
22348
|
-
|
22733
|
+
self._TaskId = params.get("TaskId")
|
22734
|
+
self._Status = params.get("Status")
|
22735
|
+
if params.get("SearchTaskResults") is not None:
|
22736
|
+
self._SearchTaskResults = []
|
22737
|
+
for item in params.get("SearchTaskResults"):
|
22738
|
+
obj = SearchTaskResult()
|
22349
22739
|
obj._deserialize(item)
|
22350
|
-
self.
|
22740
|
+
self._SearchTaskResults.append(obj)
|
22351
22741
|
self._RequestId = params.get("RequestId")
|
22352
22742
|
|
22353
22743
|
|
@@ -40468,6 +40858,100 @@ class ScratchRepairConfig(AbstractModel):
|
|
40468
40858
|
|
40469
40859
|
|
40470
40860
|
|
40861
|
+
class SearchTaskResult(AbstractModel):
|
40862
|
+
"""视频检索的检索结果
|
40863
|
+
|
40864
|
+
"""
|
40865
|
+
|
40866
|
+
def __init__(self):
|
40867
|
+
r"""
|
40868
|
+
:param _Score: 视频在本次检索中的得分,得分越高和检索值越相似,取值范围[0,1]
|
40869
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
40870
|
+
:type Score: float
|
40871
|
+
:param _VideoId: 检索获得的视频ID
|
40872
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
40873
|
+
:type VideoId: str
|
40874
|
+
"""
|
40875
|
+
self._Score = None
|
40876
|
+
self._VideoId = None
|
40877
|
+
|
40878
|
+
@property
|
40879
|
+
def Score(self):
|
40880
|
+
return self._Score
|
40881
|
+
|
40882
|
+
@Score.setter
|
40883
|
+
def Score(self, Score):
|
40884
|
+
self._Score = Score
|
40885
|
+
|
40886
|
+
@property
|
40887
|
+
def VideoId(self):
|
40888
|
+
return self._VideoId
|
40889
|
+
|
40890
|
+
@VideoId.setter
|
40891
|
+
def VideoId(self, VideoId):
|
40892
|
+
self._VideoId = VideoId
|
40893
|
+
|
40894
|
+
|
40895
|
+
def _deserialize(self, params):
|
40896
|
+
self._Score = params.get("Score")
|
40897
|
+
self._VideoId = params.get("VideoId")
|
40898
|
+
memeber_set = set(params.keys())
|
40899
|
+
for name, value in vars(self).items():
|
40900
|
+
property_name = name[1:]
|
40901
|
+
if property_name in memeber_set:
|
40902
|
+
memeber_set.remove(property_name)
|
40903
|
+
if len(memeber_set) > 0:
|
40904
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
40905
|
+
|
40906
|
+
|
40907
|
+
|
40908
|
+
class SearchValueInput(AbstractModel):
|
40909
|
+
"""视频检索的检索输入
|
40910
|
+
|
40911
|
+
"""
|
40912
|
+
|
40913
|
+
def __init__(self):
|
40914
|
+
r"""
|
40915
|
+
:param _SearchValueType: 检索输入的类型,目前支持:
|
40916
|
+
Text:文本检索
|
40917
|
+
:type SearchValueType: str
|
40918
|
+
:param _TextInput: 当SearchValueType为Text时有效且必填,用于检索视频的文本
|
40919
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
40920
|
+
:type TextInput: str
|
40921
|
+
"""
|
40922
|
+
self._SearchValueType = None
|
40923
|
+
self._TextInput = None
|
40924
|
+
|
40925
|
+
@property
|
40926
|
+
def SearchValueType(self):
|
40927
|
+
return self._SearchValueType
|
40928
|
+
|
40929
|
+
@SearchValueType.setter
|
40930
|
+
def SearchValueType(self, SearchValueType):
|
40931
|
+
self._SearchValueType = SearchValueType
|
40932
|
+
|
40933
|
+
@property
|
40934
|
+
def TextInput(self):
|
40935
|
+
return self._TextInput
|
40936
|
+
|
40937
|
+
@TextInput.setter
|
40938
|
+
def TextInput(self, TextInput):
|
40939
|
+
self._TextInput = TextInput
|
40940
|
+
|
40941
|
+
|
40942
|
+
def _deserialize(self, params):
|
40943
|
+
self._SearchValueType = params.get("SearchValueType")
|
40944
|
+
self._TextInput = params.get("TextInput")
|
40945
|
+
memeber_set = set(params.keys())
|
40946
|
+
for name, value in vars(self).items():
|
40947
|
+
property_name = name[1:]
|
40948
|
+
if property_name in memeber_set:
|
40949
|
+
memeber_set.remove(property_name)
|
40950
|
+
if len(memeber_set) > 0:
|
40951
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
40952
|
+
|
40953
|
+
|
40954
|
+
|
40471
40955
|
class SegmentRecognitionItem(AbstractModel):
|
40472
40956
|
"""智能拆条片段。
|
40473
40957
|
|
@@ -40564,6 +41048,69 @@ class SegmentRecognitionItem(AbstractModel):
|
|
40564
41048
|
|
40565
41049
|
|
40566
41050
|
|
41051
|
+
class SegmentSpecificInfo(AbstractModel):
|
41052
|
+
"""切片特殊配置信息。
|
41053
|
+
|
41054
|
+
"""
|
41055
|
+
|
41056
|
+
def __init__(self):
|
41057
|
+
r"""
|
41058
|
+
:param _Switch: 启动分片时长开关,可选值:
|
41059
|
+
on:打开
|
41060
|
+
off:关闭
|
41061
|
+
默认off
|
41062
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
41063
|
+
:type Switch: str
|
41064
|
+
:param _FragmentTime: 启动时分片时长,单位:秒
|
41065
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
41066
|
+
:type FragmentTime: int
|
41067
|
+
:param _FragmentEndNum: 生效分片数,表示前FragmentEndNum个分片以FragmentTime时长切片,取值>=1
|
41068
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
41069
|
+
:type FragmentEndNum: int
|
41070
|
+
"""
|
41071
|
+
self._Switch = None
|
41072
|
+
self._FragmentTime = None
|
41073
|
+
self._FragmentEndNum = None
|
41074
|
+
|
41075
|
+
@property
|
41076
|
+
def Switch(self):
|
41077
|
+
return self._Switch
|
41078
|
+
|
41079
|
+
@Switch.setter
|
41080
|
+
def Switch(self, Switch):
|
41081
|
+
self._Switch = Switch
|
41082
|
+
|
41083
|
+
@property
|
41084
|
+
def FragmentTime(self):
|
41085
|
+
return self._FragmentTime
|
41086
|
+
|
41087
|
+
@FragmentTime.setter
|
41088
|
+
def FragmentTime(self, FragmentTime):
|
41089
|
+
self._FragmentTime = FragmentTime
|
41090
|
+
|
41091
|
+
@property
|
41092
|
+
def FragmentEndNum(self):
|
41093
|
+
return self._FragmentEndNum
|
41094
|
+
|
41095
|
+
@FragmentEndNum.setter
|
41096
|
+
def FragmentEndNum(self, FragmentEndNum):
|
41097
|
+
self._FragmentEndNum = FragmentEndNum
|
41098
|
+
|
41099
|
+
|
41100
|
+
def _deserialize(self, params):
|
41101
|
+
self._Switch = params.get("Switch")
|
41102
|
+
self._FragmentTime = params.get("FragmentTime")
|
41103
|
+
self._FragmentEndNum = params.get("FragmentEndNum")
|
41104
|
+
memeber_set = set(params.keys())
|
41105
|
+
for name, value in vars(self).items():
|
41106
|
+
property_name = name[1:]
|
41107
|
+
if property_name in memeber_set:
|
41108
|
+
memeber_set.remove(property_name)
|
41109
|
+
if len(memeber_set) > 0:
|
41110
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
41111
|
+
|
41112
|
+
|
41113
|
+
|
40567
41114
|
class SharpEnhanceConfig(AbstractModel):
|
40568
41115
|
"""细节增强配置
|
40569
41116
|
|
@@ -43589,6 +44136,40 @@ class UserDefineOcrTextReviewTemplateInfoForUpdate(AbstractModel):
|
|
43589
44136
|
|
43590
44137
|
|
43591
44138
|
|
44139
|
+
class VideoDBEntryTaskResult(AbstractModel):
|
44140
|
+
"""视频检索入库任务的结果
|
44141
|
+
|
44142
|
+
"""
|
44143
|
+
|
44144
|
+
def __init__(self):
|
44145
|
+
r"""
|
44146
|
+
:param _VideoId: 入库的视频ID
|
44147
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44148
|
+
:type VideoId: str
|
44149
|
+
"""
|
44150
|
+
self._VideoId = None
|
44151
|
+
|
44152
|
+
@property
|
44153
|
+
def VideoId(self):
|
44154
|
+
return self._VideoId
|
44155
|
+
|
44156
|
+
@VideoId.setter
|
44157
|
+
def VideoId(self, VideoId):
|
44158
|
+
self._VideoId = VideoId
|
44159
|
+
|
44160
|
+
|
44161
|
+
def _deserialize(self, params):
|
44162
|
+
self._VideoId = params.get("VideoId")
|
44163
|
+
memeber_set = set(params.keys())
|
44164
|
+
for name, value in vars(self).items():
|
44165
|
+
property_name = name[1:]
|
44166
|
+
if property_name in memeber_set:
|
44167
|
+
memeber_set.remove(property_name)
|
44168
|
+
if len(memeber_set) > 0:
|
44169
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
44170
|
+
|
44171
|
+
|
44172
|
+
|
43592
44173
|
class VideoDenoiseConfig(AbstractModel):
|
43593
44174
|
"""视频降噪配置
|
43594
44175
|
|
@@ -43844,7 +44425,6 @@ class VideoTemplateInfo(AbstractModel):
|
|
43844
44425
|
<li>mpeg2:MPEG2 编码</li>
|
43845
44426
|
<li>dnxhd:DNxHD 编码</li>
|
43846
44427
|
<li>mv-hevc:MV-HEVC 编码</li>
|
43847
|
-
注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。
|
43848
44428
|
|
43849
44429
|
注意:av1 编码容器目前只支持 mp4 ,webm,mkv。
|
43850
44430
|
注意:H.266 编码容器目前只支持 mp4 ,hls,ts,mov。
|
@@ -43880,20 +44460,37 @@ class VideoTemplateInfo(AbstractModel):
|
|
43880
44460
|
<li>当 Width、Height 均非 0,则分辨率按用户指定。</li>
|
43881
44461
|
默认值:0。
|
43882
44462
|
:type Height: int
|
43883
|
-
:param _Gop: 关键帧 I
|
44463
|
+
:param _Gop: 关键帧 I 帧之间的间隔,允许按帧或秒自定义GOP长度,取值范围:0 和 [1, 100000],
|
44464
|
+
当填 0 或不填时,系统将自动设置 gop 长度。
|
43884
44465
|
:type Gop: int
|
44466
|
+
:param _GopUnit: Gop数值单位,可选值:
|
44467
|
+
frame:表示帧
|
44468
|
+
second:表示秒
|
44469
|
+
默认值:frame
|
44470
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44471
|
+
:type GopUnit: str
|
43885
44472
|
:param _FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
|
43886
44473
|
<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
|
43887
44474
|
<li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li>
|
43888
44475
|
<li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li>
|
43889
44476
|
<li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li>
|
44477
|
+
<li>smarttailor:智能剪裁:智能选取视频画面,来保证画面比例裁剪。</li>
|
43890
44478
|
默认值:black 。
|
43891
44479
|
注意:自适应码流只支持 stretch、black。
|
43892
44480
|
:type FillType: str
|
43893
|
-
:param _Vcrf: 视频恒定码率控制因子,取值范围为[
|
44481
|
+
:param _Vcrf: 视频恒定码率控制因子,取值范围为[0, 51]。
|
43894
44482
|
如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。
|
43895
44483
|
如果没有特殊需求,不建议指定该参数。
|
44484
|
+
注意:
|
44485
|
+
若Mode选择ABR,无需配置Vcrf值
|
44486
|
+
若Mode选择CBR,无需配置Vcrf值
|
44487
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
43896
44488
|
:type Vcrf: int
|
44489
|
+
:param _HlsTime: 分片平均时长,范围:(0-10],单位:秒
|
44490
|
+
默认值:10
|
44491
|
+
注意:只能在封装格式hls的情况下使用
|
44492
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44493
|
+
:type HlsTime: int
|
43897
44494
|
:param _SegmentType: hls 分片类型,可选值 :
|
43898
44495
|
<li>0:HLS+TS 切片</li>
|
43899
44496
|
<li>2:HLS+TS byte range</li>
|
@@ -43912,6 +44509,58 @@ class VideoTemplateInfo(AbstractModel):
|
|
43912
44509
|
默认值:side_by_side
|
43913
44510
|
注意:此字段可能返回 null,表示取不到有效值。
|
43914
44511
|
:type Stereo3dType: str
|
44512
|
+
:param _VideoProfile: Profile,适用于不同场景。
|
44513
|
+
baseline: 只支持I/P帧,并只支持无交错的场景,适用于视频通话、手机视频等场景。
|
44514
|
+
main: 主流Profile,提供I帧、P帧、B帧,并支持无交错模式和交错模式。主要用在主流的音视频消费产品如视频播放器、流媒体传输设备上。
|
44515
|
+
high: 最高编码等级,在Main Profile上添加了8X8的预测,并支持自定义量化。广泛应用在蓝光存储、高清电视等场景。
|
44516
|
+
default:随原视频自动填充。
|
44517
|
+
|
44518
|
+
仅编码标准选择h264时出现该配置, 支持 baseline/main/high,默认为:default
|
44519
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44520
|
+
:type VideoProfile: str
|
44521
|
+
:param _VideoLevel: 编码器级别,默认为自动("")
|
44522
|
+
若编码标准选择H264: 支持以下选项:"",1 , 1.1 , 1.2 , 1.3 , 2 , 2.1 , 2.2 , 3 , 3.1 , 3.2 , 4 , 4.1 , 4.2 , 5 , 5.1
|
44523
|
+
若编码标准选择H265: 支持以下选项:"",1 , 2 , 2.1 , 3 , 3.1 , 4 , 4.1 , 5 , 5.1 , 5.2 , 6 , 6.1 , 6.2 , 8.5
|
44524
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44525
|
+
:type VideoLevel: str
|
44526
|
+
:param _Bframes: 参考帧之间的B帧数,默认选自动,支持 0 - 16
|
44527
|
+
注意:不填表示使用自动
|
44528
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44529
|
+
:type Bframes: int
|
44530
|
+
:param _Mode: 码率控制模式:可选值:
|
44531
|
+
VBR(Variable Bit Rate):动态比特率,根据视频画面的复杂度动态调整输出的码率,使得画面质量更高,适用于存储场景和对画面质量要求较高的应用。
|
44532
|
+
ABR(Average Bit Rate):平均比特率,尽量保持输出视频的平均码率稳定,但允许短期内的码率波动,适用于需要在保持一定画质的情况下尽量减少整体码率的场景。
|
44533
|
+
CBR(Constant Bit Rate):恒定比特率,指视频编码时输出的码率保持恒定不变,不考虑画面复杂度的变化,适用于对网络带宽要求较为严格的场景,如直播等。
|
44534
|
+
VCRF(Constant Rate Factor):恒定质量因子,通过设定一个质量因子来控制视频质量,实现视频的恒定质量编码,码率会根据内容的复杂度自动调整,适用于希望保持一定画质的场景。
|
44535
|
+
默认选择 VBR
|
44536
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44537
|
+
:type Mode: str
|
44538
|
+
:param _Sar: 显示高宽比,可选值:[1:1,2:1,default]
|
44539
|
+
默认值:default
|
44540
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44541
|
+
:type Sar: str
|
44542
|
+
:param _NoScenecut: 自适应I帧决策,开启后,媒体处理将自动识别视频中不同场景之间的过渡点(通常是视觉上显著不同的帧,比如从一个镜头切换到另一个镜头),在这些点自适应插入关键帧(I帧),从而提高视频的随机访问性和编码效率。可选值:
|
44543
|
+
0:关闭自适应I帧决策
|
44544
|
+
1:使用自适应I帧决策
|
44545
|
+
默认值:0
|
44546
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44547
|
+
:type NoScenecut: int
|
44548
|
+
:param _BitDepth: 比特位:支持8/10,默认为8
|
44549
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44550
|
+
:type BitDepth: int
|
44551
|
+
:param _RawPts: 保持原始时间戳:可选值:
|
44552
|
+
0:表示关闭
|
44553
|
+
1:表示打开
|
44554
|
+
默认是关闭
|
44555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44556
|
+
:type RawPts: int
|
44557
|
+
:param _Compress: 按比例压缩码率,开启后,将根据比例来调整输出视频的码率。填写压缩率后,系统会根据视频源码率自动计算目标输出码率。压缩率范围0-100
|
44558
|
+
不填此值表示不开启,默认不开启
|
44559
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44560
|
+
:type Compress: int
|
44561
|
+
:param _SegmentSpecificInfo: 切片特殊配置
|
44562
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44563
|
+
:type SegmentSpecificInfo: :class:`tencentcloud.mps.v20190612.models.SegmentSpecificInfo`
|
43915
44564
|
"""
|
43916
44565
|
self._Codec = None
|
43917
44566
|
self._Fps = None
|
@@ -43920,11 +44569,23 @@ class VideoTemplateInfo(AbstractModel):
|
|
43920
44569
|
self._Width = None
|
43921
44570
|
self._Height = None
|
43922
44571
|
self._Gop = None
|
44572
|
+
self._GopUnit = None
|
43923
44573
|
self._FillType = None
|
43924
44574
|
self._Vcrf = None
|
44575
|
+
self._HlsTime = None
|
43925
44576
|
self._SegmentType = None
|
43926
44577
|
self._FpsDenominator = None
|
43927
44578
|
self._Stereo3dType = None
|
44579
|
+
self._VideoProfile = None
|
44580
|
+
self._VideoLevel = None
|
44581
|
+
self._Bframes = None
|
44582
|
+
self._Mode = None
|
44583
|
+
self._Sar = None
|
44584
|
+
self._NoScenecut = None
|
44585
|
+
self._BitDepth = None
|
44586
|
+
self._RawPts = None
|
44587
|
+
self._Compress = None
|
44588
|
+
self._SegmentSpecificInfo = None
|
43928
44589
|
|
43929
44590
|
@property
|
43930
44591
|
def Codec(self):
|
@@ -43982,6 +44643,14 @@ class VideoTemplateInfo(AbstractModel):
|
|
43982
44643
|
def Gop(self, Gop):
|
43983
44644
|
self._Gop = Gop
|
43984
44645
|
|
44646
|
+
@property
|
44647
|
+
def GopUnit(self):
|
44648
|
+
return self._GopUnit
|
44649
|
+
|
44650
|
+
@GopUnit.setter
|
44651
|
+
def GopUnit(self, GopUnit):
|
44652
|
+
self._GopUnit = GopUnit
|
44653
|
+
|
43985
44654
|
@property
|
43986
44655
|
def FillType(self):
|
43987
44656
|
return self._FillType
|
@@ -43998,6 +44667,14 @@ class VideoTemplateInfo(AbstractModel):
|
|
43998
44667
|
def Vcrf(self, Vcrf):
|
43999
44668
|
self._Vcrf = Vcrf
|
44000
44669
|
|
44670
|
+
@property
|
44671
|
+
def HlsTime(self):
|
44672
|
+
return self._HlsTime
|
44673
|
+
|
44674
|
+
@HlsTime.setter
|
44675
|
+
def HlsTime(self, HlsTime):
|
44676
|
+
self._HlsTime = HlsTime
|
44677
|
+
|
44001
44678
|
@property
|
44002
44679
|
def SegmentType(self):
|
44003
44680
|
return self._SegmentType
|
@@ -44022,6 +44699,86 @@ class VideoTemplateInfo(AbstractModel):
|
|
44022
44699
|
def Stereo3dType(self, Stereo3dType):
|
44023
44700
|
self._Stereo3dType = Stereo3dType
|
44024
44701
|
|
44702
|
+
@property
|
44703
|
+
def VideoProfile(self):
|
44704
|
+
return self._VideoProfile
|
44705
|
+
|
44706
|
+
@VideoProfile.setter
|
44707
|
+
def VideoProfile(self, VideoProfile):
|
44708
|
+
self._VideoProfile = VideoProfile
|
44709
|
+
|
44710
|
+
@property
|
44711
|
+
def VideoLevel(self):
|
44712
|
+
return self._VideoLevel
|
44713
|
+
|
44714
|
+
@VideoLevel.setter
|
44715
|
+
def VideoLevel(self, VideoLevel):
|
44716
|
+
self._VideoLevel = VideoLevel
|
44717
|
+
|
44718
|
+
@property
|
44719
|
+
def Bframes(self):
|
44720
|
+
return self._Bframes
|
44721
|
+
|
44722
|
+
@Bframes.setter
|
44723
|
+
def Bframes(self, Bframes):
|
44724
|
+
self._Bframes = Bframes
|
44725
|
+
|
44726
|
+
@property
|
44727
|
+
def Mode(self):
|
44728
|
+
return self._Mode
|
44729
|
+
|
44730
|
+
@Mode.setter
|
44731
|
+
def Mode(self, Mode):
|
44732
|
+
self._Mode = Mode
|
44733
|
+
|
44734
|
+
@property
|
44735
|
+
def Sar(self):
|
44736
|
+
return self._Sar
|
44737
|
+
|
44738
|
+
@Sar.setter
|
44739
|
+
def Sar(self, Sar):
|
44740
|
+
self._Sar = Sar
|
44741
|
+
|
44742
|
+
@property
|
44743
|
+
def NoScenecut(self):
|
44744
|
+
return self._NoScenecut
|
44745
|
+
|
44746
|
+
@NoScenecut.setter
|
44747
|
+
def NoScenecut(self, NoScenecut):
|
44748
|
+
self._NoScenecut = NoScenecut
|
44749
|
+
|
44750
|
+
@property
|
44751
|
+
def BitDepth(self):
|
44752
|
+
return self._BitDepth
|
44753
|
+
|
44754
|
+
@BitDepth.setter
|
44755
|
+
def BitDepth(self, BitDepth):
|
44756
|
+
self._BitDepth = BitDepth
|
44757
|
+
|
44758
|
+
@property
|
44759
|
+
def RawPts(self):
|
44760
|
+
return self._RawPts
|
44761
|
+
|
44762
|
+
@RawPts.setter
|
44763
|
+
def RawPts(self, RawPts):
|
44764
|
+
self._RawPts = RawPts
|
44765
|
+
|
44766
|
+
@property
|
44767
|
+
def Compress(self):
|
44768
|
+
return self._Compress
|
44769
|
+
|
44770
|
+
@Compress.setter
|
44771
|
+
def Compress(self, Compress):
|
44772
|
+
self._Compress = Compress
|
44773
|
+
|
44774
|
+
@property
|
44775
|
+
def SegmentSpecificInfo(self):
|
44776
|
+
return self._SegmentSpecificInfo
|
44777
|
+
|
44778
|
+
@SegmentSpecificInfo.setter
|
44779
|
+
def SegmentSpecificInfo(self, SegmentSpecificInfo):
|
44780
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo
|
44781
|
+
|
44025
44782
|
|
44026
44783
|
def _deserialize(self, params):
|
44027
44784
|
self._Codec = params.get("Codec")
|
@@ -44031,11 +44788,25 @@ class VideoTemplateInfo(AbstractModel):
|
|
44031
44788
|
self._Width = params.get("Width")
|
44032
44789
|
self._Height = params.get("Height")
|
44033
44790
|
self._Gop = params.get("Gop")
|
44791
|
+
self._GopUnit = params.get("GopUnit")
|
44034
44792
|
self._FillType = params.get("FillType")
|
44035
44793
|
self._Vcrf = params.get("Vcrf")
|
44794
|
+
self._HlsTime = params.get("HlsTime")
|
44036
44795
|
self._SegmentType = params.get("SegmentType")
|
44037
44796
|
self._FpsDenominator = params.get("FpsDenominator")
|
44038
44797
|
self._Stereo3dType = params.get("Stereo3dType")
|
44798
|
+
self._VideoProfile = params.get("VideoProfile")
|
44799
|
+
self._VideoLevel = params.get("VideoLevel")
|
44800
|
+
self._Bframes = params.get("Bframes")
|
44801
|
+
self._Mode = params.get("Mode")
|
44802
|
+
self._Sar = params.get("Sar")
|
44803
|
+
self._NoScenecut = params.get("NoScenecut")
|
44804
|
+
self._BitDepth = params.get("BitDepth")
|
44805
|
+
self._RawPts = params.get("RawPts")
|
44806
|
+
self._Compress = params.get("Compress")
|
44807
|
+
if params.get("SegmentSpecificInfo") is not None:
|
44808
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo()
|
44809
|
+
self._SegmentSpecificInfo._deserialize(params.get("SegmentSpecificInfo"))
|
44039
44810
|
memeber_set = set(params.keys())
|
44040
44811
|
for name, value in vars(self).items():
|
44041
44812
|
property_name = name[1:]
|
@@ -44063,7 +44834,6 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44063
44834
|
<li>mpeg2:MPEG2 编码</li>
|
44064
44835
|
<li>dnxhd:DNxHD 编码</li>
|
44065
44836
|
<li>mv-hevc:MV-HEVC 编码</li>
|
44066
|
-
注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。
|
44067
44837
|
|
44068
44838
|
注意:av1 编码容器目前只支持 mp4 ,webm,mkv。
|
44069
44839
|
注意:H.266 编码容器目前只支持 mp4 ,hls,ts,mov。
|
@@ -44098,18 +44868,32 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44098
44868
|
:param _Height: 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
|
44099
44869
|
注意:此字段可能返回 null,表示取不到有效值。
|
44100
44870
|
:type Height: int
|
44101
|
-
:param _Gop: 关键帧 I
|
44871
|
+
:param _Gop: 关键帧 I 帧之间的间隔,允许按帧或秒自定义GOP长度,取值范围:0 和 [1, 100000]。
|
44872
|
+
当填 0 时,系统将自动设置 gop 长度。
|
44102
44873
|
注意:此字段可能返回 null,表示取不到有效值。
|
44103
44874
|
:type Gop: int
|
44875
|
+
:param _GopUnit: Gop数值单位,可选值:
|
44876
|
+
frame:表示帧
|
44877
|
+
second:表示秒
|
44878
|
+
默认值:frame
|
44879
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44880
|
+
:type GopUnit: str
|
44104
44881
|
:param _FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
|
44105
44882
|
<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
|
44106
44883
|
<li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li>
|
44107
44884
|
<li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li>
|
44108
44885
|
<li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li>
|
44886
|
+
<li>smarttailor:智能剪裁:智能选取视频画面,来保证画面比例裁剪。</li>
|
44887
|
+
默认值:black 。
|
44888
|
+
注意:自适应码流只支持 stretch、black。
|
44109
44889
|
注意:此字段可能返回 null,表示取不到有效值。
|
44110
44890
|
:type FillType: str
|
44111
|
-
:param _Vcrf: 视频恒定码率控制因子。取值范围为[0, 51]
|
44891
|
+
:param _Vcrf: 视频恒定码率控制因子。取值范围为[0, 51]和100。
|
44112
44892
|
如果没有特殊需求,不建议指定该参数。
|
44893
|
+
注意:
|
44894
|
+
需要修改为自动时,填100
|
44895
|
+
若Mode选择ABR,无需配置Vcrf值
|
44896
|
+
若Mode选择CBR,无需配置Vcrf值
|
44113
44897
|
注意:此字段可能返回 null,表示取不到有效值。
|
44114
44898
|
:type Vcrf: int
|
44115
44899
|
:param _ContentAdaptStream: 内容自适应编码。可选值:
|
@@ -44118,6 +44902,11 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44118
44902
|
默认值: 0. 当开启该参数时,将会自适应生成多个不同分辨率,不同码率的码流, 其中VideoTemplate的宽和高为多个码流中的最大分辨率,VideoTemplate中的码率为多个码流中的最高码率, VideoTemplate中的vcrf为多个码流中的最高质量。 当不设置分辨率、码率和vcrf时, ContentAdaptStream 参数生成的最高分辨率为视频源的分辨率,视频质量为接近vmaf95分。 若要开启该参数或了解计费细节, 请联系您的腾讯云商务。
|
44119
44903
|
注意:此字段可能返回 null,表示取不到有效值。
|
44120
44904
|
:type ContentAdaptStream: int
|
44905
|
+
:param _HlsTime: 分片平均时长,取值范围:(0-10],单位:秒
|
44906
|
+
默认值:10
|
44907
|
+
注意:只在封装格式HLS时使用
|
44908
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44909
|
+
:type HlsTime: int
|
44121
44910
|
:param _SegmentType: hls 分片类型,可选值:
|
44122
44911
|
<li>0:HLS+TS 切片</li>
|
44123
44912
|
<li>2:HLS+TS byte range</li>
|
@@ -44136,6 +44925,59 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44136
44925
|
默认值:side_by_side
|
44137
44926
|
注意:此字段可能返回 null,表示取不到有效值。
|
44138
44927
|
:type Stereo3dType: str
|
44928
|
+
:param _VideoProfile: Profile,适用于不同场景。
|
44929
|
+
baseline: 只支持I/P帧,并只支持无交错的场景,适用于视频通话、手机视频等场景。
|
44930
|
+
main: 主流Profile,提供I帧、P帧、B帧,并支持无交错模式和交错模式。主要用在主流的音视频消费产品如视频播放器、流媒体传输设备上。
|
44931
|
+
high: 最高编码等级,在Main Profile上添加了8X8的预测,并支持自定义量化。广泛应用在蓝光存储、高清电视等场景。
|
44932
|
+
default:随原视频自动填充
|
44933
|
+
|
44934
|
+
仅编码标准选择h264时出现该配置,默认为:default
|
44935
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44936
|
+
:type VideoProfile: str
|
44937
|
+
:param _VideoLevel: 编码器级别,默认为自动("")
|
44938
|
+
若编码标准选择H264: 支持以下选项:"",1 , 1.1 , 1.2 , 1.3 , 2 , 2.1 , 2.2 , 3 , 3.1 , 3.2 , 4 , 4.1 , 4.2 , 5 , 5.1
|
44939
|
+
若编码标准选择H265: 支持以下选项:"",1 , 2 , 2.1 , 3 , 3.1 , 4 , 4.1 , 5 , 5.1 , 5.2 , 6 , 6.1 , 6.2 , 8.5
|
44940
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44941
|
+
:type VideoLevel: str
|
44942
|
+
:param _Bframes: 最大连续B帧数,默认选自动,支持 0 - 16和-1
|
44943
|
+
注意:
|
44944
|
+
-1表示修改为自动值
|
44945
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44946
|
+
:type Bframes: int
|
44947
|
+
:param _Mode: 码率控制模式:可选值:
|
44948
|
+
VBR(Variable Bit Rate):动态比特率,根据视频画面的复杂度动态调整输出的码率,使得画面质量更高,适用于存储场景和对画面质量要求较高的应用。
|
44949
|
+
ABR(Average Bit Rate):平均比特率,尽量保持输出视频的平均码率稳定,但允许短期内的码率波动,适用于需要在保持一定画质的情况下尽量减少整体码率的场景。
|
44950
|
+
CBR(Constant Bit Rate):恒定比特率,指视频编码时输出的码率保持恒定不变,不考虑画面复杂度的变化,适用于对网络带宽要求较为严格的场景,如直播等。
|
44951
|
+
VCRF(Constant Rate Factor):恒定质量因子,通过设定一个质量因子来控制视频质量,实现视频的恒定质量编码,码率会根据内容的复杂度自动调整,适用于希望保持一定画质的场景。
|
44952
|
+
默认选择 VBR
|
44953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44954
|
+
:type Mode: str
|
44955
|
+
:param _Sar: 显示高宽比,可选值:[1:1,2:1,default]
|
44956
|
+
默认值:default
|
44957
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44958
|
+
:type Sar: str
|
44959
|
+
:param _NoScenecut: 自适应I帧决策,开启后,媒体处理将自动识别视频中不同场景之间的过渡点(通常是视觉上显著不同的帧,比如从一个镜头切换到另一个镜头),在这些点自适应插入关键帧(I帧),从而提高视频的随机访问性和编码效率。可选值:
|
44960
|
+
0:关闭自适应I帧决策
|
44961
|
+
1:使用自适应I帧决策
|
44962
|
+
默认值:0
|
44963
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44964
|
+
:type NoScenecut: int
|
44965
|
+
:param _BitDepth: 比特位:支持8/10,默认为8
|
44966
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44967
|
+
:type BitDepth: int
|
44968
|
+
:param _RawPts: 保持原始时间戳:可选值:
|
44969
|
+
0:表示关闭
|
44970
|
+
1:表示打开
|
44971
|
+
默认是关闭
|
44972
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44973
|
+
:type RawPts: int
|
44974
|
+
:param _Compress: 按比例压缩码率,开启后,将根据比例来调整输出视频的码率。填写压缩率后,系统会根据视频源码率自动计算目标输出码率。压缩率范围0-100,可选值:[0-100]和-1
|
44975
|
+
注意:-1表示修改为自动
|
44976
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44977
|
+
:type Compress: int
|
44978
|
+
:param _SegmentSpecificInfo: 切片特殊配置
|
44979
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
44980
|
+
:type SegmentSpecificInfo: :class:`tencentcloud.mps.v20190612.models.SegmentSpecificInfo`
|
44139
44981
|
"""
|
44140
44982
|
self._Codec = None
|
44141
44983
|
self._Fps = None
|
@@ -44144,12 +44986,24 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44144
44986
|
self._Width = None
|
44145
44987
|
self._Height = None
|
44146
44988
|
self._Gop = None
|
44989
|
+
self._GopUnit = None
|
44147
44990
|
self._FillType = None
|
44148
44991
|
self._Vcrf = None
|
44149
44992
|
self._ContentAdaptStream = None
|
44993
|
+
self._HlsTime = None
|
44150
44994
|
self._SegmentType = None
|
44151
44995
|
self._FpsDenominator = None
|
44152
44996
|
self._Stereo3dType = None
|
44997
|
+
self._VideoProfile = None
|
44998
|
+
self._VideoLevel = None
|
44999
|
+
self._Bframes = None
|
45000
|
+
self._Mode = None
|
45001
|
+
self._Sar = None
|
45002
|
+
self._NoScenecut = None
|
45003
|
+
self._BitDepth = None
|
45004
|
+
self._RawPts = None
|
45005
|
+
self._Compress = None
|
45006
|
+
self._SegmentSpecificInfo = None
|
44153
45007
|
|
44154
45008
|
@property
|
44155
45009
|
def Codec(self):
|
@@ -44207,6 +45061,14 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44207
45061
|
def Gop(self, Gop):
|
44208
45062
|
self._Gop = Gop
|
44209
45063
|
|
45064
|
+
@property
|
45065
|
+
def GopUnit(self):
|
45066
|
+
return self._GopUnit
|
45067
|
+
|
45068
|
+
@GopUnit.setter
|
45069
|
+
def GopUnit(self, GopUnit):
|
45070
|
+
self._GopUnit = GopUnit
|
45071
|
+
|
44210
45072
|
@property
|
44211
45073
|
def FillType(self):
|
44212
45074
|
return self._FillType
|
@@ -44231,6 +45093,14 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44231
45093
|
def ContentAdaptStream(self, ContentAdaptStream):
|
44232
45094
|
self._ContentAdaptStream = ContentAdaptStream
|
44233
45095
|
|
45096
|
+
@property
|
45097
|
+
def HlsTime(self):
|
45098
|
+
return self._HlsTime
|
45099
|
+
|
45100
|
+
@HlsTime.setter
|
45101
|
+
def HlsTime(self, HlsTime):
|
45102
|
+
self._HlsTime = HlsTime
|
45103
|
+
|
44234
45104
|
@property
|
44235
45105
|
def SegmentType(self):
|
44236
45106
|
return self._SegmentType
|
@@ -44255,6 +45125,86 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44255
45125
|
def Stereo3dType(self, Stereo3dType):
|
44256
45126
|
self._Stereo3dType = Stereo3dType
|
44257
45127
|
|
45128
|
+
@property
|
45129
|
+
def VideoProfile(self):
|
45130
|
+
return self._VideoProfile
|
45131
|
+
|
45132
|
+
@VideoProfile.setter
|
45133
|
+
def VideoProfile(self, VideoProfile):
|
45134
|
+
self._VideoProfile = VideoProfile
|
45135
|
+
|
45136
|
+
@property
|
45137
|
+
def VideoLevel(self):
|
45138
|
+
return self._VideoLevel
|
45139
|
+
|
45140
|
+
@VideoLevel.setter
|
45141
|
+
def VideoLevel(self, VideoLevel):
|
45142
|
+
self._VideoLevel = VideoLevel
|
45143
|
+
|
45144
|
+
@property
|
45145
|
+
def Bframes(self):
|
45146
|
+
return self._Bframes
|
45147
|
+
|
45148
|
+
@Bframes.setter
|
45149
|
+
def Bframes(self, Bframes):
|
45150
|
+
self._Bframes = Bframes
|
45151
|
+
|
45152
|
+
@property
|
45153
|
+
def Mode(self):
|
45154
|
+
return self._Mode
|
45155
|
+
|
45156
|
+
@Mode.setter
|
45157
|
+
def Mode(self, Mode):
|
45158
|
+
self._Mode = Mode
|
45159
|
+
|
45160
|
+
@property
|
45161
|
+
def Sar(self):
|
45162
|
+
return self._Sar
|
45163
|
+
|
45164
|
+
@Sar.setter
|
45165
|
+
def Sar(self, Sar):
|
45166
|
+
self._Sar = Sar
|
45167
|
+
|
45168
|
+
@property
|
45169
|
+
def NoScenecut(self):
|
45170
|
+
return self._NoScenecut
|
45171
|
+
|
45172
|
+
@NoScenecut.setter
|
45173
|
+
def NoScenecut(self, NoScenecut):
|
45174
|
+
self._NoScenecut = NoScenecut
|
45175
|
+
|
45176
|
+
@property
|
45177
|
+
def BitDepth(self):
|
45178
|
+
return self._BitDepth
|
45179
|
+
|
45180
|
+
@BitDepth.setter
|
45181
|
+
def BitDepth(self, BitDepth):
|
45182
|
+
self._BitDepth = BitDepth
|
45183
|
+
|
45184
|
+
@property
|
45185
|
+
def RawPts(self):
|
45186
|
+
return self._RawPts
|
45187
|
+
|
45188
|
+
@RawPts.setter
|
45189
|
+
def RawPts(self, RawPts):
|
45190
|
+
self._RawPts = RawPts
|
45191
|
+
|
45192
|
+
@property
|
45193
|
+
def Compress(self):
|
45194
|
+
return self._Compress
|
45195
|
+
|
45196
|
+
@Compress.setter
|
45197
|
+
def Compress(self, Compress):
|
45198
|
+
self._Compress = Compress
|
45199
|
+
|
45200
|
+
@property
|
45201
|
+
def SegmentSpecificInfo(self):
|
45202
|
+
return self._SegmentSpecificInfo
|
45203
|
+
|
45204
|
+
@SegmentSpecificInfo.setter
|
45205
|
+
def SegmentSpecificInfo(self, SegmentSpecificInfo):
|
45206
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo
|
45207
|
+
|
44258
45208
|
|
44259
45209
|
def _deserialize(self, params):
|
44260
45210
|
self._Codec = params.get("Codec")
|
@@ -44264,12 +45214,26 @@ class VideoTemplateInfoForUpdate(AbstractModel):
|
|
44264
45214
|
self._Width = params.get("Width")
|
44265
45215
|
self._Height = params.get("Height")
|
44266
45216
|
self._Gop = params.get("Gop")
|
45217
|
+
self._GopUnit = params.get("GopUnit")
|
44267
45218
|
self._FillType = params.get("FillType")
|
44268
45219
|
self._Vcrf = params.get("Vcrf")
|
44269
45220
|
self._ContentAdaptStream = params.get("ContentAdaptStream")
|
45221
|
+
self._HlsTime = params.get("HlsTime")
|
44270
45222
|
self._SegmentType = params.get("SegmentType")
|
44271
45223
|
self._FpsDenominator = params.get("FpsDenominator")
|
44272
45224
|
self._Stereo3dType = params.get("Stereo3dType")
|
45225
|
+
self._VideoProfile = params.get("VideoProfile")
|
45226
|
+
self._VideoLevel = params.get("VideoLevel")
|
45227
|
+
self._Bframes = params.get("Bframes")
|
45228
|
+
self._Mode = params.get("Mode")
|
45229
|
+
self._Sar = params.get("Sar")
|
45230
|
+
self._NoScenecut = params.get("NoScenecut")
|
45231
|
+
self._BitDepth = params.get("BitDepth")
|
45232
|
+
self._RawPts = params.get("RawPts")
|
45233
|
+
self._Compress = params.get("Compress")
|
45234
|
+
if params.get("SegmentSpecificInfo") is not None:
|
45235
|
+
self._SegmentSpecificInfo = SegmentSpecificInfo()
|
45236
|
+
self._SegmentSpecificInfo._deserialize(params.get("SegmentSpecificInfo"))
|
44273
45237
|
memeber_set = set(params.keys())
|
44274
45238
|
for name, value in vars(self).items():
|
44275
45239
|
property_name = name[1:]
|