解决视频提取照片报 No such file or directory: ‘ffprobe‘

解决视频提取照片报  No such file or directory: 'ffprobe' ,

 File "/usr/local/lib/python3.5/dist-packages/ffmpy.py", line 95, in run
    stderr=stderr
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'

先进行 pip install ffprobe  pip install ffmpeg 后 仍报

通过百度搜出来的没用上,最后通过Google

  apt-get update 

 apt-get install  ffmpeg   后 可正常提取

This error occurs when the system cannot find the "ffprobe" executable file. ffprobe is a multimedia stream analyzer tool that comes with the FFmpeg package. It is used to analyze multimedia streams and provide detailed information about the streams. To fix the error, you can try the following steps: 1. Install FFmpeg: If you don't have FFmpeg installed, install it first. You can download FFmpeg from their official website or use a package manager to install it. 2. Check the PATH environment variable: Make sure that the directory containing the "ffprobe" executable file is included in the PATH environment variable. You can check the PATH variable by running the following command in the terminal: echo $PATH If the directory containing "ffprobe" is not in the PATH, you can add it by editing the .bashrc or .bash_profile file in your home directory. 3. Check if the file exists: Check if the "ffprobe" executable file exists in the directory where it's supposed to be. You can do this by running the following command in the terminal: ls /path/to/ffprobe Replace "/path/to/ffprobe" with the actual path to the "ffprobe" executable file. 4. Set the path to ffprobe: If the "ffprobe" executable file exists in a different directory, you can specify the path to it in your code. For example: ffprobe_path = '/path/to/ffprobe' probe = ffmpeg.probe(video_path, cmd=ffprobe_path) By following these steps, you should be able to fix the "FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'" error.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值