预处理阶段出错 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 evideotrans.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 ]