【问题标题】:OpenCV linux how to install FFMPEGOpenCV linux如何安装FFMPEG
【发布时间】:2017-05-30 22:46:26
【问题描述】:

有人可以帮助我提供有关如何在 linux 上安装 FFMPEG 的工作方法,我已经遵循了几个教程,它们似乎可以工作,除了在系统中从未找到所有 FFMPEG 之后,即使在几次系统重新启动之后我最后一次尝试来自此链接Compile FFmpeg on Ubuntu, Debian, or Mint

我在教程中做了所有的事情,但是当我运行 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

【问题讨论】:

    标签: java linux opencv ubuntu ffmpeg


    【解决方案1】:

    如果可以,请使用预先配置了所有内容的 docker Image。让您的生活更轻松 --- Docker Image

    【讨论】:

      【解决方案2】:

      .deb 系统上,您需要安装 *libavformat-dev、libavcodec-dev、libswscale-dev、libavresample-dev 软件包。

      【讨论】:

      • 还是检测不到FFMPEG
      • 您可以尝试删除构建文件夹并重新运行 cmake 吗? Theese 可能有 ffmpeg 版本,例如 libavformat-ffmpeg-dev 等。您可能还想安装它们。
      • 好吧,让我再试一次
      • 已确认,在 Ubuntu 18 中,单独安装 ffmpeg 包不起作用,但将这四个与 (sudo apt install) 添加并清除构建文件夹效果很好。
      猜你喜欢
      • 2014-05-26
      • 2018-09-05
      • 2017-12-23
      • 2016-03-18
      • 2023-03-16
      • 2015-05-28
      • 2013-09-15
      • 2022-11-10
      • 2015-05-31
      相关资源
      最近更新 更多