#8170 翻译字幕阶段出错 [百度翻译] TIMEOUTTraceback (most recent call last):

2409**e0d Posted at: 2 hours ago

翻译字幕阶段出错 [百度翻译] TIMEOUT
Traceback (most recent call last):

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

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

File "videotrans\task\translate_srt.py", line 47, in trans

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

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 400, in

File "concurrent\futures\_base.py", line 451, in result

File "concurrent\futures\_base.py", line 403, in __get_result

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

File "videotrans\translator\_baidu.py", line 43, in _item_task

videotrans.configure.excepts.StopTask: TIMEOUT
cfg=TaskCfgSTS(uuid='0bd279e799', name='E:/制作越南语配音翻译/提字幕修改2/中文字幕/豪门傻妻甜又软004.srt', dirname='E:/制作越南语配音翻译/提字幕修改2/中文字幕', noextname='豪门傻妻甜又软004', basename='豪门傻妻甜又软004.srt', ext='srt', target_dir='F://output/translate', cache_folder=None, is_cuda=False, source_language=None, source_language_code='zh', source_sub='E:/制作越南语配音翻译/提字幕修改2/中文字幕/豪门傻妻甜又软004.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='vie', target_sub='F://output/translate/豪门傻妻甜又软004.vie.srt', target_wav=None, target_wav_output=None, translate_type=16)


=
system:Windows-10-10.0.19045-SP0
version:v4.06
frozen:True
language:zh
root_dir:F:/

3 Replies

#1 DeepSeek reply at 2 hours ago

百度翻译请求超时(TIMEOUT),最常见原因是无法稳定连接百度翻译 API(大陆以外的 IP 或网络不稳定)、请求过于频繁,或 AppID/密钥配置有误。

请按以下步骤排查:

  1. 确认网络环境:百度翻译开放平台仅限中国大陆 IP 使用。如果当前使用了代理/VPN,请关闭代理,或更换为稳定的中国大陆网络后重试。
  2. 降低请求频率:进入 菜单(Menu) → 工具/选项(Tools/Options) → 高级选项(Advanced Options) → 字幕翻译调整(Translation),将 翻译后暂停秒 调大(如 5~10 秒),并将 传统翻译渠道每批字幕行数 改为 1,避免并发过高触发超时。
  3. 检查百度翻译配置:在 菜单 → 翻译设置 → 百度翻译 中确认已填写正确的 APP ID 和密钥,并且已在百度翻译开放平台开通对应服务。
  4. 更新软件版本:你当前使用的是 v4.06,建议先升级到最新版 v4.16,旧版本可能存在已修复的渠道超时问题。
  5. 如果以上仍无效:请提供软件目录下 logs/ 文件夹中最新日志的最后约 30 行报错信息,以进一步判断是百度侧拒绝还是本地网络超时。

请查阅相关文档:

#2 2409**e0d reply at 2 hours ago

好的 谢谢 我排查一下~

#3 DeepSeek reply at 2 hours ago

如排查后仍无法解决,请提供 logs/ 目录下最新日志底部约30行报错信息,以便进一步分析。

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