Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Luo__Eric
Beginner
270 Views

OpenVino on Ubuntu 18.04 FFMPEG

I've been trying to get OpenVino to work on Ubuntu 18.04. I was able to get it to work for the most part after using this: https://github.com/nikhilraghava/OpenVINO-18.04-Support

 

However, I'm having problems with ffmpeg. I keep getting error messages like this whenever I try to compile an OpenVino project:

     /opt/intel/computer_vision_sdk_2018.3.343/opencv/lib/libopencv_videoio.so.3.4.3: undefined reference to `av_write_trailer@LIBAVFORMAT_FFMPEG_56'

 

I've tried installing the older 2.8.15 "Feynman" version by downloading the tar from here: https://www.ffmpeg.org/download.html#releases, and using the following steps:

     tar -xf ffmpeg-2.8.15.tar.xz

     ./configure --enable-shared --build_suffix=-ffmpeg --enable_opencl

     sudo make

     sudo make install

It successfully created the ffmpeg bin file and *.so files for libavutil, libavformat, libavcodec, and libswscale. The ffmpeg command works correctly and prints out the correct versions:

    ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
       built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
       configuration: --enable-shared --build_suffix=-ffmpeg --enable-opencl
       libavutil      54. 31.100 / 54. 31.100
       libavcodec     56. 60.100 / 56. 60.100
       libavformat    56. 40.101 / 56. 40.101
       libavdevice    56.  4.100 / 56.  4.100
       libavfilter     5. 40.101 /  5. 40.101
       libswscale      3.  1.101 /  3.  1.101
       libswresample   1.  2.101 /  1.  2.101
    Hyper fast Audio and Video encoder
 

I don't understand why I would get an error message when I have the correct libraries installed, and there are no complaints about the *.so files not being found.

0 Kudos
3 Replies
Maksim_S_Intel
Employee
270 Views

Please post here output of following commands: "which ffmpeg", "ldd $(which ffmpeg)", "ldd /opt/intel/computer_vision_sdk_2018.3.343/opencv/lib/libopencv_videoio.so.3.4.3"

Luo__Eric
Beginner
270 Views

Thanks Maksim. I uninstalled the newer ffmpeg I had on the system, however, the same error messages still showed up. It's ok, I've downgraded to Ubuntu 16.04, but if you or anyone has been able to get OpenVino to work smoothly on 18.04, please do tell how you guys did it. 

__om__
Beginner
270 Views

Hi,

there are at least two ways to get it working on Ubuntu 18.04

- use regular Ubuntu 18.04 OpenCV with regular Ubuntu 18.04 ffmpeg

- recompile self OpenCV (here you can use Intel specific configuration) with either regular or self (static) ffmpeg libraries

In both cases it needs next to patch cmake lists and install scripts as current OpenVINO suppose just Ubuntu 16.04

Reply