tencentcloud-sdk-python-vclm 3.1.22__tar.gz → 3.1.24__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/setup.py +1 -1
  3. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/vclm/v20240523/models.py +99 -18
  5. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud_sdk_python_vclm.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_vclm-3.1.24/tencentcloud_sdk_python_vclm.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_vclm-3.1.22/tencentcloud_sdk_python_vclm.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/README.rst +0 -0
  9. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/vclm/__init__.py +0 -0
  11. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/vclm/v20240523/__init__.py +0 -0
  12. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/vclm/v20240523/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/vclm/v20240523/vclm_client.py +0 -0
  14. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud/vclm/v20240523/vclm_client_async.py +0 -0
  15. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud_sdk_python_vclm.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/tencentcloud_sdk_python_vclm.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_vclm-3.1.22 → tencentcloud_sdk_python_vclm-3.1.24}/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.22
3
+ Version: 3.1.24
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.22
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.24
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.22,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.24,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Vclm SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.22'
17
+ __version__ = '3.1.24'
@@ -1505,8 +1505,20 @@ class ExtraParam(AbstractModel):
1505
1505
  r"""
1506
1506
  :param _UserDesignatedUrl: 预签名的上传url,支持把视频直接传到客户指定的地址。
1507
1507
  :type UserDesignatedUrl: str
1508
+ :param _CallbackUrl: 回调地址
1509
+ 需要您在创建任务时主动设置 CallbackUrl,请求方法为 POST,当视频生成结束时,我们将向此地址发送生成结果。
1510
+ 数据格式如下:
1511
+ {
1512
+ "JobId": "1397428070633955328",
1513
+ "Status": "DONE",
1514
+ "ErrorCode": "",
1515
+ "ErrorMessage": "",
1516
+ "ResultVideoUrl": "https://vcg.cos.tencentcos.cn/template_to_video/fa80b846-b933-4981-afad-8a39b46ef2ca.mp4"
1517
+ }
1518
+ :type CallbackUrl: str
1508
1519
  """
1509
1520
  self._UserDesignatedUrl = None
1521
+ self._CallbackUrl = None
1510
1522
 
1511
1523
  @property
1512
1524
  def UserDesignatedUrl(self):
@@ -1519,9 +1531,30 @@ class ExtraParam(AbstractModel):
1519
1531
  def UserDesignatedUrl(self, UserDesignatedUrl):
1520
1532
  self._UserDesignatedUrl = UserDesignatedUrl
1521
1533
 
1534
+ @property
1535
+ def CallbackUrl(self):
1536
+ r"""回调地址
1537
+ 需要您在创建任务时主动设置 CallbackUrl,请求方法为 POST,当视频生成结束时,我们将向此地址发送生成结果。
1538
+ 数据格式如下:
1539
+ {
1540
+ "JobId": "1397428070633955328",
1541
+ "Status": "DONE",
1542
+ "ErrorCode": "",
1543
+ "ErrorMessage": "",
1544
+ "ResultVideoUrl": "https://vcg.cos.tencentcos.cn/template_to_video/fa80b846-b933-4981-afad-8a39b46ef2ca.mp4"
1545
+ }
1546
+ :rtype: str
1547
+ """
1548
+ return self._CallbackUrl
1549
+
1550
+ @CallbackUrl.setter
1551
+ def CallbackUrl(self, CallbackUrl):
1552
+ self._CallbackUrl = CallbackUrl
1553
+
1522
1554
 
1523
1555
  def _deserialize(self, params):
1524
1556
  self._UserDesignatedUrl = params.get("UserDesignatedUrl")
1557
+ self._CallbackUrl = params.get("CallbackUrl")
1525
1558
  memeber_set = set(params.keys())
1526
1559
  for name, value in vars(self).items():
1527
1560
  property_name = name[1:]
@@ -3132,15 +3165,22 @@ class SubmitVideoEditJobRequest(AbstractModel):
3132
3165
 
3133
3166
  def __init__(self):
3134
3167
  r"""
3135
- :param _VideoUrl: 输入视频
3136
-
3137
- - 视频格式:MP4
3138
- - 视频时长:5s以内
3139
- - 视频分辨率:无限制(待验证是否可以无损输出)
3168
+ :param _VideoUrl: 参考视频URL。默认为待编辑视频。
3169
+ - 视频格式:支持MP4
3170
+ - 视频时长:输入视频时长≤5秒
3171
+ - 视频大小:不超过200M
3172
+ - 视频文件:输入的视频帧率及分辨率不做限制(建议输入16:9或9:16的视频;分辨率建议在2160px内,帧率建议在60fps内);输出视频是帧率会≥16fps,分辨率为720p
3140
3173
  :type VideoUrl: str
3141
- :param _Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
3142
- 支持风格迁移、替换、元素增加、删除控制
3174
+ :param _Prompt: 视频内容的描述,中文正向提示词。支持视频内容增加、删除、修改等能力
3175
+ - 最多支持200个 utf-8 字符(首尾空格不计入字符数)
3176
+ - 不传prompt的时候,Images.N参考图列表必须要传图,且传的图片是经过图片编辑之后的结果图
3143
3177
  :type Prompt: str
3178
+ :param _Images: 参考图列表。用于对视频内容做风格迁移、内容替换、内容删减、内容增加做参考。
3179
+ - 支持传入图片Base64编码或图片URL
3180
+ - 图片格式:支持jpg,png,jpeg,webp,bmp,tiff 格式
3181
+ - 图片文件:大小不能超过10MB(base64后)。单边分辨率不超过5000px,不小于50px,图片长宽限制1:4 ~ 4:1。
3182
+ 示例值:[{ "Url": "https://console.cloud.tencent.com/cos/image.png"}]
3183
+ :type Images: list of Image
3144
3184
  :param _Image: 图片base64或者图片url
3145
3185
 
3146
3186
  - Base64 和 Url 必须提供一个,如果都提供以Url为准。
@@ -3148,24 +3188,32 @@ class SubmitVideoEditJobRequest(AbstractModel):
3148
3188
  - 支持jpg,png,jpeg,webp,bmp,tiff 格式
3149
3189
  - 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
3150
3190
  :type Image: :class:`tencentcloud.vclm.v20240523.models.Image`
3151
- :param _LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
3191
+ :param _LogoAdd: 为生成视频添加标识的开关,默认为1。传0 需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成后方可生效。
3192
+ 1:添加标识;
3193
+ 0:不添加标识;
3194
+ 其他数值:默认按1处理。
3195
+ 建议您使用显著标识来提示,该视频是 AI 生成的视频。
3196
+
3152
3197
  :type LogoAdd: int
3153
- :param _LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
3198
+ :param _LogoParam: 标识内容设置。
3199
+ 默认在生成视频的右下角添加“ AI 生成”或“视频由 AI 生成”字样,如需替换为其他的标识图片,需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成。
3200
+
3154
3201
  :type LogoParam: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
3155
3202
  """
3156
3203
  self._VideoUrl = None
3157
3204
  self._Prompt = None
3205
+ self._Images = None
3158
3206
  self._Image = None
3159
3207
  self._LogoAdd = None
3160
3208
  self._LogoParam = None
3161
3209
 
3162
3210
  @property
3163
3211
  def VideoUrl(self):
3164
- r"""输入视频
3165
-
3166
- - 视频格式:MP4
3167
- - 视频时长:5s以内
3168
- - 视频分辨率:无限制(待验证是否可以无损输出)
3212
+ r"""参考视频URL。默认为待编辑视频。
3213
+ - 视频格式:支持MP4
3214
+ - 视频时长:输入视频时长≤5秒
3215
+ - 视频大小:不超过200M
3216
+ - 视频文件:输入的视频帧率及分辨率不做限制(建议输入16:9或9:16的视频;分辨率建议在2160px内,帧率建议在60fps内);输出视频是帧率会≥16fps,分辨率为720p
3169
3217
  :rtype: str
3170
3218
  """
3171
3219
  return self._VideoUrl
@@ -3176,8 +3224,9 @@ class SubmitVideoEditJobRequest(AbstractModel):
3176
3224
 
3177
3225
  @property
3178
3226
  def Prompt(self):
3179
- r"""视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
3180
- 支持风格迁移、替换、元素增加、删除控制
3227
+ r"""视频内容的描述,中文正向提示词。支持视频内容增加、删除、修改等能力
3228
+ - 最多支持200个 utf-8 字符(首尾空格不计入字符数)
3229
+ - 不传prompt的时候,Images.N参考图列表必须要传图,且传的图片是经过图片编辑之后的结果图
3181
3230
  :rtype: str
3182
3231
  """
3183
3232
  return self._Prompt
@@ -3186,8 +3235,25 @@ class SubmitVideoEditJobRequest(AbstractModel):
3186
3235
  def Prompt(self, Prompt):
3187
3236
  self._Prompt = Prompt
3188
3237
 
3238
+ @property
3239
+ def Images(self):
3240
+ r"""参考图列表。用于对视频内容做风格迁移、内容替换、内容删减、内容增加做参考。
3241
+ - 支持传入图片Base64编码或图片URL
3242
+ - 图片格式:支持jpg,png,jpeg,webp,bmp,tiff 格式
3243
+ - 图片文件:大小不能超过10MB(base64后)。单边分辨率不超过5000px,不小于50px,图片长宽限制1:4 ~ 4:1。
3244
+ 示例值:[{ "Url": "https://console.cloud.tencent.com/cos/image.png"}]
3245
+ :rtype: list of Image
3246
+ """
3247
+ return self._Images
3248
+
3249
+ @Images.setter
3250
+ def Images(self, Images):
3251
+ self._Images = Images
3252
+
3189
3253
  @property
3190
3254
  def Image(self):
3255
+ warnings.warn("parameter `Image` is deprecated", DeprecationWarning)
3256
+
3191
3257
  r"""图片base64或者图片url
3192
3258
 
3193
3259
  - Base64 和 Url 必须提供一个,如果都提供以Url为准。
@@ -3200,11 +3266,18 @@ class SubmitVideoEditJobRequest(AbstractModel):
3200
3266
 
3201
3267
  @Image.setter
3202
3268
  def Image(self, Image):
3269
+ warnings.warn("parameter `Image` is deprecated", DeprecationWarning)
3270
+
3203
3271
  self._Image = Image
3204
3272
 
3205
3273
  @property
3206
3274
  def LogoAdd(self):
3207
- r"""为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
3275
+ r"""为生成视频添加标识的开关,默认为1。传0 需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成后方可生效。
3276
+ 1:添加标识;
3277
+ 0:不添加标识;
3278
+ 其他数值:默认按1处理。
3279
+ 建议您使用显著标识来提示,该视频是 AI 生成的视频。
3280
+
3208
3281
  :rtype: int
3209
3282
  """
3210
3283
  return self._LogoAdd
@@ -3215,7 +3288,9 @@ class SubmitVideoEditJobRequest(AbstractModel):
3215
3288
 
3216
3289
  @property
3217
3290
  def LogoParam(self):
3218
- r"""标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
3291
+ r"""标识内容设置。
3292
+ 默认在生成视频的右下角添加“ AI 生成”或“视频由 AI 生成”字样,如需替换为其他的标识图片,需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成。
3293
+
3219
3294
  :rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
3220
3295
  """
3221
3296
  return self._LogoParam
@@ -3228,6 +3303,12 @@ class SubmitVideoEditJobRequest(AbstractModel):
3228
3303
  def _deserialize(self, params):
3229
3304
  self._VideoUrl = params.get("VideoUrl")
3230
3305
  self._Prompt = params.get("Prompt")
3306
+ if params.get("Images") is not None:
3307
+ self._Images = []
3308
+ for item in params.get("Images"):
3309
+ obj = Image()
3310
+ obj._deserialize(item)
3311
+ self._Images.append(obj)
3231
3312
  if params.get("Image") is not None:
3232
3313
  self._Image = Image()
3233
3314
  self._Image._deserialize(params.get("Image"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-vclm
3
- Version: 3.1.22
3
+ Version: 3.1.24
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.22
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.24
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.24
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.22