trrohit26 / ehci

Automatically exported from code.google.com/p/ehci
0 stars 0 forks source link

Trouble initializing camera in Ubuntu #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the trunk version of EHCI 0.7
2. Compile it and try to run with Logitech webcam Pro9000 in Ubuntu

Do you have any advice on what may be occurring?  I am compiling everything out 
of the box and it's producing a.out just fine.  When I try running after using 
my Makefile it responds with 

"Could not initialize capturing..."
Segmentation fault

Is this an issue that is possibly due to my camera version?  I used the 
config.ini recommended in one of the other issue threads, and everything is 
setup to compile correctly.  

Thanks!

Original issue reported on code.google.com by itachi.r...@gmail.com on 18 Jan 2011 at 5:16

GoogleCodeExporter commented 8 years ago
Hi Ricky,

so, in case this is a driver related issue, we can identify it trying to run 
OpenCV demos and make sure they are compatible with your camera. I'd advise you 
to install OpenCV, and run their demos. If it works, problem is in EHCI side 
and we will find it, else, it can be a driver issue. Please, run one of the 
samples like camshift or lkdemo, for instance, and make sure your camera works.

Best regards,
Daniel

Original comment by danielba...@gmail.com on 18 Jan 2011 at 11:55

GoogleCodeExporter commented 8 years ago
I haven't manage to compile the OpenCV code yet, however, the webcamera is 
working with a program called "Cheese" that i downloaded through the ubuntu 
command line.  I assume that since the camera is working with that, the drivers 
are fine.  Do you agree?  

If the drivers are not the issue, then what might be wrong with the EHCI code 
camera handling end?

Original comment by itachi.r...@gmail.com on 21 Jan 2011 at 4:47

GoogleCodeExporter commented 8 years ago
Hi Ricky,

I'm not sure if OpenCV and Cheese get webcam the same way. As I remember, 
OpenCV uses Video For Linux drivers, V4L/V4L2... and I believe Cheese uses 
GStreamer, but I'm not that sure.

Now, you don't need to compile opencv from source just go with some apt-get 
install opencv, or something alike and you will be fine.

Best regards,
Daniel

Original comment by danielba...@gmail.com on 21 Jan 2011 at 1:04

GoogleCodeExporter commented 8 years ago
lkdemo and those others work just fine after i've gotten them compiled.  I will 
try installing EHCI from scratch and see if the issue still persists.

Original comment by itachi.r...@gmail.com on 24 Jan 2011 at 6:24

GoogleCodeExporter commented 8 years ago
I just reinstalled EHCI from scratch using cmake on EHCI-0.7 and was trying to 
run the samples simple2d and simple3d.  Both run but there is a camera error 

USE_RANSAC: 1
RANSAC_SAMPLES: 6
RANSAC_DISTANCE_THRESHOLD: 0
RANSAC_ITERATIONS: 20
CAMERA_INDEX: 0
Opening movie file: NO.134562208
libv4lconvert: warning more framsizes then I can handle!
libv4lconvert: warning more framsizes then I can handle!
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument

....

etc
...

lib4vlconvert: Error decompressive JPEG: fill_nbits error: need 9 more bits

May there be a package missing that is necessary?

Original comment by itachi.r...@gmail.com on 24 Jan 2011 at 6:42

GoogleCodeExporter commented 8 years ago
Oh, well... that sounds like a like a webcam pro 9000 drivers problem...
http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/p/52166/184611.
aspx
But I have one here and it works.
Are there only error messages that goes to your screen or does the program 
crashes?
Which drivers are you using? Have you tried these?
http://www.quickcamteam.net/software/linux/
or are you using these?
http://www.ideasonboard.org/uvc/
Do these errors also occur on lkdemo?
Thank you for your report,
Daniel

Original comment by danielba...@gmail.com on 24 Jan 2011 at 1:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

lkdemo complains about lib4vlconvert because of 

more framesizes than it can handle 

but I did install v4l and the plugins using the apt-get option in Ubuntu.  How 
should I go about installing the drivers that you are using?  

EDIT:
I just installed the drivers from the site below and compiled them.

http://linuxtv.org/hg/v4l-dvb/

I still have the v4lconvert issue coming up in lkdemo along with a jpeg issue 
that was there previously

"error decompressing jpeg: fill n_bits error: need 9 more bits"

Original comment by itachi.r...@gmail.com on 31 Jan 2011 at 8:34

GoogleCodeExporter commented 8 years ago
Hey, Ricky.

Thanks a lot for your feedback, but this states that you've got a v4l driver 
problem, and you will find better feedback from the driver developers. I'm 
really sad that these drivers don't come up working out of the box on Ubuntu, 
and I believe you've had a hard time compiling them. Please post your issues on 
http://www.quickcamteam.net/software/linux/
and they will be able to give you support.
Thanks a lot for your attention,
Daniel

Original comment by danielba...@gmail.com on 31 Jan 2011 at 10:05

GoogleCodeExporter commented 8 years ago
I'll mark it as closed, ok?
Thanks a lot :)

Original comment by danielba...@gmail.com on 31 Jan 2011 at 10:16

GoogleCodeExporter commented 8 years ago
Hi,
i am a final year BE student. i am working on the ehci-0.6 library for tracking 
the the face in fedora 13 in vmware. i am able to compile the code but couldnot 
run the sample programs.i am facing the same program as posted by u.The error s 
as follows
 After I compile the program
cd ehci-0.6
./configure
make
I am able to do the above with out any errors. Later when try running samples
I am getting the below errors
cd samples 
make
./simple2d

(<unknown>:5940): GStreamer-CRITICAL **:
Trying to dispose element appsink1, but it is in READY instead of the NULL 
state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

(<unknown>:5940): GStreamer-CRITICAL **:
Trying to dispose element ffmpegcsp1, but it is in READY instead of the NULL 
state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

OpenCV Error: Unspecified error (unicap: failed to get info for device
) in CvCapture_Unicap::initDevice, file 
/builddir/build/BUILD/OpenCV-2.0.0/src/highgui/cvcap_unicap.cpp, line 139
terminate called after throwing an instance of 'cv::Exception'
Aborted (core dumped)

and but ven tried using  
./samples/simple2d 
the error i am facing is "couldnot initialise tha capturing"
can u please suggest me to overcome this kind of error.
blank window opens and goes on showing the error mentioned above and ends ven 
given ctrl + c.
the expected output to open a window and display the capture the person present 
in front of the webcam and print d coordinates of the face captured

If you need further more details I can provide you regarding the project and 
error.
Thanking you
niveditha

Original comment by nivea...@gmail.com on 18 Mar 2011 at 1:01