#4045 FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

125.46* Posted at: 2 hours ago 👁7

File not found: ffmpeg:
Traceback (most recent call last):
File "videotrans/util/TestSTT.py", line 17, in run
File "videotrans/recognition/__init__.py", line 221, in run
File "videotrans/recognition/_base.py", line 143, in run
File "videotrans/recognition/_doubao.py", line 33, in _exec
File "videotrans/util/help_ffmpeg.py", line 261, in runffmpeg
File "subprocess.py", line 503, in run
File "subprocess.py", line 971, in init
File "subprocess.py", line 1863, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'


=
system:macOS-26.4.1-arm64-arm-64bit
version:v3.98
frozen:True
language:en
root_dir:/Users/Guatama/Developer/apps/pyvideotrans/dist/pyVideoTrans.app/Contents/Resources

1 Replies

这是由于 macOS 系统上缺少 FFmpeg 环境导致的。pyVideoTrans 依赖 FFmpeg 来处理音视频文件,而预打包的 macOS 版本可能不包含 FFmpeg。

解决方案:

  1. 打开终端(Terminal)。
  2. 使用 Homebrew 安装 FFmpeg:brew install ffmpeg
  3. 安装完成后,重启 pyVideoTrans 软件。

如果安装 Homebrew 后问题依旧,请确保 FFmpeg 已正确添加到系统环境变量中。你可以在终端输入 ffmpeg -version 来验证安装是否成功。

请查阅相关文档:

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