How to enable webcam in wayland image?

Hi All,
I have a Logitech Pro 9000 Webcam, which i want to enable in my wayland image running in Renesas Board, so that i can further use this webcam for my opencv applications.

Things i tried:

  1. When i do lsusb - it shows camera name.

    Is that means drivers are installed?
  2. dmesg output:

            uvcvideo: Found UVC 1.00 device <unnamed> (046d:0809)
            input: UVC Camera (046d:0809) as /devices/platform/pci-rcar-gen2.1/pci0002:01/0002:01:02.0/usb4/4-1/4-1.2/4-1.2:1.0/input/input5

So i think all drivers are installed.

  1. v4l2-ctl --list-devices:

Listed on which device node my webcam is configured i.e. /dev/video4.
when i do ls -al it shows its a capture device.

But when i try to open webcam using gstreamer i get this error and it hangs for an indefinite time:

gst-launch-1.0 -e v4l2src device=/dev/video4 io-mode=dmabuf ! video/x-raw, width=800, height=480, format=UYVY, framerate=30/1 ! waylandsink

Setting pipeline to PAUSED …
usb 4-1.2: reset high-speed USB device number 6 using ehci-pci
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …

New clock: GstSystemClock

ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.

Additional debug info:

gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:

streaming task paused, reason not-negotiated (-4)

EOS on shutdown enabled – waiting for EOS after Error

Waiting for EOS…

I don’t know what is wrong. Please help.


Please approach Renesas for your query. This forum is only meant for discussions with Toradex or users about topics related to Toradex products, services or technologies. See Terms Of Use.