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

2409**bd64 Posted at: 9 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 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 474, in increment
File "urllib3\util\util.py", line 38, in reraise
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
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))

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 659, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))

trk=翻译视频 单视频模式
选择音视频文件: C:/Users/zfp/Desktop/111.mp4,
输出目录: C:/Users/zfp/Desktop/_video_out/111-mp4,
self.cfg.cache_folder='D:/新建文件夹/tmp/24224/3772e40314'
已选 清理已生成, 未选 启用硬件加速
语音识别: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:1663945ms
video information:{'video_fps': 25.0, 'r_frame_rate': 25.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 1663945, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='3772e40314', name='C:/Users/zfp/Desktop/111.mp4', dirname='C:/Users/zfp/Desktop', noextname='111', basename='111.mp4', ext='mp4', target_dir='C:/Users/zfp/Desktop/_video_out/111-mp4', cache_folder='D:/新建文件夹/tmp/24224/3772e40314', is_cuda=False, source_language='日语', source_language_code='ja', source_sub='C:/Users/zfp/Desktop/_video_out/111-mp4/ja.srt', source_wav='D:/新建文件夹/tmp/24224/3772e40314/ja.wav', source_wav_output='C:/Users/zfp/Desktop/_video_out/111-mp4/ja.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/zfp/Desktop/_video_out/111-mp4/zh-cn.srt', target_wav='D:/新建文件夹/tmp/24224/3772e40314/target.wav', target_wav_output='C:/Users/zfp/Desktop/_video_out/111-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=False, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='ja', 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='C:/Users/zfp/Desktop/_video_out/111-mp4/111.mp4', novoice_mp4='D:/新建文件夹/tmp/24224/3772e40314/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/新建文件夹/tmp/24224/3772e40314/instrument.wav', vocal='D:/新建文件夹/tmp/24224/3772e40314/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=1663945


=
system:Windows-10-10.0.26200-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:D:/新建文件夹

1 Replies

#1 DeepSeek reply at 9 hours ago

这是网络连接问题,并非软件自身故障。在 Google(免费) 翻译失败后,软件会自动改用 Microsoft(免费) 重试;从堆栈可见,这一步也失败在 _microsoft.py,并且同样被远程主机强制断开连接(WinError 10054)。在中国大陆,Google 翻译必须通过代理才能访问;微软免费接口在短时间内高频请求时也常会被中断。

解决方案(按推荐程度排序):

  1. 填写代理(继续用 Google 的前提)
    在主界面「对齐控制」行最右侧的 网络代理 文本框中填写你的代理地址,格式如 http://127.0.0.1:7890,然后确保代理软件已经启动、端口正确。如果留空,或随意乱填,都会导致所有请求失败。
  2. 改用 DeepSeek(推荐,AI 渠道翻译质量更好,国内直连无需代理)
    到 https://platform.deepseek.com/ 注册并充值(可只充 1 元),获取 API Key。
    在 菜单 → 翻译设置 → DeepSeek 中填入密钥,然后把主界面 翻译渠道 改为 DeepSeek。
    可同时勾选 发送完整字幕 提升质量。
  3. 改用本地离线翻译 M2M100(内置) 或 Hy-MT2(内置)
    完全不需要网络,首次使用会自动下载模型(约几百 MB 到数 GB)。
  4. 退而使用 Microsoft(免费)
    不要使用 Google,也不要填代理,直接选择微软渠道。降低频率可减少被中断的概率,在 高级选项 → 字幕翻译 中把 翻译后暂停秒 设为 1~3。

补充提醒:当前选择 清理已生成,重试时如果不想重新做耗时的语音识别,可以在语音识别完成后取消勾选 清理已生成,软件会复用已生成的 ja.srt,直接进入翻译阶段。

请查阅相关文档:

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