Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7086291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:31:53+00:00 2026-05-28T07:31:53+00:00

I installed OpenCV-2.3.1a and ffmpeg built with x264. The operating system is Ubuntu 11.04

  • 0

I installed OpenCV-2.3.1a and ffmpeg built with x264. The operating system is Ubuntu 11.04 running on a Macbook Pro 7,1 laptop.

No matter what I do, I can’t get the webcam to work. For example, I tried running the sample code video_dmtx.cpp and I always get the “Failed to open a video device or video file!” error.

I know my built-in iSight webcam and external webcam are working because

ls /dev/video* returns

/dev/video0 /dev/video1

I’ve tested them both out using xawtv -c /dev/video0

To eliminate problems pertaining to multiple webcams, I unplugged the external cam and ran the sample code to see if the default iSight would be detected, but the pointer is still null.

Please help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:31:54+00:00Added an answer on May 28, 2026 at 7:31 am

    I fixed the problem!

    The camera did indeed work with other software so I knew it wasn’t a hardware issue and had something to do with the installation.

    I did a clean install of OpenCV following this guide: http://ozbots.org/opencv-installation/

    As mentioned in the discussions at the end of the tutorial, I also did the following to avoid build errors:
    1) In step 4 where I installed x264, I replaced ‘–enable-static’ with ‘–enable-shared –enable-pic’

    2) In step 5 where I installed ffmpeg, I appended ‘–enable-shared –enable-pic’ to the end of the ./configure command

    The camera worked afterwards! I think the problem was that I was missing some packages…

    Anyway, hope this helps anyone else experiencing similar problems!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have succesfully installed OpenCv & Qt in Ubuntu..i can debug and run some
I had already installed opencv 2.4.2 on my ubuntu 12.04 lts system. But now
I have a strange problem with opencv running on an Ubuntu. I installed OpenCV
I got Ubuntu 12.04 32bit running in VMware. I installed OpenCV 2.4.2 after this
I moved to Ubuntu recently and I can't get openCV working with QtCreator. As
I successfully installed Opencv via sudo apt-get install libcv-dev libcv4 libcvaux-dev libcvaux4 libhighgui-dev libhighgui4
I have looked around for quite some time trying to get openCV installed. I'm
I'm having some issues. I've installed OpenCV 2.3 on an ec2 ubuntu instance -
I have installed Eclipse+CDT and OpenCV with: $ sudo apt-get install libcv1 libcv-dev libcvaux1
I have tried to install ruby-opencv and I can't get it to work. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.