title: OpenCV linux how to install FFMPEG
body: <p>Can someone please help me with a working method on how to install <code>FFMPEG</code> on linux, I have followed several tutorials and they seem to work except after everything <code>FFMPEG</code> is never found in the system, even after several system reboots my last try was from this link <a href="https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu" rel="nofollow noreferrer">Compile FFmpeg on Ubuntu, Debian, or Mint</a></p>
  
  <p>I did everything in the tutorial but when i run the <code>man ffmpeg</code> it tells me no manual found and <code>OpenCV</code> too does not detect it, I tried calling the <code>Core.getBuildInformation()</code> and the output was:</p>
  
  <pre><code>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:                        &lt;Dynamic loading of OpenCL library&gt;
  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
  </code></pre>