#8357 翻译字幕阶段出错 [Google(免费)] Connection reset, network may be unstableTraceback (most recent call last):

2408**10eb Posted at: 3 hours ago

翻译字幕阶段出错 [Google(免费)] Connection reset, network may be unstable
Traceback (most recent call last):

File "urllib3\connectionpool.py", line 787, in urlopen

File "urllib3\connectionpool.py", line 488, in _make_request

File "urllib3\connectionpool.py", line 464, in _make_request

File "urllib3\connectionpool.py", line 1093, in _validate_conn

File "urllib3\connection.py", line 790, in connect

File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname

File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket

File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl

File "ssl.py", line 513, in wrap_socket

File "ssl.py", line 1104, in _create

File "ssl.py", line 1375, in do_handshake

ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "requests\adapters.py", line 644, in send

File
......
, line 31, in trans

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

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

File "videotrans\translator\_base.py", line 117, 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\_microsoft.py", line 49, in _item_task

File "requests\api.py", line 115, in post

File "requests\api.py", line 59, in request

File "requests\sessions.py", line 589, in request

File "requests\sessions.py", line 703, in send

File "requests\adapters.py", line 659, in send

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
trk=[TransCreate]: uuid='24a33e9a13', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/B站视频/AI课程/BV1uAsueFEay p1 gorfmai AI in the Sciences and Engineering 02 Introduction to Deep Learning Part.mp4,
输出结果保存到文件夹: E:/B站视频/AI课程/BV1uAsueFEay p1 gorfmai AI in the Sciences and Engineering 02 Introduction to Deep Learning Part-mp4,
临时文件夹: E:/PV/win-pyvideotrans-v4.15/tmp/10436/24a33e9a13
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语,
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 未选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 目标语言在上双字幕, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=False, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.26200-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:E:/PV/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 3 hours ago

这是网络连接问题,并非软件本身故障:Google 翻译在国内必须使用有效的科学上网代理,这次请求的 TLS 握手阶段就被远程主机强制断开了(WinError 10054)。日志中显示,软件先尝试使用 Google 翻译,失败后自动回退到微软翻译,但微软翻译同样被连接重置,说明当前网络或代理不可用。

处理方案(按推荐顺序):

  1. 检查并填写代理
    在主界面「对齐控制」行右侧的网络代理文本框中填写代理地址,格式必须为 http://127.0.0.1:端口号(如 http://127.0.0.1:10808)或 socks5://127.0.0.1:端口号。填写后确认代理软件正在运行,且端口正确;不要填写无效地址,否则会导致所有网络请求失败。
    若代理不稳定,请更换更干净的节点,否则仍会被 Google 或微软重置连接。
  2. 推荐改用 AI 大模型翻译(质量更好但需充值)
    前往 https://platform.deepseek.com/ 注册并充值(可自定义充值 1 元),获取 API Key 后填入 菜单-翻译设置-DeepSeek,把翻译渠道由 Google(免费) 改为 DeepSeek。该渠道国内可直连,无需代理,翻译质量优于 Google。
  3. 完全离线方案:本地翻译模型
    翻译渠道选择 M2M100(内置),首次使用会在线下载模型(存放于 软件目录/models/m2m100_12b_model),之后完全离线翻译,不受网络影响。
  4. 重试前务必勾选 清理已生成
    因为你的日志显示已选该项,重试时保持勾选,避免复用上次失败的中间文件。

补充说明:若后续使用 Google 翻译仍频繁报 429,通常是代理节点 IP 被 Google 标记为流量异常,或请求过于频繁,可增大 高级选项-字幕翻译-翻译后暂停秒 的值。

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