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

91.199**3 Posted at: 2 hours 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
......
deotrans\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/33764/296d551c11
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), large-v3, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Connor(Male/IE), 配音语言:英语, 已选 二次语音识别
音量:+100%, 语速:-2%, 未选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕
代理地址:socks5://127.0.0.1:7897
video_duration_ms=3663266


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

3 Replies

#1 DeepSeek reply at 2 hours ago

错误核心原因是:openai-whisper 内置模型下载失败

从日志中的 whisper\__init__.py line 73, in _downloadWinError 10054 远程主机强迫关闭了一个现有的连接 可以确认,软件在加载 openai-whisper 的 large-v3 模型时,需要从国外服务器下载模型文件,由于网络连接被远程主机强制重置,导致下载中断并报错。

即:你选用的 openai-whisper(内置) + large-v3 模型尚未下载到本地,当前网络无法稳定访问模型下载源。


解决方案(按优先级):

  1. 切换为 faster-whisper(内置) 渠道

    • 主界面语音识别渠道改为 faster-whisper(内置),模型选择 large-v3-turbo,速度更快、下载源也相对稳定,是目前官方默认推荐。
  2. 手动下载 openai-whisper 的 large-v3 模型

    • 下载地址:https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt
    • 下载后重命名为 large-v3.pt,放入 软件目录/models/ 文件夹内(即 D:/YII/models/)。
  3. 改善代理/网络

    • 你当前填写的是 socks5://127.0.0.1:7897,请确认该代理服务已运行且能稳定访问 huggingface.co 与 openaipublic.azureedge.net。
    • 若代理不稳定,建议切换为更可靠的节点,或改用 faster-whisper 走国内镜像站下载。
  4. 降低模型尺寸

    • 若显存与磁盘有限,可先将模型改为 mediumsmall,体积更小,更容易下载成功。

其他需注意项:

  • 你的输出路径和临时文件夹位于 D:/YII,输入视频路径为 E:/素材/...,路径中虽含中文但非主要问题;本次报错与路径无关。
  • 已勾选「清理已存在」,会重新执行全部流程,请确保模型已成功下载后再重试。
  • 翻译渠道选的是 Google(免费),国内需科学上网,代理异常也会一并失败,请一并确认。

若按上述操作后仍报错,请提供 D:/YII/logs/ 目录下当天最新的日志文件内容(复制底部约30行)以便进一步分析。

请查阅相关文档:

#2 112.49**5 reply at 1 hour ago

下载了还是错误

#3 DeepSeek reply at 1 hour ago

错误核心原因仍未变:模型文件未正确放置或文件名不对。请按以下要点逐项核对:

  1. 文件必须放在正确目录
    大模型文件应放在 D:/YII/models/ 下,即 sp.exe 同级的 models 文件夹内。不是 _internal/models,也不是软件根目录之外。
  2. 文件名必须完全一致
    文件名必须是 large-v3.pt,不能是 large-v3(1).ptlarge-v3.pt.crdownloadlarge-v3.zip 等。浏览器重复下载会自动加 (1),请手动改回原名。且需在文件夹内开启"显示文件扩展名"确认,防止实际是 large-v3.pt.pt
  3. 确认是否仍在使用 openai-whisper
    请回到主界面,语音识别渠道确实选的是 openai-whisper(内置),模型名写的是 large-v3(注意:不是 large,也不是 large-v3-turbo,这两者对应不同文件)。
  4. 推荐直接改用 faster-whisper
    如反复失败,请将语音识别渠道切换为 faster-whisper(内置),模型改为 large-v3-turbo。该渠道为软件默认推荐渠道,模型从国内镜像站下载,成功率明显高于 openai-whisper。
  5. 尚未提供关键信息,无法进一步判断
    请补充:

    • 软件左上角显示的版本号(当前日志显示为 v4.12
    • 报错是仍与之前完全相同(下载失败),还是已变为其他错误
    • D:/YII/logs/ 下当天最新的日志文件,复制底部约 30 行

请查阅相关文档:

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