Issues with USB Webcam Support

Hi Puneet,

That’s correct – use “root=/dev/disk/by-partlabel/userdata”, that worked for us.

Best regards,
Patryk

Brain Corporation: Computer vision and machine learning for robotics.

Sure, will give it a shot. Thanks Patryk.

I am trying to use webcams and am having issues. With an old, old Logitech QuickChat webcam, I can get the following command to work.

With a more recent Logitech C615 webcam, it fails, even at 320x240.

Any ideas?

gst-launch-1.0 v4l2src ! video/x-raw,width=320,height=240,framerate=1/1 ! videoconvert ! glimagesink

I see the following:

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Got context from element ‘glimagesink0’: gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"(GstGLDisplayX11)\ gldisplayx11-0";
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.678063863
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Here is from dmesg:

[ 5196.635099] msm_vidc: info: Opening video instance: ffffffc02e328000, 1
[ 5196.637407] msm_vidc: err: State 17 not recognized
[ 5196.637418] msm_vidc: err: Failed to move from state: 16 to 13
[ 5196.637426] msm_vidc: err: Failed to move inst: ffffffc02e328000 to release res done
[ 5196.637437] msm_vidc: warn: Failed in msm_v4l2_close for release output buffers
[ 5196.637601] msm_vidc: info: Closed video instance: ffffffc02e328000
[ 5196.637642] msm_vidc: info: Opening video instance: ffffffc02e328000, 0
[ 5196.638884] msm_vidc: err: State 17 not recognized
[ 5196.638894] msm_vidc: err: Failed to move from state: 16 to 13
[ 5196.638902] msm_vidc: err: Failed to move inst: ffffffc02e328000 to release res done
[ 5196.638913] msm_vidc: warn: Failed in msm_v4l2_close for release output buffers
[ 5196.639111] msm_vidc: info: Closed video instance: ffffffc02e328000

Here is dmesg at camera install:

[ 2599.948103] usb 1-1.2: new high-speed USB device number 11 using msm_hsusb_host
[ 2600.248686] usb 1-1.2: New USB device found, idVendor=046d, idProduct=082c
[ 2600.248747] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[ 2600.248792] usb 1-1.2: Product: HD Webcam C615
[ 2600.248834] usb 1-1.2: SerialNumber: 0
[ 2600.564566] uvcvideo: Found UVC 1.00 device HD Webcam C615 (046d:082c)
[ 2600.583994] input: HD Webcam C615 as /devices/platform/soc/78d9000.ehci/usb1/1-1/1-1.2/1-1.2:1.2/input/input8

I am facing this issue too . I am using the “Creative Live! Cam Sync HD 720P Webcam” (http://www.amazon.com/Creative-Live-Sync-720P-Webcam/dp/B0092QJRPC/ )

The device gets detected and v4l2-ctl -D command lists the device capability.
But when I run the gst-launch command as :
gst-launch-1.0 v4l2src ! video/x-raw,width=320,height=240,framerate=30/1 ! videoconvert ! glimagesink

After the initial messages , there is no Camera frame seen.
I see the same errors in the kmsg as seen by @snowbird.

Any suggestions to get past this error ?

-Sujai.

@snowbird, sorry I missed you message…

@sujai: does the same command work on a PC if you attach the USB camera on the PC?

does the same command work on a PC if you attach the USB camera on the PC?
>>This command " gst-launch-1.0 v4l2src ! video/x-raw,width=320,height=240,framerate=30/1 ! videoconvert ! glimagesink " did not work as I was not able to get glimagesink installed. I tried several packaged but still the glimagesink plugin was never installed on my machine.

However I ran gstreamer-properties on my Linux machine with the same USB camera and I was able to get the frames from the webcam.

On 410c , gstreamer-properties command was not present. I tried installing it by doing 'sudo apt-get install gnome-media but this failed too.

sorry about the long delay… but I think the USB webcam issues should be fixed by now. The problem wasn’t related with webcam, but with the underlying USB drivers.

USB performance were reported from many different places, and there were indeed issues in the Linux kernel, as opposed to the Android kernel…

these issues have been fixed by now, see

https://www.96boards.org/forums/topic/super-slow-usb/#post-9071

I have tested a “Creative Live! Cam Sync HD 720P Webcam” which i got recently, and it’s working fine now.

we will roll out these changes in a release soon, but builds are already available for testing.

Yes USB based Camera is working fine . I was able to test. But i did not try 720P 30fps earlier.
I will give that a try now.

-Sujai.

Hello, but all these solutions are for Linux? …. Is it for Ubuntu Linaro? … Has anyone tried the version of Android Linaro?

this entire thread was about USB webcam in the Linaro Linux releases, yes.

There is no Android Linaro version, actually. the Android releases for DB410c are from QCOM, they are hosted on 96boards.org only. There might be Linaro Android builds eventually… but not now. I don’t deal much with Android, but i think people have reported that USB webcam work fine with Android builds for DB410c, and there is an app note on qualcomm web:

if you have issues with webcam on Android, please create a new specific topic.

hi,
how can I sotre the pictures or videos?

Hi @sswzw,

There’s not really enough info here to make any useful reply. Perhaps you’d like to start a new topic and offer a few more details about what you are trying to do and what doesn’t work.

hello,
I have completed the mission which bothered me。

thanks!