Ask Your Question

Revision history [back]

Fresh install in Arch Linux - problems running VideoIO tutorials

So I've installed OpenCV on Arch Linux.

  • I've now tried building from source and alternatively using the Arch repo (via pacman -Syu base-devel opencv opencv-samples). In both cases I can (eventually) get the Display Image tutorial to work.
  • Also confirmed the system can find the libraries via pkg-config --libs opencv

Now progressing to my main purpose, video, I hit problems:

  • Testing the VideoIO tutorials
  • Compiling requires code similar to "g++ -o test_1 test_1.cpp pkg-config opencv --cflags --libs"
  • Running this output (via ./opencv_video Megamind.avi Megamind_bugy.avi 35 10) hits several errors..

Unable to stop the stream: Inappropriate ioctl for device

(ERROR)icvOpenAVI_XINE(): Unable to open source 'Megamind.avi'

Unable to stop the stream: Inappropriate ioctl for device

(ERROR)icvOpenAVI_XINE(): Unable to open source 'Megamind_bugy.avi'

Could not open reference Megamind.avi

This occurs no matter which original install method I use (both building from source and from the Arch Linux repo). The errors don't particularly help, as after a couple of hours and down several rabbit trails I don't seem to be any further.

Hoping someone might be able to direct me towards a solution. Thanks for reading!