#3757 TaskCfgVTT(is_cuda=True, uuid='76afe34ce6', cache_folder='D:/pyvideotrans/win-pyvideotrans-v3.98-317/tmp/27280/76afe34ce

120.229* Posted at: 3 hours ago 👁7

预处理阶段出错 videotrans.util.help_ffmpeg._FFprobeInternalError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 493, 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\job.py", line 61, in run
File "videotrans\task\trans_create.py", line 172, in prepare
File "videotrans\util\help_ffmpeg.py", line 546, in get_video_info
File "videotrans\util\help_ffmpeg.py", line 518, in runffprobe
File "videotrans\util\help_ffmpeg.py", line 506, in _run_ffprobe_internal
videotrans.util.help_ffmpeg._FFprobeInternalError: Command not found: ffmpeg. Ensure FFmpeg is installed and in your PATH.
TaskCfgVTT(is_cuda=True, uuid='76afe34ce6', cache_folder='D:/pyvideotrans/win-pyvideotrans-v3.98-317/tmp/27280/76afe34ce6', target_dir='C:/Users/Administrator/Downloads/_video_out/77db03dee82c38593e043433ee75ab26-mp4', source_language='日语', source_language_code='ja', source_sub='C:/Users/Administrator/Downloads/_video_out/77db03dee82c38593e043433ee75ab26-mp4/ja.srt', source_wav='D:/pyvideotrans/win-pyvideotrans-v3.98-317/tmp/27280/76afe34ce6/ja.wav', source_wav_output='C:/Users/Administrator/Downloads/_video_out/77db03dee82c38593e043433ee75ab26-mp4/ja.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/Administrator/Downloads/_video_out/77db03dee82c38593e043433ee75ab26-mp4/zh-cn.srt', target_wav='D:/pyvideotrans/win-pyvideotrans-v3.98-317/tmp/27280/76afe34ce6/target.wav', target_wav_output='C:/Users/Administrator/Downloads/_video_out/77db03dee82c38593e043433ee75ab26-mp4/zh-cn.m4a', name='C:/Users/Administrator/Downloads/77db03dee82c38593e043433ee75ab26.mp4', noextname='77db03dee82c38593e043433ee75ab26', basename='77db03dee82c38593e043433ee75ab26.mp4', ext='mp4', dirname='C:/Users/Administrator/Downloads', shound_del_name=None, translate_type=4, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ja', recogn_type=0, model_name='large-v3-turbo', 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='C:/Users/Administrator/Downloads/_video_out/77db03dee82c38593e043433ee75ab26-mp4/77db03dee82c38593e043433ee75ab26.mp4', novoice_mp4='D:/pyvideotrans/win-pyvideotrans-v3.98-317/tmp/27280/76afe34ce6/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.28000-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/pyvideotrans/win-pyvideotrans-v3.98-317

1 Replies

错误原因是系统未找到 FFmpeg 可执行文件。pyVideoTrans 依赖 FFmpeg 处理音视频,但当前环境中 FFmpeg 未正确安装或未添加到系统路径。

解决方案:

  1. 如果您使用的是 Windows 预打包版:软件包内应自带 ffmpeg 文件夹。请确保软件解压路径不包含中文或特殊符号(例如 D:\pyVideoTrans),并且不要直接在压缩包内运行 sp.exe
  2. 如果您使用的是 macOS/Linux 或源码版:需要手动安装 FFmpeg 并配置环境变量。

    • macOS:在终端运行 brew install ffmpeg
    • Linux (Debian/Ubuntu):在终端运行 sudo apt update && sudo apt install ffmpeg
    • 安装后,在终端输入 ffmpeg -version 验证是否安装成功。
  3. 检查环境变量:确保 FFmpeg 的安装目录(例如 C:\ffmpeg\bin)已添加到系统的 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.

Related resource