#8718 翻译字幕阶段出错 [Google(免费)] ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))Traceb

2409**2e7c Posted at: 5 hours ago

翻译字幕阶段出错 [Google(免费)] ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
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 6
......
ft.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=翻译视频 单视频模式
选择音视频文件: D:/Users/ASUS/Downloads/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1).mp4,
输出目录: D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4,
self.cfg.cache_folder='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571'
已选 清理已生成, 已选 CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语
最长语音持续(秒): 5s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
计算数据类型:default
识别准确度beam_size:5
识别准确度best_of:5
启用上下文感知:False
重复惩罚:1.0
文本压缩率:2.4
翻译渠道:Google(免费),发音语言:英语,目标语言:简体中文
传统翻译渠道每批字幕行数: 5
Dont dubbing: self.cfg.voice_role='No'
嵌入硬字幕
中日韩字幕单行字符数:15, 其他语言字幕单行字符数:40
video duration:1166598ms
video information:{'video_fps': 29.97002997002997, 'r_frame_rate': 29.97002997002997, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 1166598, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='53da7bc571', name='D:/Users/ASUS/Downloads/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1).mp4', dirname='D:/Users/ASUS/Downloads', noextname='The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)', basename='The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1).mp4', ext='mp4', target_dir='D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4', cache_folder='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571', is_cuda=True, source_language='英语', source_language_code='en', source_sub='D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4/en.srt', source_wav='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571/en.wav', source_wav_output='D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4/zh-cn.srt', target_wav='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571/target.wav', target_wav_output='D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='D:/softwhare/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1)-mp4/The first 20 hours -- how to learn anything Josh Kaufman TEDxCSU (1).mp4', novoice_mp4='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571/instrument.wav', vocal='D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/16964/53da7bc571/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=1166598


=
system:Windows-10-10.0.26200-SP0
version:v4.18
frozen:True
language:zh_CN
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106

1 Replies

#1 DeepSeek reply at 5 hours ago

核心原因:Google 翻译在中国大陆被屏蔽,当前请求未走有效代理(或代理不稳定),导致 SSL 握手阶段被远程主机重置(10054)。日志中报错实际发生在 _microsoft.py,说明 Google 失败后软件自动回退微软翻译,微软免费接口也连接失败。

解决方案(按优先级三选一):

  1. 配置有效代理(继续用 Google)

    • 在主界面"对齐"行右侧的网络代理文本框填写:http://127.0.0.1:7890(端口换成你代理软件的实际 HTTP 端口)
    • 确保代理软件已启动,并开启全局/TUN 模式,且代理节点 IP 干净(不干净的节点会被 Google 判定异常)
    • 若代理软件仅提供 socks5,则填 socks5://127.0.0.1:端口号
  2. 改用可直连的翻译渠道(推荐,无需代理)

    • DeepSeek:翻译质量优于 Google,需到 platform.deepseek.com 注册充值(可充 1 元)并获取 API Key,填入 菜单 → 翻译设置 → DeepSeek
    • 或先用 Microsoft(免费) 应急(可能限流)
    • 或 M2M100(内置) / Hy-MT2(内置) 本地模型翻译,完全离线
    • 切换后务必勾选主界面 清理已生成 重试,避免复用已缓存的失败结果
  3. 降低请求频率

    • 菜单 → 工具/选项 → 高级选项 → 字幕翻译:传统翻译渠道每批字幕行数 保持 5 或更低,翻译后暂停秒 设为 1~2

另外两点提醒:

  • 你的视频文件名过长且含 --、空格、括号 (1),极易引发 ffmpeg 路径解析错误,建议重命名为 ted.mp4 这类简短英文名后再导入。
  • 当前 voice_role='No'(不配音)却仍选用了"音频加速/视频慢速",这两个选项在无配音时无意义,可取消勾选。

请查阅相关文档:

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