#8832 翻译字幕阶段出错 [Google(免费)] Secure connection failed, check system time or network settingsurllib3.exceptions.SSLError: EOF oc

38.147**9 Posted at: 4 hours ago

翻译字幕阶段出错 [Google(免费)] Secure connection failed, check system time or network settings
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1017)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

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

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

File "urllib3\util\retry.py", line 519, in increment

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='edge.microsoft.com', port=443): Max retries exceeded with url: /translate/translatetext?from=&to=en&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))

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 133, in process_task

File "videotrans\task\_stage_translate.py", 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 675, in send

requests.exceptions.SSLError: HTTPSConnectionPool(host='edge.microsoft.com', port=443): Max retries exceeded with url: /translate/translatetext?from=&to=en&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))
trk=转录翻译
选择音视频文件: G:/恶犬/ZIP/ZIP/ZIP-1.mp4,
输出目录: G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4,
self.cfg.cache_folder='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731'
未选 清理已生成, 未选 启用硬件加速
语音识别: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
video duration:47000ms
video information:{'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 3840, 'height': 2160, 'time': 47000, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='ad5cba4731', name='G:/恶犬/ZIP/ZIP/ZIP-1.mp4', dirname='G:/恶犬/ZIP/ZIP', noextname='ZIP-1', basename='ZIP-1.mp4', ext='mp4', target_dir='G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4', cache_folder='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731', is_cuda=False, source_language='简体中文', source_language_code='zh-cn', source_sub='G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4/zh-cn.srt', source_wav='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731/zh-cn.wav', source_wav_output='G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4/zh-cn.m4a', target_language='英语', target_language_code='en', target_sub='G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4/en.srt', target_wav='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731/target.wav', target_wav_output='G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4/en.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='zh', 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='tiqu', subtitle_language=None, targetdir_mp4='G:/恶犬/ZIP/ZIP/_video_out/ZIP-1-mp4/ZIP-1.mp4', novoice_mp4='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731/instrument.wav', vocal='D:/浏览器下载/win-pyvideotrans-v4.19/tmp/26028/ad5cba4731/vocal.wav', clear_cache=False, background_music='', subtitle_type=0, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=True)


=
system:Windows-10-10.0.26200-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:D:/浏览器下载/win-pyvideotrans-v4.19

1 Replies

#1 DeepSeek reply at 4 hours ago

这是网络连接被中断导致的 SSL 握手失败,并非软件本身故障。日志中显示 Google 翻译失败后自动回退到微软翻译,但请求 edge.microsoft.com 时同样抛出了 SSLEOFError,说明当前网络环境下这两个免费接口均无法建立有效连接。常见原因包括:未配置代理(Google 翻译在国内需科学上网)、代理节点不稳定或已失效、系统时间与标准时间偏差过大、安全软件拦截 HTTPS 请求。

解决方案(按优先级)

1. 更换翻译渠道(最推荐,可彻底规避网络问题)

  • 主界面 翻译渠道 从 Google(免费) 改为 DeepSeek。
  • 到 https://platform.deepseek.com/ 注册并充值(可只充 1 元),获取 API Key。
  • 填入 菜单 → 翻译设置 → DeepSeek 的密钥框中。
  • DeepSeek 翻译质量优于 Google,且国内可直连,无需代理。

2. 若要继续用 Google(免费),必须正确配置代理

  • 在主界面右下方 网络代理 文本框中填写:http://127.0.0.1:端口号(如 http://127.0.0.1:7890)。
  • 确认代理软件已启动、端口正确、节点可用。
  • 切忌随意填写无效地址,否则所有网络请求都会失败。

3. 检查系统时间

  • 错误提示中已包含 check system time,请将 Windows 时间同步到标准时间(设置 → 时间和语言 → 立即同步)。

4. 改用本地翻译(完全离线,无需网络)

  • 翻译渠道选择 M2M100(内置),首次使用会自动下载模型(约需较大空间)。
  • 或使用 Hy-MT2(内置) 腾讯本地翻译模型。

5. 排查安全软件

  • 将软件所在文件夹加入杀毒软件/防火墙信任名单,避免 HTTPS 请求被拦截。

请查阅相关文档:

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