#4415 videotrans.util.help_ffmpeg._FFprobeInternalError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PAT

111.85* Posted at: 3 hours ago 👁13

Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 265, in _run_ffprobe_internal
File "subprocess.py", line 503, in run
File "subprocess.py", line 971, in init
File "subprocess.py", line 1456, in _execute_child
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

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

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 42, in run
File "videotrans\task\trans_create.py", line 173, in prepare
File "videotrans\util\help_ffmpeg.py", line 318, in get_video_info
File "videotrans\util\help_ffmpeg.py", line 290, in runffprobe
File "videotrans\util\help_ffmpeg.py", line 278, in _run_ffprobe_internal
videotrans.util.help_ffmpeg._FFprobeInternalError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.


=
system:Windows-10-10.0.26100-SP0
version:v3.99
frozen:True
language:zh
root_dir:C:/Windows/py/fanyi

1 Replies

原因:系统找不到 ffmpeg 命令,导致程序无法继续。这通常是因为FFmpeg未安装,或软件包内的ffmpeg文件夹丢失/损坏,或环境变量未配置。

解决步骤

  1. 确认软件包完整性

    • 检查 sp.exe 同目录下是否存在 ffmpeg 文件夹,且其中包含 ffmpeg.exeffprobe.exe
    • 如果缺失,请重新从官网下载完整软件包.7z 压缩包),解压到非系统盘、非C盘、路径无中文的目录,再运行 sp.exe
  2. 安装系统级FFmpeg(可选)

    • 若仍失败,可手动安装FFmpeg并添加到系统PATH。
    • 下载地址:https://ffmpeg.org/download.html
    • 解压后将 bin 目录路径加入系统环境变量,重启软件。
  3. 确保运行方式正确

    • 不要直接在压缩包内双击 sp.exe
    • 存放软件路径请使用纯英文(如 D:\pyVideoTrans),避免特殊符号或过长路径。

请查阅相关文档:

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