#7493 <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>:Traceback (most recent call last): File

112.49**5 Posted at: 1 hour ago

:Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1455, in connect
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 "videotrans\process\stt_openai.py", line 55, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _o
......
\recognition\_whisper.py", line 39, in _exec
File "videotrans\recognition\_whisper.py", line 81, in _openai
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: :Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1455, in connect
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 "videotrans\process\stt_openai.py", line 55, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError:

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/素材/9月6日 (8)_2026-09-06_20-36-28.mp4,
输出结果保存到文件夹: E:/作者/9月6日 (8)_2026-09-06_20-36-28-mp4,
临时文件夹: D:/YII/tmp/6556/296d551c11
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), large-v3, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Connor(Male/IE), 配音语言:英语, 已选 二次语音识别
音量:+100%, 语速:-2%, 未选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕
未选 分离人声与背景声,存在分离后的纯净人声文件,存在分离后的背景声音文件
video_duration_ms=3663266


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/YII

1 Replies

#1 DeepSeek reply at 1 hour ago

这是因为 openai-whisper(内置) 渠道在首次使用 large-v3 模型时,需要从国外官网 openaipublic.azureedge.net 自动下载模型文件(约3GB),而你当前网络无法稳定连接该远程主机,导致连接被强制中断(WinError 10054)。

解决方案(任选其一)

方案一:改用 faster-whisper(推荐)

  1. 主界面「语音识别」渠道改为 faster-whisper(内置),模型选 large-v3-turbo
  2. 该渠道在国内环境下会自动切换国内镜像源,成功率更高。

方案二:手动下载 openai-whisper 模型

  1. 下载 large-v3.pt 模型文件(约3GB):
    https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt
  2. 将下载好的 large-v3.pt 直接放入软件目录的 models 文件夹内(即 D:/YII/models/);
  3. 重新执行任务,软件检测到本地模型后将跳过下载。

方案三:配置网络代理

  1. 先确保代理软件正常运行;
  2. 在软件主界面「对齐控制」行右侧的网络代理文本框填写代理地址,如 http://127.0.0.1:10808
  3. 保存后重试下载。
提示:模型文件体积较大,下载常因网络不稳定失败,若失败请删除已下载的不完整文件后重试。

请查阅相关文档:

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