#6939 翻译字幕阶段出错 [Google(免费)] Google 翻译失败Traceback (most recent call last):

200.240**0 Posted at: 1 hour ago

翻译字幕阶段出错 [Google(免费)] Google 翻译失败
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 58, in run

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

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

File "videotrans\translator\_google.py", line 36, in _item_task

videotrans.configure.excepts.TranslateSrtError: Google 翻译失败
[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': 1920, 'height': 1080, 'time': 3667774, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: C:/Users/lixiang11/Documents/Feishu/20260821202937_WMSWCS培训/video_20260821203544.mp4,
输出结果保存到文件夹: C:/Users/lixiang11/Desktop/video_20260821203544-mp4,
临时文件夹: C:/Users/lixiang11/Downloads/win-pyvideotrans-v4.11/tmp/36388/8985607e76
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:葡萄牙语(巴西), 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕


=
system:Windows-10-10.0.28000-SP0
version:v4.11
frozen:True
language:zh
root_dir:C:/Users/lixiang11/Downloads/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是Google翻译渠道无法访问导致的网络连接故障。Google翻译在中国大陆需要科学上网才能使用,当前网络无法连通Google服务器,重试多次后失败。

解决方案(按优先级):

  1. 配置代理:在主界面「对齐控制」行右侧的「网络代理」文本框中填写有效的代理地址,格式如 http://127.0.0.1:10808socks5://127.0.0.1:端口号,需确保代理服务已启动且端口正确,填好后保存重试。
  2. 更换翻译渠道(推荐):

    • 改用 DeepSeek(效果最好,需在菜单-翻译设置-DeepSeek 中填写API密钥,国内可直接访问)
    • 改用 Microsoft 翻译(国内可直连,但微软已关闭部分免费接口,需更新到最新版)
    • 改用 M2M100(内置) 本地翻译(完全离线,第一次使用需下载模型)
  3. 注意:若选择Google翻译失败,软件本应自动使用微软翻译重试,但频繁失败可能因网络不通导致重试也失败。建议直接更换渠道。

验证网络:在浏览器中打开 translate.google.com,若能打开则为网络OK;若无法打开则必须配置代理或换渠道。

请查阅相关文档:

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