#4814 TaskCfgSTT(is_cuda=False, uuid='1d45f5b36e', cache_folder='/Users/xiaohuo/pyvideotrans-main/tmp/44965/1d45f5b36e', targe

175.197* Posted at: 1 hour ago

预处理阶段出错 opening input: No such file or directory opening input file Users/xiaohuo/Desktop/新录音 31.m4a. opening input files: No such file or directory
Traceback (most recent call last):
File "/Users/xiaohuo/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 261, in runffmpeg

subprocess.run(

File "/Users/xiaohuo/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-i', 'Users/xiaohuo/Desktop/新录音 31.m4a', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', '-af', 'volume=2.0,alimiter=limit=1.0', '/Users/xiaohuo/pyvideotrans-main/tmp/44965/1d45f5b36e/新录音 31-1780160518.485346.wav']' returned non-zero exit status 254.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/xiaohuo/pyvideotrans-main/videotrans/task/job.py", line 61, in run

trk.prepare()

File "/Users/xiaohuo/pyvideotrans-main/videotrans/task/_speech2text.py", line 54, in prepare

tools.conver_to_16k(self.cfg.name, self.cfg.shibie_audio)

File "/Users/xiaohuo/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 677, in conver_to_16k

return runffmpeg(cmd)

File "/Users/xiaohuo/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 307, in runffmpeg

raise RuntimeError(err)

RuntimeError: opening input: No such file or directory opening input file Users/xiaohuo/Desktop/新录音 31.m4a. opening input files: No such file or directory
TaskCfgSTT(is_cuda=False, uuid='1d45f5b36e', cache_folder='/Users/xiaohuo/pyvideotrans-main/tmp/44965/1d45f5b36e', target_dir='/Users/xiaohuo/Downloads/pyvideotrans-main/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='/Users/xiaohuo/Downloads/pyvideotrans-main/output/recogn/新录音 31.srt', target_wav=None, target_wav_output=None, name='Users/xiaohuo/Desktop/新录音 31.m4a', noextname='新录音 31', basename='新录音 31.m4a', ext='m4a', dirname='/Users/xiaohuo/pyvideotrans-main/Users/xiaohuo/Desktop', shound_del_name=None, detect_language='zh-cn', recogn_type=0, model_name='large-v3-turbo', shibie_audio='/Users/xiaohuo/pyvideotrans-main/tmp/44965/1d45f5b36e/新录音 31-1780160518.485346.wav', remove_noise=False, enable_diariz=True, nums_diariz=1, rephrase=0, fix_punc=False)


=
system:macOS-26.5-arm64-arm-64bit
version:v3.98
frozen:False
language:zh
root_dir:/Users/xiaohuo/pyvideotrans-main
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

这是由于文件路径不规范导致的。软件在调用 ffmpeg 时传入了相对路径 Users/xiaohuo/Desktop/新录音 31.m4a(缺少开头的 /),且路径中包含中文和空格,导致 ffmpeg 无法找到该文件。

解决方案:

  1. 将您的音频文件重命名为简短且不含中文、空格、特殊符号的名称,例如 audio31.m4a
  2. 将该文件移动到一个路径层级较浅且全英文的目录,例如 /Users/xiaohuo/Desktop/audio/
  3. 重新在软件中选择该文件并执行。

请查阅相关文档:

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.

Related resource