#8370 语音识别阶段出错[openai-whisper(内置)] Failed to load audio: ffmpeg version 7.1.1-full_build-www.gyan.dev Copyright (c) 2000-2025

42.200**4 Posted at: 1 hour ago

语音识别阶段出错[openai-whisper(内置)] Failed to load audio: ffmpeg version 7.1.1-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-lcms2 --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libao
......
le-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[in#0 @ 00000201b485eac0] Error opening input: No such file or directory
Error opening input file D:/Video Restoration/pyvideotrans-v4.16/tmp/28704/510a1cf21a/PRED-882.restored-1792657503.795389.wav.
Error opening input files: No such file or directory
trk=[SpeechToText]: uuid='510a1cf21a', proxy_str=None, cfg=[TaskCfgSTT]
原始输入文件名: D:/Video Restoration/win-视频翻译pyvideotrans-v4.16/output/audiofromvideo/PRED-882.restored.wav,
输出结果保存到文件夹: D:/Video Restoration/win-视频翻译pyvideotrans-v4.16/output/recogn,
临时文件夹: D:/Video Restoration/pyvideotrans-v4.16/tmp/28704/510a1cf21a
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), tiny LLM纠错
发音语言:ja
未选 降噪, precent=1, hasend=False, should_recogn=True, should_trans=False, should_dubbing=False, should_hebing=False, out_format='srt', copysrt_rawvideo=False, spk_insert=False


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/Video Restoration/pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

问题核心:ffmpeg 报的是 No such file or directory——临时切片 wav 文件在识别时已不存在。报错本身与 ffmpeg 版本、CUDA 无关,是 tmp 临时文件丢失导致的。

常见成因与处理:

  1. 同时运行了多个实例(最常见)
    多个 sp.exe 共享同一个 tmp 文件夹,任意一个实例退出都会清空该目录,正在运行的实例随后就会报"找不到文件"。
    → 只保留一个实例运行;如需并行,请把软件整体复制到另一个文件夹(如 D:/pyVideoTrans2)分别启动,互不干扰。
  2. 杀毒软件 / 系统清理工具删除了临时文件
    360、火绒、腾讯管家、Windows Defender 常把 tmp 内生成的 wav 当可疑文件隔离。
    → 把软件根目录整体加入信任白名单,重新处理。
  3. 磁盘空间不足或磁盘写入失败
    → 检查软件所在磁盘剩余空间(尤其开启了"分离人声背景声""视频慢速"时);手动进 软件根目录/tmp/,清空残留切片后重试。
  4. 路径中含有空格
    当前路径 D:/Video Restoration/pyvideotrans-v4.16 含空格。虽然多数情况可用,但底层工具对空格/中文/特殊符号兼容性差。
    → 建议移到浅层纯英文无空格路径,如 D:/pyvideotrans。
  5. 操作建议:重启软件 → 勾选主界面 清理已生成 → 只保留单个实例重新执行。若临时目录反复被清空,可改用 faster-whisper(内置) 渠道重试对比,确认是否与 openai-whisper 的临时切片流程相关。

若按上述处理后仍复现,请提供软件安装目录下 logs/ 中对应日期日志的完整末尾内容(包含 tmp 路径生成与清理的记录)以便定位。

另外提示:日志中 语音识别:openai-whisper(内置), tiny 且发音语言为日语,tiny 模型识别质量极低,建议改用 faster-whisper(内置) large-v3-turbo。

请查阅相关文档:

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