tencentcloud-sdk-python-vclm 3.1.8__tar.gz → 3.1.17__tar.gz
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_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/setup.py +1 -1
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/vclm/v20240523/models.py +287 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/vclm/v20240523/vclm_client_async.py +36 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud_sdk_python_vclm.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_vclm-3.1.17/tencentcloud_sdk_python_vclm.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_vclm-3.1.8/tencentcloud_sdk_python_vclm.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/README.rst +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/setup.cfg +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/vclm/__init__.py +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/vclm/v20240523/__init__.py +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud/vclm/v20240523/errorcodes.py +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud_sdk_python_vclm.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud_sdk_python_vclm.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_vclm-3.1.8 → tencentcloud_sdk_python_vclm-3.1.17}/tencentcloud_sdk_python_vclm.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-vclm
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.17
|
|
4
4
|
Summary: Tencent Cloud Vclm SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.17
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-vclm',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.17,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Vclm SDK for Python',
|
|
@@ -980,6 +980,130 @@ class DescribeTemplateToVideoJobResponse(AbstractModel):
|
|
|
980
980
|
self._RequestId = params.get("RequestId")
|
|
981
981
|
|
|
982
982
|
|
|
983
|
+
class DescribeVideoEditJobRequest(AbstractModel):
|
|
984
|
+
r"""DescribeVideoEditJob请求参数结构体
|
|
985
|
+
|
|
986
|
+
"""
|
|
987
|
+
|
|
988
|
+
def __init__(self):
|
|
989
|
+
r"""
|
|
990
|
+
:param _JobId: 任务ID。
|
|
991
|
+
:type JobId: str
|
|
992
|
+
"""
|
|
993
|
+
self._JobId = None
|
|
994
|
+
|
|
995
|
+
@property
|
|
996
|
+
def JobId(self):
|
|
997
|
+
r"""任务ID。
|
|
998
|
+
:rtype: str
|
|
999
|
+
"""
|
|
1000
|
+
return self._JobId
|
|
1001
|
+
|
|
1002
|
+
@JobId.setter
|
|
1003
|
+
def JobId(self, JobId):
|
|
1004
|
+
self._JobId = JobId
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
def _deserialize(self, params):
|
|
1008
|
+
self._JobId = params.get("JobId")
|
|
1009
|
+
memeber_set = set(params.keys())
|
|
1010
|
+
for name, value in vars(self).items():
|
|
1011
|
+
property_name = name[1:]
|
|
1012
|
+
if property_name in memeber_set:
|
|
1013
|
+
memeber_set.remove(property_name)
|
|
1014
|
+
if len(memeber_set) > 0:
|
|
1015
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
class DescribeVideoEditJobResponse(AbstractModel):
|
|
1020
|
+
r"""DescribeVideoEditJob返回参数结构体
|
|
1021
|
+
|
|
1022
|
+
"""
|
|
1023
|
+
|
|
1024
|
+
def __init__(self):
|
|
1025
|
+
r"""
|
|
1026
|
+
:param _Status: 任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
1027
|
+
:type Status: str
|
|
1028
|
+
:param _ResultVideoUrl: 结果视频URL。有效期 24 小时。
|
|
1029
|
+
:type ResultVideoUrl: str
|
|
1030
|
+
:param _ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
1031
|
+
:type ErrorCode: str
|
|
1032
|
+
:param _ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
1033
|
+
:type ErrorMessage: str
|
|
1034
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1035
|
+
:type RequestId: str
|
|
1036
|
+
"""
|
|
1037
|
+
self._Status = None
|
|
1038
|
+
self._ResultVideoUrl = None
|
|
1039
|
+
self._ErrorCode = None
|
|
1040
|
+
self._ErrorMessage = None
|
|
1041
|
+
self._RequestId = None
|
|
1042
|
+
|
|
1043
|
+
@property
|
|
1044
|
+
def Status(self):
|
|
1045
|
+
r"""任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
1046
|
+
:rtype: str
|
|
1047
|
+
"""
|
|
1048
|
+
return self._Status
|
|
1049
|
+
|
|
1050
|
+
@Status.setter
|
|
1051
|
+
def Status(self, Status):
|
|
1052
|
+
self._Status = Status
|
|
1053
|
+
|
|
1054
|
+
@property
|
|
1055
|
+
def ResultVideoUrl(self):
|
|
1056
|
+
r"""结果视频URL。有效期 24 小时。
|
|
1057
|
+
:rtype: str
|
|
1058
|
+
"""
|
|
1059
|
+
return self._ResultVideoUrl
|
|
1060
|
+
|
|
1061
|
+
@ResultVideoUrl.setter
|
|
1062
|
+
def ResultVideoUrl(self, ResultVideoUrl):
|
|
1063
|
+
self._ResultVideoUrl = ResultVideoUrl
|
|
1064
|
+
|
|
1065
|
+
@property
|
|
1066
|
+
def ErrorCode(self):
|
|
1067
|
+
r"""任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
1068
|
+
:rtype: str
|
|
1069
|
+
"""
|
|
1070
|
+
return self._ErrorCode
|
|
1071
|
+
|
|
1072
|
+
@ErrorCode.setter
|
|
1073
|
+
def ErrorCode(self, ErrorCode):
|
|
1074
|
+
self._ErrorCode = ErrorCode
|
|
1075
|
+
|
|
1076
|
+
@property
|
|
1077
|
+
def ErrorMessage(self):
|
|
1078
|
+
r"""任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
1079
|
+
:rtype: str
|
|
1080
|
+
"""
|
|
1081
|
+
return self._ErrorMessage
|
|
1082
|
+
|
|
1083
|
+
@ErrorMessage.setter
|
|
1084
|
+
def ErrorMessage(self, ErrorMessage):
|
|
1085
|
+
self._ErrorMessage = ErrorMessage
|
|
1086
|
+
|
|
1087
|
+
@property
|
|
1088
|
+
def RequestId(self):
|
|
1089
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1090
|
+
:rtype: str
|
|
1091
|
+
"""
|
|
1092
|
+
return self._RequestId
|
|
1093
|
+
|
|
1094
|
+
@RequestId.setter
|
|
1095
|
+
def RequestId(self, RequestId):
|
|
1096
|
+
self._RequestId = RequestId
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
def _deserialize(self, params):
|
|
1100
|
+
self._Status = params.get("Status")
|
|
1101
|
+
self._ResultVideoUrl = params.get("ResultVideoUrl")
|
|
1102
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
1103
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
|
1104
|
+
self._RequestId = params.get("RequestId")
|
|
1105
|
+
|
|
1106
|
+
|
|
983
1107
|
class DescribeVideoFaceFusionJobRequest(AbstractModel):
|
|
984
1108
|
r"""DescribeVideoFaceFusionJob请求参数结构体
|
|
985
1109
|
|
|
@@ -2986,6 +3110,169 @@ class SubmitTemplateToVideoJobResponse(AbstractModel):
|
|
|
2986
3110
|
self._RequestId = params.get("RequestId")
|
|
2987
3111
|
|
|
2988
3112
|
|
|
3113
|
+
class SubmitVideoEditJobRequest(AbstractModel):
|
|
3114
|
+
r"""SubmitVideoEditJob请求参数结构体
|
|
3115
|
+
|
|
3116
|
+
"""
|
|
3117
|
+
|
|
3118
|
+
def __init__(self):
|
|
3119
|
+
r"""
|
|
3120
|
+
:param _VideoUrl: 输入视频
|
|
3121
|
+
|
|
3122
|
+
- 视频格式:MP4
|
|
3123
|
+
- 视频时长:5s以内
|
|
3124
|
+
- 视频分辨率:无限制(待验证是否可以无损输出)
|
|
3125
|
+
:type VideoUrl: str
|
|
3126
|
+
:param _Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
|
|
3127
|
+
支持风格迁移、替换、元素增加、删除控制
|
|
3128
|
+
:type Prompt: str
|
|
3129
|
+
:param _Image: 图片base64或者图片url
|
|
3130
|
+
|
|
3131
|
+
- Base64 和 Url 必须提供一个,如果都提供以Url为准。
|
|
3132
|
+
- 上传图url大小不超过 8M
|
|
3133
|
+
- 支持jpg,png,jpeg,webp,bmp,tiff 格式
|
|
3134
|
+
- 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
|
|
3135
|
+
:type Image: :class:`tencentcloud.vclm.v20240523.models.Image`
|
|
3136
|
+
:param _LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
|
3137
|
+
:type LogoAdd: int
|
|
3138
|
+
:param _LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
3139
|
+
:type LogoParam: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
|
3140
|
+
"""
|
|
3141
|
+
self._VideoUrl = None
|
|
3142
|
+
self._Prompt = None
|
|
3143
|
+
self._Image = None
|
|
3144
|
+
self._LogoAdd = None
|
|
3145
|
+
self._LogoParam = None
|
|
3146
|
+
|
|
3147
|
+
@property
|
|
3148
|
+
def VideoUrl(self):
|
|
3149
|
+
r"""输入视频
|
|
3150
|
+
|
|
3151
|
+
- 视频格式:MP4
|
|
3152
|
+
- 视频时长:5s以内
|
|
3153
|
+
- 视频分辨率:无限制(待验证是否可以无损输出)
|
|
3154
|
+
:rtype: str
|
|
3155
|
+
"""
|
|
3156
|
+
return self._VideoUrl
|
|
3157
|
+
|
|
3158
|
+
@VideoUrl.setter
|
|
3159
|
+
def VideoUrl(self, VideoUrl):
|
|
3160
|
+
self._VideoUrl = VideoUrl
|
|
3161
|
+
|
|
3162
|
+
@property
|
|
3163
|
+
def Prompt(self):
|
|
3164
|
+
r"""视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
|
|
3165
|
+
支持风格迁移、替换、元素增加、删除控制
|
|
3166
|
+
:rtype: str
|
|
3167
|
+
"""
|
|
3168
|
+
return self._Prompt
|
|
3169
|
+
|
|
3170
|
+
@Prompt.setter
|
|
3171
|
+
def Prompt(self, Prompt):
|
|
3172
|
+
self._Prompt = Prompt
|
|
3173
|
+
|
|
3174
|
+
@property
|
|
3175
|
+
def Image(self):
|
|
3176
|
+
r"""图片base64或者图片url
|
|
3177
|
+
|
|
3178
|
+
- Base64 和 Url 必须提供一个,如果都提供以Url为准。
|
|
3179
|
+
- 上传图url大小不超过 8M
|
|
3180
|
+
- 支持jpg,png,jpeg,webp,bmp,tiff 格式
|
|
3181
|
+
- 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
|
|
3182
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.Image`
|
|
3183
|
+
"""
|
|
3184
|
+
return self._Image
|
|
3185
|
+
|
|
3186
|
+
@Image.setter
|
|
3187
|
+
def Image(self, Image):
|
|
3188
|
+
self._Image = Image
|
|
3189
|
+
|
|
3190
|
+
@property
|
|
3191
|
+
def LogoAdd(self):
|
|
3192
|
+
r"""为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
|
3193
|
+
:rtype: int
|
|
3194
|
+
"""
|
|
3195
|
+
return self._LogoAdd
|
|
3196
|
+
|
|
3197
|
+
@LogoAdd.setter
|
|
3198
|
+
def LogoAdd(self, LogoAdd):
|
|
3199
|
+
self._LogoAdd = LogoAdd
|
|
3200
|
+
|
|
3201
|
+
@property
|
|
3202
|
+
def LogoParam(self):
|
|
3203
|
+
r"""标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
3204
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
|
3205
|
+
"""
|
|
3206
|
+
return self._LogoParam
|
|
3207
|
+
|
|
3208
|
+
@LogoParam.setter
|
|
3209
|
+
def LogoParam(self, LogoParam):
|
|
3210
|
+
self._LogoParam = LogoParam
|
|
3211
|
+
|
|
3212
|
+
|
|
3213
|
+
def _deserialize(self, params):
|
|
3214
|
+
self._VideoUrl = params.get("VideoUrl")
|
|
3215
|
+
self._Prompt = params.get("Prompt")
|
|
3216
|
+
if params.get("Image") is not None:
|
|
3217
|
+
self._Image = Image()
|
|
3218
|
+
self._Image._deserialize(params.get("Image"))
|
|
3219
|
+
self._LogoAdd = params.get("LogoAdd")
|
|
3220
|
+
if params.get("LogoParam") is not None:
|
|
3221
|
+
self._LogoParam = LogoParam()
|
|
3222
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
|
3223
|
+
memeber_set = set(params.keys())
|
|
3224
|
+
for name, value in vars(self).items():
|
|
3225
|
+
property_name = name[1:]
|
|
3226
|
+
if property_name in memeber_set:
|
|
3227
|
+
memeber_set.remove(property_name)
|
|
3228
|
+
if len(memeber_set) > 0:
|
|
3229
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
class SubmitVideoEditJobResponse(AbstractModel):
|
|
3234
|
+
r"""SubmitVideoEditJob返回参数结构体
|
|
3235
|
+
|
|
3236
|
+
"""
|
|
3237
|
+
|
|
3238
|
+
def __init__(self):
|
|
3239
|
+
r"""
|
|
3240
|
+
:param _JobId: 任务ID。
|
|
3241
|
+
:type JobId: str
|
|
3242
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3243
|
+
:type RequestId: str
|
|
3244
|
+
"""
|
|
3245
|
+
self._JobId = None
|
|
3246
|
+
self._RequestId = None
|
|
3247
|
+
|
|
3248
|
+
@property
|
|
3249
|
+
def JobId(self):
|
|
3250
|
+
r"""任务ID。
|
|
3251
|
+
:rtype: str
|
|
3252
|
+
"""
|
|
3253
|
+
return self._JobId
|
|
3254
|
+
|
|
3255
|
+
@JobId.setter
|
|
3256
|
+
def JobId(self, JobId):
|
|
3257
|
+
self._JobId = JobId
|
|
3258
|
+
|
|
3259
|
+
@property
|
|
3260
|
+
def RequestId(self):
|
|
3261
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3262
|
+
:rtype: str
|
|
3263
|
+
"""
|
|
3264
|
+
return self._RequestId
|
|
3265
|
+
|
|
3266
|
+
@RequestId.setter
|
|
3267
|
+
def RequestId(self, RequestId):
|
|
3268
|
+
self._RequestId = RequestId
|
|
3269
|
+
|
|
3270
|
+
|
|
3271
|
+
def _deserialize(self, params):
|
|
3272
|
+
self._JobId = params.get("JobId")
|
|
3273
|
+
self._RequestId = params.get("RequestId")
|
|
3274
|
+
|
|
3275
|
+
|
|
2989
3276
|
class SubmitVideoFaceFusionJobRequest(AbstractModel):
|
|
2990
3277
|
r"""SubmitVideoFaceFusionJob请求参数结构体
|
|
2991
3278
|
|
|
@@ -188,6 +188,29 @@ class VclmClient(AbstractClient):
|
|
|
188
188
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
189
189
|
|
|
190
190
|
|
|
191
|
+
def DescribeVideoEditJob(self, request):
|
|
192
|
+
r"""用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
|
|
193
|
+
|
|
194
|
+
:param request: Request instance for DescribeVideoEditJob.
|
|
195
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.DescribeVideoEditJobRequest`
|
|
196
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.DescribeVideoEditJobResponse`
|
|
197
|
+
|
|
198
|
+
"""
|
|
199
|
+
try:
|
|
200
|
+
params = request._serialize()
|
|
201
|
+
headers = request.headers
|
|
202
|
+
body = self.call("DescribeVideoEditJob", params, headers=headers)
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
model = models.DescribeVideoEditJobResponse()
|
|
205
|
+
model._deserialize(response["Response"])
|
|
206
|
+
return model
|
|
207
|
+
except Exception as e:
|
|
208
|
+
if isinstance(e, TencentCloudSDKException):
|
|
209
|
+
raise
|
|
210
|
+
else:
|
|
211
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
212
|
+
|
|
213
|
+
|
|
191
214
|
def DescribeVideoFaceFusionJob(self, request):
|
|
192
215
|
r"""查询视频人脸融合任务
|
|
193
216
|
|
|
@@ -399,6 +422,29 @@ class VclmClient(AbstractClient):
|
|
|
399
422
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
400
423
|
|
|
401
424
|
|
|
425
|
+
def SubmitVideoEditJob(self, request):
|
|
426
|
+
r"""用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
|
|
427
|
+
|
|
428
|
+
:param request: Request instance for SubmitVideoEditJob.
|
|
429
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.SubmitVideoEditJobRequest`
|
|
430
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.SubmitVideoEditJobResponse`
|
|
431
|
+
|
|
432
|
+
"""
|
|
433
|
+
try:
|
|
434
|
+
params = request._serialize()
|
|
435
|
+
headers = request.headers
|
|
436
|
+
body = self.call("SubmitVideoEditJob", params, headers=headers)
|
|
437
|
+
response = json.loads(body)
|
|
438
|
+
model = models.SubmitVideoEditJobResponse()
|
|
439
|
+
model._deserialize(response["Response"])
|
|
440
|
+
return model
|
|
441
|
+
except Exception as e:
|
|
442
|
+
if isinstance(e, TencentCloudSDKException):
|
|
443
|
+
raise
|
|
444
|
+
else:
|
|
445
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
446
|
+
|
|
447
|
+
|
|
402
448
|
def SubmitVideoFaceFusionJob(self, request):
|
|
403
449
|
r"""提交视频人脸融合任务
|
|
404
450
|
|
|
@@ -152,6 +152,24 @@ class VclmClient(AbstractClient):
|
|
|
152
152
|
|
|
153
153
|
return await self.call_and_deserialize(**kwargs)
|
|
154
154
|
|
|
155
|
+
async def DescribeVideoEditJob(
|
|
156
|
+
self,
|
|
157
|
+
request: models.DescribeVideoEditJobRequest,
|
|
158
|
+
opts: Dict = None,
|
|
159
|
+
) -> models.DescribeVideoEditJobResponse:
|
|
160
|
+
"""
|
|
161
|
+
用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
kwargs = {}
|
|
165
|
+
kwargs["action"] = "DescribeVideoEditJob"
|
|
166
|
+
kwargs["params"] = request._serialize()
|
|
167
|
+
kwargs["resp_cls"] = models.DescribeVideoEditJobResponse
|
|
168
|
+
kwargs["headers"] = request.headers
|
|
169
|
+
kwargs["opts"] = opts or {}
|
|
170
|
+
|
|
171
|
+
return await self.call_and_deserialize(**kwargs)
|
|
172
|
+
|
|
155
173
|
async def DescribeVideoFaceFusionJob(
|
|
156
174
|
self,
|
|
157
175
|
request: models.DescribeVideoFaceFusionJobRequest,
|
|
@@ -318,6 +336,24 @@ class VclmClient(AbstractClient):
|
|
|
318
336
|
|
|
319
337
|
return await self.call_and_deserialize(**kwargs)
|
|
320
338
|
|
|
339
|
+
async def SubmitVideoEditJob(
|
|
340
|
+
self,
|
|
341
|
+
request: models.SubmitVideoEditJobRequest,
|
|
342
|
+
opts: Dict = None,
|
|
343
|
+
) -> models.SubmitVideoEditJobResponse:
|
|
344
|
+
"""
|
|
345
|
+
用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
|
|
346
|
+
"""
|
|
347
|
+
|
|
348
|
+
kwargs = {}
|
|
349
|
+
kwargs["action"] = "SubmitVideoEditJob"
|
|
350
|
+
kwargs["params"] = request._serialize()
|
|
351
|
+
kwargs["resp_cls"] = models.SubmitVideoEditJobResponse
|
|
352
|
+
kwargs["headers"] = request.headers
|
|
353
|
+
kwargs["opts"] = opts or {}
|
|
354
|
+
|
|
355
|
+
return await self.call_and_deserialize(**kwargs)
|
|
356
|
+
|
|
321
357
|
async def SubmitVideoFaceFusionJob(
|
|
322
358
|
self,
|
|
323
359
|
request: models.SubmitVideoFaceFusionJobRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-vclm
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.17
|
|
4
4
|
Summary: Tencent Cloud Vclm SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.17
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.17
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.8
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|