Ask Your Question

Sam78's profile - activity

2016-09-21 04:46:55 -0600 received badge  Editor (source)
2016-09-21 04:11:02 -0600 asked a question Libav Issue

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

2016-09-12 09:22:12 -0600 asked a question Opencv hang

Hi,

I have installed OpenCV3.1 (stable) on Debian Jessie on my laptop and ran opencv_core_test without any issues however when installing on a server (Debian Jessie also), using the same cmake command it hangs upon launch. This creates an unkillable, idle sleeping process and appears to hang forever.

I have checked all listed pre-requisites are installed and compared packages installed on my laptop against those of the server however nothing stands out that might impact opencv.

I also get the exact same result when importing cv2 in a python shell. I have ran an strace both importing cv2 and also running opencv_core_test and they both hang here:

readlink("/sys/devices/pci0000:00/0000:00:12.0/usb3", 0x7ffff5234e20, 1024) = -1 EINVAL (Invalid argument) stat("/sys/devices/pci0000:00/0000:00:12.0/usb3/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 open("/sys/devices/pci0000:00/0000:00:12.0/usb3/uevent", O_RDONLY|O_CLOEXEC) = 11 fstat(11, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff5cd0ff000 read(11, "MAJOR=189\nMINOR=256\nDEVNAME=bus/"..., 4096) = 126 read(11, "", 4096) = 0 close(11) = 0 munmap(0x7ff5cd0ff000, 4096) = 0 open("/sys/bus/usb/devices/usb3/busnum", O_RDONLY) = 11 fstat(11, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff5cd0ff000 read(11, "3\n", 4096) = 2 close(11) = 0 munmap(0x7ff5cd0ff000, 4096) = 0 open("/sys/bus/usb/devices/usb3/devnum", O_RDONLY) = 11 fstat(11, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff5cd0ff000 read(11, "1\n", 4096) = 2 close(11) = 0 munmap(0x7ff5cd0ff000, 4096) = 0 open("/sys/bus/usb/devices/usb3/speed", O_RDONLY) = 11 fstat(11, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff5cd0ff000 read(11, "12\n", 4096) = 3 close(11) = 0 munmap(0x7ff5cd0ff000, 4096) = 0 open("/sys/bus/usb/devices/usb3/descriptors", O_RDONLY) = 11 read(11,

The server has an AMD processor whereas the laptop has an Intel. Any ideas on what could possibly be causing this or any further troubleshooting steps that might shed any light would be greatly appreciated!

Cheers

Sam