allow grabbing from v4l2 webcams

Bug #274973 reported by jorge
4
Affects Status Importance Assigned to Milestone
Myrtille
Fix Committed
High
NicoInattendu

Bug Description

I have a cheap Logitech QuickCam). This is a UVC camera and is only supported trough V4L2. So,
To make it work i changed v4lsrc with v4l2src and add a ffmpegcolorspace in the pipeline (patch submitted)
With these changes i can use my web cam. I dont't know if the correct solution is to just change v4l with v4l2, or add another device class...

Related branches

Revision history for this message
jorge (xxopxe) wrote :
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

To implement in myrtille 0.6

Changed in myrtille:
assignee: nobody → nico-inattendu
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Caution :
V4l2 seems not working with all web cams. A way to detect web cam source is needed.

Changed in myrtille:
status: Confirmed → Fix Committed
Changed in myrtille:
status: Fix Committed → In Progress
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Changed from medium to high, because some webcam can only use v4lsrc or v4l2src.
So the detection of the source is very important for compatibility of most webcams .

Changed in myrtille:
importance: Medium → High
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

First commit , need more tests; for robustness, and check webcam detetction and compatibility

Changed in myrtille:
status: In Progress → Fix Committed
Revision history for this message
jorge (xxopxe) wrote :

It worked with the Logitech QuickCam, but failed with a Philips webcam. It seems to have recognized it, but when clicked the capture button gave the error at the end of the attached output. The light on the webcam actually goes on. Seems it failed to negotiate a mode or something (the camera is actually a very bad one)

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Hi,
If i understand well the phillips webcam have a max res of 320x240, and myrtille try to capture at 640x480. and detect also a 640x48O res.
In which version of ubuntu do you run ? Some problems exists in v4l2src support under intrepid.

Revision history for this message
jorge (xxopxe) wrote :

I'm able to use the Philips webcam in guvcview in 640x480 resolution (YUYV encoding)... But it is indeed Intrepid.

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

I'm facing some problems with web-cam detection and Ubuntu intrepid ;-)

Did you test your webcam with cheese ? Its works ? I use quite the same same strategy for webcam detection as this software.

In another point, I read that libv4l should be upgraded to version 0.5.7 and kernel to version 2.6.27-11. I read this out here :
https://bugs.launchpad.net/ubuntu-release-notes/+bug/290506 and more precisely the info is at this comment : https://bugs.launchpad.net/ubuntu-release-notes/+bug/290506/comments/157. It has solved some problems but not all problems.

In hardy I have an "old" webcam, a labtec one, who runs with v4lsrc and not with v4l2src. In intrepid the v4l2src detect the labtec webcam, but the display is ugly. and I can nom more use v4lsrc for this webcam. I make my test with gstreamer and gst-launch.

Do you if your philips webcam use v4ksrc or v4l2src ? same question for your Logitech QuickCam ?

With a Phillps SPC1030NC, webcam is used with v4l2src, and operates correctly.

Revision history for this message
jorge (xxopxe) wrote :

It's a Philips SPC530NC and you're right, it doesn't work in cheese either.

Revision history for this message
jorge (xxopxe) wrote :

Good news, updated to the restricted-modules package from proposed repository, and now the Philips webcam works (both in cheese and myrtille).

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Hi,
I commit a fix for this bug, the project "assistant" is a little bit improved; and a summary of project and webcam info are now available on the last page of the assistant.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.