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

2409:**:5dcb Posted at: 12 hours ago

Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.
Traceback (most recent call last):
File "videotrans\util\_ffprobe.py", line 20, 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 64, in run
File "videotrans\task\_stage_prepare.py", line 22, in prepare
File "videotrans\util\_ffprobe.py", line 53, in get_video_info
File "videotrans\util\_ffprobe.py", line 42, in runffprobe
File "videotrans\util\_ffprobe.py", line 31, in _run_ffprobe_internal
videotrans.configure.excepts.FFmpegError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/肝脏解剖(功能、局解、外部结构、韧带).mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/_video_out/肝脏解剖(功能、局解、外部结构、韧带)-mp4,
临时文件夹: C:/Users/Administrator/AppData/Local/Temp/Rar$EXa6032.45730/tmp/19336/ff80d03eee
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕


=
system:Windows-10-10.0.18362-SP0
version:v4.09
frozen:True
language:zh
root_dir:C:/Users/Administrator/AppData/Local/Temp/Rar$EXa6032.45730

1 Replies

#1 DeepSeek reply at 12 hours ago

该报错是因为在压缩包内直接双击运行了 sp.exe。从日志中的临时路径 C:/Users/Administrator/AppData/Local/Temp/Rar$EXa6032.45730 可以看出,程序实际在 WinRAR 的临时解压目录中运行,该目录下没有随完整版提供的 ffmpeg.exe / ffprobe.exe,因此找不到 ffmpeg。

解决办法:

  1. 关闭当前压缩包窗口和软件进程。
  2. 先把完整压缩包完全解压到硬盘的纯英文、无特殊字符目录中,推荐形如 D:\pyVideoTrans

    • 不要解压到含中文、空格、括号等路径。
    • 不要解压到 C:\Program Files 等需要管理员权限的目录。
  3. 进入解压后的主文件夹,双击 sp.exe 启动。
  4. 若仍有权限问题,可右键 sp.exe 选择“以管理员身份运行”。

另外注意:本次视频文件名含中文和全角括号,建议将视频文件名改为简单的英文数字组合(如 liver.mp4)再处理,以规避底层工具路径兼容问题。

请查阅相关文档:

Thinking...
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

Related resource