#5996 Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.Traceback (most recent call last):

240e:39c* Posted at: 1 hour ago

Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.
Traceback (most recent call last):
File "H:\pyvideotrans\videotrans\util\_ffprobe.py", line 20, in _run_ffprobe_internal

p = subprocess.run(

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\subprocess.py", line 503, in run

with Popen(*popenargs, **kwargs) as process:

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\subprocess.py", line 971, in init

self._execute_child(args, executable, preexec_fn, close_fds,

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\subprocess.py", line 1456, in _execute_child

hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] 系统找不到指定的文件。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "H:\pyvideotrans\videotrans\task\only_one.py", line 45, in run

trk.prepare()

File "H:\pyvideotrans\videotrans\task\_stage_prepare.py", line 21, in prepare

self.video_info = get_video_info(self.cfg.name)

File "H:\pyvideotrans\videotrans\util\_ffprobe.py", line 53, in get_video_info

out_json = runffprobe(

File "H:\pyvideotrans\videotrans\util\_ffprobe.py", line 42, in runffprobe

stdout_result = _run_ffprobe_internal(cmd)

File "H:\pyvideotrans\videotrans\util\_ffprobe.py", line 31, in _run_ffprobe_internal

raise FFmpegError("Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.") from e

videotrans.configure.excepts.FFmpegError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: G:/1.mp4,
输出结果保存到文件夹: G:/_video_out/1-mp4,
临时文件夹: H:/pyvideotrans/tmp/16548/5c7d88d507
已选 清理已存在
未选 启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量3
语音识别:Whisper.NET, model_name: ggml-large-v3-turbo.bin, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Spark-TTS(本地API), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 分离人声与背景声
代理地址:


=
system:Windows-10-10.0.26100-SP0
version:v4.06
frozen:False
language:zh
root_dir:H:/pyvideotrans
Python: 3.10.19 (main, Oct 28 2025, 12:01:56) [MSC v.1944 64 bit (AMD64)]

1 Replies

该错误表明系统找不到 ffmpeg/ffprobe 可执行文件。源码部署的 Windows 环境需要手动下载 ffmpeg 并放置在指定位置。

解决方案

  1. 下载 FFmpeg(≥ 6.0)Windows 完整版(包含 ffmpeg.exe 和 ffprobe.exe):
    https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z
  2. 将下载的压缩包解压,找到 bin 文件夹内的 ffmpeg.exeffprobe.exe
  3. 在软件源码根目录 H:\pyvideotrans 下创建 ffmpeg 文件夹(如果已存在则跳过),将上面两个 exe 文件复制进去。
    最终路径形如:H:\pyvideotrans\ffmpeg\ffmpeg.exeH:\pyvideotrans\ffmpeg\ffprobe.exe
  4. 重新启动软件尝试执行翻译任务。

如果问题依旧,请检查杀毒软件是否误删了这两个 exe,或尝试将 H:\pyvideotrans\ffmpeg 添加到系统环境变量 PATH 中。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource