2017-01-16 137 views
0

有人可以請幫我一個關於如何在Linux上安裝FFMPEG的工作方法,我遵循了幾個教程,他們似乎工作,除非在系統中找不到任何FFMPEG,即使在幾個系統重新啓動我的最後一次嘗試是從這個鏈接Compile FFmpeg on Ubuntu, Debian, or MintOpenCV linux如何安裝FFMPEG

我做教程的一切,但是當我運行man ffmpeg它告訴我,沒有手動發現OpenCV也沒有檢測到它,我打過電話了Core.getBuildInformation()輸出功率爲:

GUI: 
QT:       NO 
GTK+:      NO 
GThread :     NO 
GtkGlExt:     NO 
OpenGL support:    NO 
VTK support:     NO 

Media I/O: 
ZLib:      zlib (ver 1.2.8) 
JPEG:      libjpeg (ver 90) 
WEBP:      build (ver 0.3.1) 
PNG:       build (ver 1.6.24) 
TIFF:      build (ver 42 - 4.0.2) 
JPEG 2000:     build (ver 1.900.1) 
OpenEXR:      build (ver 1.7.1) 
GDAL:      NO 
GDCM:      NO 

Video I/O: 
DC1394 1.x:     NO 
DC1394 2.x:     NO 
FFMPEG:      NO 
    avcodec:     NO 
    avformat:     NO 
    avutil:     NO 
    swscale:     NO 
    avresample:    NO 
GStreamer:     NO 
OpenNI:      NO 
OpenNI PrimeSensor Modules: NO 
OpenNI2:      NO 
PvAPI:      NO 
GigEVisionSDK:    NO 
Aravis SDK:     NO 
UniCap:      NO 
UniCap ucil:     NO 
V4L/V4L2:     NO/YES 
XIMEA:      NO 
Xine:      NO 
gPhoto2:      NO 

Parallel framework:   pthreads 

Other third-party libraries: 
Use IPP:      9.0.1 [9.0.1] 
    at:      /home/daddy/opencv-3.2.0/build/3rdparty/ippicv/ippicv_lnx 
Use IPP Async:    NO 
Use VA:      NO 
Use Intel VA-API/OpenCL:  NO 
Use Lapack:     NO 
Use Eigen:     NO 
Use Cuda:     NO 
Use OpenCL:     YES 
Use OpenVX:     NO 
Use custom HAL:    NO 

OpenCL:      <Dynamic loading of OpenCL library> 
Include path:    /home/daddy/opencv-3.2.0/3rdparty/include/opencl/1.2 
Use AMDFFT:     NO 
Use AMDBLAS:     NO 

Python 2: 
Interpreter:     /usr/bin/python2.7 (ver 2.7.12) 

Python 3: 
Interpreter:     /usr/bin/python3 (ver 3.5.2) 

Python (for build):   /usr/bin/python2.7 

Java: 
ant:       /usr/bin/ant (ver 1.9.6) 
JNI:       /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include 
Java wrappers:    YES 
Java tests:     YES 

Matlab:      Matlab not found or implicitly disabled 

Documentation: 
Doxygen:      NO 

Tests and samples: 
Tests:      YES 
Performance tests:   YES 
C/C++ Examples:    NO 

Install path:     /usr/loca 
cvconfig.h is in:    /home/user/opencv-3.2.0/build 

回答

0

.deb系統,您需要安裝*了libavformat-dev的是,libavcodec-dev的,libswscale-dev的,libavresample-dev的軟件包。

+1

它仍然不能檢測'FFMPEG' –

+0

你能嘗試刪除build文件夾並重新運行cmake的?這些可能有ffmpeg版本,比如libavformat-ffmpeg-dev等,你可能也想安裝它們。 –

+0

好吧,讓我再試一次 –

1

使用泊塢窗圖片裏面什麼都有,如果你能預先配置。讓你的生活變得更輕鬆--- Docker Image