2016-05-17 136 views
0

我试图安装pHash,但是当我执行./configure返回此消息:FFMPEG安装,但没有找到

... 

*** Configuring video Hash *** 

checking whether FFmpeg is present... checking for avcodec_alloc_frame in -lavcodec... no 
configure: error: 

*** libavcodec not found. 
You need FFmpeg. Get it at <http://ffmpeg.org/> 

但是FFMPEG安装正确,实际上执行ffmpeg返回:

ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers 
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1) 
    configuration: 
    libavutil  55. 17.103/55. 17.103 
    libavcodec  57. 24.102/57. 24.102 
    libavformat 57. 25.100/57. 25.100 
    libavdevice 57. 0.101/57. 0.101 
    libavfilter  6. 31.100/6. 31.100 
    libswscale  4. 0.100/4. 0.100 
    libswresample 2. 0.101/2. 0.101 
Hyper fast Audio and Video encoder 
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... 

Use -h to get full help or, even better, run 'man ffmpeg' 

为什么会发生这种情况?

+0

检查你是否安装了'libavcodec-dev' –

+0

我已经安装了它 – justHelloWorld

+0

你的意思是你刚刚安装了它,或者它已经安装了?它解决了你的问题吗? –

回答

0

不幸的是,我没有解决在Ubuntu 15上的问题。我安装了Ubuntu 16(其中包括FFMPEG),一切都很顺利。

+0

也许下次你可以尝试这个自动安装程序Ubuntu的:https://github.com/razzbee/ffmpeg_installer – razzbee