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

113.211**9 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': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 7394333, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: L:/Downloads/[无码破解]PKPD-402 无胸罩奶油派温泉之旅 铃木真由.mp4,
输出结果保存到文件夹: L:/Downloads/_video_out/[无码破解]PKPD-402 无胸罩奶油派温泉之旅 铃木真由-mp4,
临时文件夹: E:/win-pyvideotrans-v/tmp/30976/1ad373e6e9
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 日语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 单字幕


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于 Google 翻译接口在中国大陆无法直接访问导致网络请求失败。

解决方案:

  1. 确保电脑已开启科学上网(VPN/代理),并在主界面“对齐控制”行右侧的网络代理文本框中填写代理地址,格式如 http://127.0.0.1:10808
  2. 或者直接更换翻译渠道,推荐使用 DeepSeek(需在菜单 → 翻译设置 → DeepSeek中填入 API Key)或 M2M100(内置) 本地离线翻译(首次使用会自动下载模型)。

请查阅相关文档:

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