cell programming

Just another WordPress.com weblog

OpenCV cvCaptureFromAVI error in Ubuntu 9.04

Recently I have installed Ubuntu Jaunty (v 9.04). I have developed some projects using OpenCV api and I have realized the cvCaptureFromAVI function wasn’t working as expected. At first I thought it had some relation with the video codec, but after converting (in Windows) the video used to an uncompressed video, this was discarded.

Then, I searched the web looking for some kind of information, and finally I found this link: http://ubuntuforums.org/showthread.php?p=7208937 in which the problem is detailed and one really easy sollution is shown.

That solution is posted here by  Gijs Molenaa: http://gijs.pythonic.nl/blog/2009/may/3/getting-video-io-working-opencv-and-ubuntu-jaunty-/

He has solved the problem fixing the sources and compiling them. He has created the .deb files and allocated them in a server. The fix in my laptop has been a piece of cake.

  • Modify my /etc/apt/sources.list to add     deb http://ppa.launchpad.net/gijzelaar/opencv/ubuntu jaunty main
  • Import the keyserver sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com cafc44ee7f39098ce6ec229cca70e6a9087475a0
  • apt-get update
  • Update the opencv packages

Once the opencv packages has been updated the function works fine.

Thanks a lot to Gijs Molenaa  :)

May 24, 2009 - Posted by Javier Sánchez Egido | General | | 3 Comments

3 Comments »

  1. No problem.

    Btw it is Gijs MolenaaR ;)

    Comment by Gijs Molenaar | June 2, 2009 | Reply

  2. [...] video i/o working with opencv and Ubuntu Jaunty (9.04) OpenCV cvCaptureFromAVI error in Ubuntu 9.04 Installing OpenCV on [...]

    Pingback by ¿Cómo instalar OpenCV en Ubuntu 9.04? « ácratas y libertarios varios | July 12, 2009 | Reply

  3. THANK YOU !!!
    I was looking for the problem for 2 days. I suspected initially a CODEC problem as reported in OpenCV Wiki

    Nicolas

    Comment by nicolas | October 25, 2009 | Reply


Leave a comment