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

188.253**2 Posted at: 16 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=zh-Hans&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 113, 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=zh-Hans&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))

trk=翻译视频 单视频模式
选择音视频文件: D:/YOUTube视频/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc].mp4,
输出目录: D:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-mp4,
self.cfg.cache_folder='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f'
已选 清理已生成, 未选 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:653126ms
video information:{'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'vp9', 'audio_codec_name': 'aac', 'width': 1920, 'height': 1080, 'time': 653126, 'streams_len': 4, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='30ad954d3f', name='D:/YOUTube视频/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc].mp4', dirname='D:/YOUTube视频', noextname='Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]', basename='Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc].mp4', ext='mp4', target_dir='D:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-mp4', cache_folder='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f', is_cuda=False, source_language='英语', source_language_code='en', source_sub='D:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-mp4/en.srt', source_wav='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f/en.wav', source_wav_output='D:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-mp4/zh-cn.srt', target_wav='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f/target.wav', target_wav_output='D:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-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:/YOUTube视频/_video_out/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc]-mp4/Network Devices - Hosts, IP Addresses, Networks - Networking Fundamentals - Lesson 1a [bj-Yfakjllc].mp4', novoice_mp4='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f/instrument.wav', vocal='D:/Apps/pyVideoTrans/tmp/39292/30ad954d3f/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=653126


=
system:Windows-10-10.0.26300-SP0
version:v4.18
frozen:True
language:zh_CN
root_dir:D:/Apps/pyVideoTrans

1 Replies

#1 DeepSeek reply at 16 hours ago

这是网络层 TLS 连接被中断导致的:Google 免费翻译在中国大陆无法直连,而回退的微软免费翻译(edge.microsoft.com)又在使用代理时被中断,说明你填写的代理不可用,或未填写代理,或系统时间异常导致 SSL 校验失败。

解决步骤(按顺序排查):

  1. 检查主界面代理设置:在“对齐控制”行右侧的“网络代理”文本框中确认代理地址格式正确(如 http://127.0.0.1:7890),并确保代理软件已启动、端口无误。若本机没有可用的稳定代理,请清空该输入框,否则所有 HTTPS 请求(含微软翻译)都会带着无效代理失败,从而出现 EOF occurred in violation of protocol。
  2. 校验系统时间:SSL 证书校验依赖准确时间。右键任务栏时间 → 设置 → 开启“自动设置时间”并立即同步。
  3. 换用国内可直连渠道(推荐):Google 免费渠道不稳定且有频率限制。将“翻译渠道”改为 DeepSeek(需在其开放平台申请 API Key 并填入 菜单--翻译设置--DeepSeek),质量优于免费渠道且无需代理。
  4. 完全离线方案:翻译渠道选 M2M100(内置),首次使用自动在线下载模型(存放于 软件目录/models/m2m100_12b),完全本地运行不受网络影响。
  5. 重试前请保持勾选 清理已生成,避免复用上次失败的缓存。

另外提醒:你的视频文件名过长且含空格、方括号等符号,建议重命名为简短英文(如 video1.mp4)并放到浅层目录,可避免后续 ffmpeg 环节因路径超长报错。

请查阅相关文档:

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