#3635 TaskCfgVTT(is_cuda=False, uuid='60715c678c', cache_folder='/Users/xiaohuo/Downloads/pyvideotrans-main/tmp/50406/60715c67

219.255* Posted at: 1 hour ago 👁4

预处理阶段出错 videotrans.util.help_ffmpeg._FFprobeInternalError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.
Traceback (most recent call last):
File "/Users/xiaohuo/Downloads/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 493, in _run_ffprobe_internal

p = subprocess.run(

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

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

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

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

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

raise child_exception_type(errno_num, err_msg, err_filename)

FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'

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

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

trk.prepare()

File "/Users/xiaohuo/Downloads/pyvideotrans-main/videotrans/task/trans_create.py", line 172, in prepare

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

File "/Users/xiaohuo/Downloads/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 546, in get_video_info

out_json = runffprobe(

File "/Users/xiaohuo/Downloads/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 518, in runffprobe

stdout_result = _run_ffprobe_internal(cmd)

File "/Users/xiaohuo/Downloads/pyvideotrans-main/videotrans/util/help_ffmpeg.py", line 506, in _run_ffprobe_internal

raise _FFprobeInternalError(msg) from e

videotrans.util.help_ffmpeg._FFprobeInternalError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.
TaskCfgVTT(is_cuda=False, uuid='60715c678c', cache_folder='/Users/xiaohuo/Downloads/pyvideotrans-main/tmp/50406/60715c678c', target_dir='/Users/xiaohuo/Downloads/_video_out/1-mp4', source_language='韩语', source_language_code='ko', source_sub='/Users/xiaohuo/Downloads/_video_out/1-mp4/ko.srt', source_wav='/Users/xiaohuo/Downloads/pyvideotrans-main/tmp/50406/60715c678c/ko.wav', source_wav_output='/Users/xiaohuo/Downloads/_video_out/1-mp4/ko.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='/Users/xiaohuo/Downloads/_video_out/1-mp4/zh-cn.srt', target_wav='/Users/xiaohuo/Downloads/pyvideotrans-main/tmp/50406/60715c678c/target.wav', target_wav_output='/Users/xiaohuo/Downloads/_video_out/1-mp4/zh-cn.m4a', name='/Users/xiaohuo/Downloads/1.mp4', noextname='1', basename='1.mp4', ext='mp4', dirname='/Users/xiaohuo/Downloads', shound_del_name=None, translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ko', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='/Users/xiaohuo/Downloads/_video_out/1-mp4/1.mp4', novoice_mp4='/Users/xiaohuo/Downloads/pyvideotrans-main/tmp/50406/60715c678c/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=4, only_out_mp4=True, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


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

1 Replies

这是由于系统未安装 FFmpeg 或未正确配置环境变量导致的。pyVideoTrans 依赖 FFmpeg 处理音视频文件,macOS 源码部署版本不包含预打包的 FFmpeg。

解决方案:

  1. 打开终端。
  2. 使用 Homebrew 包管理器安装 FFmpeg:brew install ffmpeg
  3. 安装完成后,重启终端或运行 source ~/.zshrc(如果使用 Zsh)或 source ~/.bash_profile(如果使用 Bash)以刷新环境变量。
  4. 验证安装:在终端输入 ffmpeg -version,应能显示版本信息。
  5. 重新启动 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