JetsonTk1 Failed to grab image from webcam Logitech C920

Dear all,
I would like to grab frame from an USB webcam attached flashed Jetson TK1.
the device is listed under lsusb
ubuntu@tegra-ubuntu:~$ lsusb
Bus 002 Device 005: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 002 Device 004: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 002 Device 006: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 002 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

When I trying to grab an image. I am receiving this error message
ubuntu@tegra-ubuntu:~ fswebcam -d /dev/video0 -r 640x480 testimage.jpeg --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. --- Capturing frame... Timed out waiting for frame! No frames captured. ubuntu@tegra-ubuntu:~

I tried with different TK1 broad, It works. What can be problem?
I am using Logitech C920 Webcam.This webcam works fine with another TK1 broad.

Thank you very much for your time.

You’ll need to provide more information, e.g., what the dmesg output is during the capture, and any other message or indication of what’s being reported during the frame capture attempt. It does work on the Jetson TK1 board, so it should be possible for a custom board (if “/dev/video0” shows up I’d say that at least the USB side and driver are functioning).

Thank you for your reply,
Camera is recognized in dmesg.

[   59.492961] usb 2-1.2: Product: HD Pro Webcam C920
[   59.502894] usb 2-1.2: SerialNumber: 7DACCDDF
[   59.524926] uvcvideo: Found UVC 1.00 device HD Pro Webcam C920 (046d:082d)
[   59.528961] input: HD Pro Webcam C920 as /devices/platform/tegra-ehci.2/usb2/2-1/2-1.2/2-1.2:1.0/input/input5

It is also shows up here “/dev/video0”

When I tried with Cheese
I got this error message

ubuntu@tegra-ubuntu:~$ cheese
libv4l2: error allocating conversion buffer

(cheese:3386): cheese-WARNING **: Internal data flow error.: gstbasesrc.c(2865): gst_base_src_loop (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin17/GstV4l2Src:video_source:
streaming task paused, reason not-negotiated (-4)

Is this camera driver bug?

I have the C920 working with just the “cheese” command. I do find that if I try to remote display cheese fails (not the same error as you have…it’s because my host is missing a library). Assuming there is nothing special going on (e.g., remote display), then I’m thinking there may be a version mismatch issue somewhere. Have you done an “suido apt update” and “sudo apt-get upgrade” lately? If not, then you might try this. After, verify “sha1sum -c /etc/nv_tegra_release” to validate the NVIDIA libraries.

Hi ngonha,

We have Logitech Webcam C120 and C310 are working on TK1.
Suggest you can re-flash your TK1 via JetPack3.0 and update, then check again, it should be work!

Also, are you logged in directly to the Jetson? If not, then this could cause issues.

Thanks for your reply. I tried to re-flash my TK1 via JetPack 3.0 and Updated.
BUT I still got the same error message. This message when I run Cheese

** Message: cheese-application.vala:291: Error during camera setup: No device found


(cheese:2600): cheese-CRITICAL **: cheese_camera_device_get_device_node: assertion 'CHEESE_IS_CAMERA_DEVICE (device)' failed

(cheese:2600): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed

(cheese:2600): GLib-GIO-CRITICAL **: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(cheese:2600): GLib-CRITICAL **: g_variant_get_type_string: assertion 'value != NULL' failed

(cheese:2600): GLib-GIO-CRITICAL **: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given

** (cheese:2600): CRITICAL **: cheese_preferences_dialog_setup_resolutions_for_device: assertion 'device != NULL' failed

Result of lsusb

ubuntu@tegra-ubuntu:~$ lsusb
Bus 002 Device 002: ID 8564:4000  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 010: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 005: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 001 Device 009: ID 0000:0538  
Bus 001 Device 002: ID 8564:4000  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@tegra-ubuntu:~$

Yes, I logged in directly to the Jetson

It is interesting because I have both the cheese and fswebcam apps working with a C920 just like what you have. I have done this though, perhaps there is a bug fix somewhere in the wild you need:

sudo apt update
sudo apt-get upgrade
# Verify other NVIDIA-specific files are still in place:
sha1sum -c /etc/nv_tegra_release