翻译字幕阶段出错 [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