#661 Error opening output files: No such file or directory

*6ea0:d32f* Posted at: 4 hours ago 👁10

配音阶段出错:Error opening output file D:/win-videotrans/tmp/dubbing_cache/130-5250-1758885207.7804523-0.wav.

Error opening output files: No such file or directory[F5/Index/Spark/Dia TTS]:

Traceback (most recent call last):

File "videotrans\util\help_ffmpeg.py", line 275, in runffmpeg

File "subprocess.py", line 524, in run

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-y', '-i', 'D:/win-videotrans/tmp/d8cb1310dc/vocal.wav', '-ss', '00:00:00.130', '-to', '00:00:05.250', '-ar', '16000', 'D:/win-videotrans/tmp/dubbing_cache/130-5250-1758885207.7804523-0.wav']' returned non-zero exit status 4294967294.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 160, in run

File "videotrans\task\trans_create.py", line 487, in dubbing

File "videotrans\task\trans_create.py", line 731, in _tts

File "videotrans\util\help_ffmpeg.py", line 733, in cut_from_audio

File "videotrans\util\help_ffmpeg.py", line 315, in runffmpeg

RuntimeError: Error opening output file D:/win-videotrans/tmp/dubbing_cache/130-5250-1758885207.7804523-0.wav.

Error opening output files: No such file or directory

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于软件在配音阶段无法创建或写入指定的音频文件 D:/win-videotrans/tmp/dubbing_cache/130-5250-1758885207.7804523-0.wav 导致的,具体原因是“No such file or directory”(没有这样的文件或目录)。

问题分析:

错误发生在 pyVideoTrans 尝试使用 FFmpeg 从原始音频中截取一段来生成配音文件时。软件需要在 D:/win-videotrans/tmp/dubbing_cache/ 这个目录下创建临时音频文件,但操作失败了。这通常是由于以下原因之一:

1. 目录不存在: 路径 D:/win-videotrans/tmp/dubbing_cache/ 可能不存在。

2. 权限不足: 软件没有在 D: 盘或指定文件夹的写入权限。

3. 磁盘空间不足: D: 盘可能没有足够的剩余空间来创建临时文件。

4. 路径问题: 路径中包含特殊字符或过长,但根据您提供的路径来看,这个可能性较低。

解决方案:

请按顺序尝试以下步骤:

1. 检查并手动创建目录(最可能解决问题):

  • 打开“此电脑”,进入 D: 盘。
  • 检查是否存在 win-videotrans 文件夹,然后依次进入 win-videotrans -> tmp
  • tmp 文件夹内,查看是否有 dubbing_cache 文件夹。如果没有,请右键点击空白处,选择“新建”->“文件夹”,并将其命名为 dubbing_cache
  • 创建完成后,重新运行 pyVideoTrans 并尝试翻译任务。

2. 以管理员身份运行软件:

  • 关闭 pyVideoTrans
  • 右键点击 pyVideoTrans 的启动图标(如 sp.exe),选择 “以管理员身份运行”。这可以提升软件在系统盘(如 D: 盘)的写入权限。

3. 检查磁盘空间:

  • 右键点击 D: 盘,选择“属性”,确保有足够的可用空间(建议至少保留几个GB)。

4. 更换输出路径:

  • 如果上述方法无效,可以尝试在 pyVideoTrans 的设置中,将一个更简单、权限明确的文件夹(例如直接在 D: 盘下新建一个 video_output 文件夹)设置为临时文件和工作目录。

如果问题依旧存在,建议访问官方文档 https://pyvideotrans.com 查找更多故障排除信息,或从下载页面 https://pyvideotrans.com/downpackage 重新下载最新版本的软件进行覆盖安装。

Post Your Reply
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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions