Ask Your Question

Aubry's profile - activity

2017-01-16 12:29:44 -0600 asked a question OpenCV not detecting FFMPEG on Linux Mint

I have been using OpenCV on Windows for a year now and recently transitioned to Linux, Life has not been easy, from loading an already existing Jar file to compiling my own. I have manage to compile the Jar but having issues playing a video, I get the error Unable to stop the stream: Inappropriate ioctl for device from what I understand it is something to do with Video I/O when I call the method Core.getBuildInformation() it gives me the following output:

  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

Meaning FFMPEG was not installed but when compiling the Jar I configure CMAKE like cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. and the ouput is:

 Video I/O:
   DC1394 1.x:                  NO
   DC1394 2.x:                  YES (ver 2.2.4)  
   FFMPEG:                      YES 
    avcodec:                   YES (ver 56.60.100)
    avformat:                  YES (ver 56.40.101)
    avutil:                    YES (ver 54.31.100)
    swscale:                   YES (ver 3.1.101)
    avresample:                YES (ver 2.1.0) 
    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

from what I understand from this log FFMPEG is installed and detected by OpenCV after which I compile the jar with the command make -j10 and it runs successfully with no single error but even after all this OpenCv does not play video files, but it does work with the WebCam....I am really lost and very new to OpenCV in Linux so please if there is anyone who knows what could be the problem help me sort it.