Libav Issue

asked 2016-09-21 04:11:02 -0500

Sam78 gravatar image

updated 2016-09-21 05:35:33 -0500

I am unable to import cv2 in python 3.4 due to the below error, it works fine with Python2.7 and also on my laptop in python3.4 but the server im using gives:

Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information.

import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /opt/local/opencv/3.1/lib/libopencv_videoio.so.3.1: symbol av_image_get_buffer_size, version LIBAVUTIL_54 not defined in file libavutil.so.54 with link time reference

I have compiled with ffmpeg on and have the following libav packages installed:

ii libavc1394-0:amd64 0.5.4-2
ii libavcodec-dev 6:11.7-1~deb8u1
ii libavcodec56:amd64 6:11.7-1~deb8u1
ii libavformat-dev 6:11.7-1~deb8u1
ii libavformat56:amd64 6:11.7-1~deb8u1
ii libavresample-dev 6:11.7-1~deb8u1
ii libavresample2:amd64 6:11.7-1~deb8u1
ii libavutil-dev 6:11.7-1~deb8u1
ii libavutil54:amd64 6:11.7-1~deb8u1

When I run ldd -r libopencv_videoio.so.3.1 I see the following errors:

symbol av_image_get_buffer_size, version LIBAVUTIL_54 not defined in file libavutil.so.54 with link time reference (./libopencv_videoio.so.3.1)

symbol avformat_get_mov_video_tags, version LIBAVFORMAT_56 not defined in file libavformat.so.56 with link time reference (./libopencv_videoio.so.3.1)

symbol av_image_fill_arrays, version LIBAVUTIL_54 not defined in file libavutil.so.54 with link time reference (./libopencv_videoio.so.3.1)

Looks similar to the below however the link to the solution is no longer working:

http://answers.opencv.org/question/18...

Same packages and versions installed on my laptop which is fine, both using Debian Jessie. Any suggestions very welcome!

Cheers

Sam

edit retag flag offensive close merge delete