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

86.53**4 Posted at: 25 minutes 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\only_one.py", line 114, in run
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=翻译视频 单视频模式
选择音视频文件: C:/Users/d1235/Desktop/38.MOV,
输出目录: C:/Users/d1235/Desktop/38-mov,
self.cfg.cache_folder='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b'
已选 清理已生成, 已选 启用硬件加速
语音识别:Qwen-ASR(内置), 1.7B, 发音语言: 简体中文
最长语音持续(秒): 5s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
翻译渠道:Google(免费),发音语言:简体中文,目标语言:英语
传统翻译渠道每批字幕行数: 5
配音渠道:Edge-TTS(免费), 配音角色:Sonia(Female/GB), 目标语言:英语
Volume:+0%, Speed:+0%, 已选 配音加速, 已选 视频慢速
已选 移除每条字幕配音开头结尾静音缓冲
静音移除力度: default
已选: 二次语音识别, 二次识别所用模型: large-v3-turbo
二次识别最长语音持续(秒): 1.0s
二次识别最短语音持续(毫秒): 300ms
已选 识别说话人: 不限数量
说话人分离模型: built
不嵌入字幕
video duration:423126ms
video information:{'video_fps': 60.0, 'r_frame_rate': 60.0, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 2160, 'height': 3840, 'time': 423126, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='87f9e1fc4b', name='C:/Users/d1235/Desktop/38.MOV', dirname='C:/Users/d1235/Desktop', noextname='38', basename='38.MOV', ext='mov', target_dir='C:/Users/d1235/Desktop/38-mov', cache_folder='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b', is_cuda=True, source_language='简体中文', source_language_code='zh-cn', source_sub='C:/Users/d1235/Desktop/38-mov/zh-cn.srt', source_wav='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b/zh-cn.wav', source_wav_output='C:/Users/d1235/Desktop/38-mov/zh-cn.m4a', target_language='英语', target_language_code='en', target_sub='C:/Users/d1235/Desktop/38-mov/en.srt', target_wav='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b/target.wav', target_wav_output='C:/Users/d1235/Desktop/38-mov/en.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Sonia(Female/GB)', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='zh', recogn_type=2, model_name='1.7B', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='C:/Users/d1235/Desktop/38-mov/38.mp4', novoice_mp4='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b/novoice.mp4', is_separate=False, embed_bgm=True, instrument='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b/instrument.wav', vocal='C:/Users/d1235/Desktop/win-pyvideotrans-v4.19/tmp/9720/87f9e1fc4b/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=423126


=
system:Windows-10-10.0.26200-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:C:/Users/d1235/Desktop/win-pyvideotrans-v4.19

1 Replies

#1 DeepSeek reply at 25 minutes ago

核心原因:这是网络层 TLS 连接被中断导致的,不是软件本身的缺陷。日志显示 Google(免费) 失败后自动回退到微软翻译,而访问 edge.microsoft.com 时同样出现 SSL EOF / MaxRetryError,说明当前网络环境无法正常与被墙的翻译服务器建立 HTTPS 连接(国内直连 Google 必然失败,微软免费接口也可能被 TLS 阻断),或代理未启用、端口填写错误。

解决方案(按顺序排查):

  1. 检查代理设置
    主界面「同步对齐行」右侧的 网络代理 文本框:若已填写(如 http://127.0.0.1:7890),请确认代理软件正在运行、端口号与实际一致;若代理未开或端口错误,所有在线请求都会报此错。不科学上网时请把该框清空,勿随意填写。
  2. 检查系统时间
    报错提示 check system time,若系统时间与真实时间偏差过大,SSL 证书校验会失败。请开启 Windows「自动设置时间」并同步一次。
  3. 换用无需代理的翻译渠道(推荐)
    既然微软免费接口也不通,建议直接改用:

    • DeepSeek(AI 渠道,质量最佳,国内可直连,需在菜单「翻译设置--DeepSeek」填 API Key),或
    • M2M100(内置) / Hy-MT2(内置)(本地离线翻译,不依赖网络,首次使用需下载模型)。
  4. 降低请求频率
    国内访问 Google 免费接口极易 429 或被重置,高级选项--字幕翻译--传统翻译渠道每批字幕行数 设小(如 1~5),并适当设置「翻译后暂停秒」。
  5. 验证
    修改后重新勾选 清理已生成 再执行,避免复用上次失败的缓存结果。

补充:你的视频为 2160x3840 竖屏 60fps、HEVC 编码,属短视频场景,翻译渠道建议用 AI 模型(DeepSeek),配音用 Edge-TTS,与现有其余设置搭配合理。

请查阅相关文档:

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