Ask Your Question
0

OpenCV not detecting FFMPEG on Linux Mint

asked 2017-01-16 12:25:33 -0600

Aubry gravatar image

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.

edit retag flag offensive close merge delete

Comments

Did you find a solution ? Same case here, transitionning from Windows to Linux and I'm completely lost with this Video thing. I have the same outputs as yours regarding Video I/O.

Romain gravatar imageRomain ( 2017-07-29 02:35:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-07 12:32:16 -0600

Ryu gravatar image

refer here

Install ffmpeg

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

cd ffmpeg

./configure --enable-nonfree --enable-pic --enable-shared

make

sudo make install

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-01-16 12:25:33 -0600

Seen: 1,960 times

Last updated: Jan 16 '17