#8806 翻译字幕阶段出错 [腾讯翻译] tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKExce

223.73**3 Posted at: 1 day ago

翻译字幕阶段出错 [腾讯翻译] tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:FailedOperation.NoFreeAmount message:service free amount of this month has been used up requestId:ef795f22-f8c6-4f55-869a-67b8dd2dd24f
Traceback (most recent call last):

File "videotrans\translator\_base.py", line 68, in run

File "videotrans\translator\_base.py", line 107, in _run_text

File "tenacity\__init__.py", line 338, in wrapped_f

File "tenacity\__init__.py", line 477, in call

File "tenacity\__init__.py", line 378, in iter

File "tenacity\__init__.py", line 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 137, in process_task

File "videotrans\task\_stage_translate.py", line 31, in trans

File "videotrans\translator\_runner.py", line 67, in run

File "videotrans\translator\_base.py", line 74, in run

File "tenacity\__init__.py", line 480, in call

File "videotrans\translator\_tencent.py", line 47, in _item_task

File "tencentcloud\tmt\v20180321\tmt_client.py", line 163, in TextTranslate

File "tencentcloud\common\abstract_client.py", line 433, in call

File "tencentcloud\common\abstract_client.py", line 364, in _check_error

tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:FailedOperation.NoFreeAmount message:service free amount of this month has been used up requestId:ef795f22-f8c6-4f55-869a-67b8dd2dd24f
[TransCreate]翻译视频: self.is_copy_video=True,self.video_codec_num=264,self.is_audio_trans=False,self.video_info={'video_fps': 24.0, 'r_frame_rate': 24.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 320, 'height': 240, 'time': 905833, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: C:/Users/21472/Desktop/视频/GayForIt - Free Gay Porn Videos - Hypno doctor (1.mp4,
输出结果保存到文件夹: C:/Users/21472/Desktop/视频/_video_out/GayForIt - Free Gay Porn Videos - Hypno doctor (1-mp4,
临时文件夹: D:/pyVideoTrans/tmp/22340/97777f163e
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:腾讯翻译,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕


=
system:Windows-10-10.0.26100-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 day ago

核心原因:腾讯云机器翻译的本月免费额度已用尽(错误码 FailedOperation.NoFreeAmount),与软件本身无关,此时任何重试都会继续失败。

解决方式(任选其一)

1. 继续用腾讯翻译:需充值
登录腾讯云控制台,在机器翻译 TMT 服务中开通付费/购买资源包,充值后重新执行任务(建议勾选「清理已生成」再跑)。

2. 换成免费渠道(最快)
主界面「翻译渠道」改为 Microsoft(免费)(国内直连,无需代理)或 Google(免费)(国内需代理,且易 429 限流)。

3. 换成 AI 渠道(效果最佳,推荐)
主界面「翻译渠道」选择 DeepSeek,到 菜单 → 翻译设置 → DeepSeek 填入 API Key(充值 1 元即可用很久),保留已勾选的 发送完整字幕。

额外提醒(与本次报错无关但会导致后续失败)

你当前的文件名和路径存在风险:

C:/Users/21472/Desktop/视频/GayForIt - Free Gay Porn Videos - Hypno doctor (1.mp4

含有空格、括号、非 ASCII 目录名,且路径较长,极易在 ffmpeg 合成阶段报 ffprobe/ffmpeg exec error。建议先重命名为 video1.mp4 并移动到 D:/videos/ 这类浅层英文路径,再重新处理。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource