Re: [linux-uvc-devel] 090c:337b (Silicon Motion) Camera Support?
Linux UVC driver and tools
Brought to you by:
pinchartl
From: B. B. <be...@ek...> - 2019-08-22 18:41:41
|
Hello again, I tinkered a little more and played with qv4l2. All the controls seem to work and the device gets polled, I can see the green light turn on. As far as the uvc / v4l2 interface goes it seems to be working except qv4l2 shows no video, just a black frame(s?) at the requested resolution. I've attached the dmesg output with /sys/module/uvcvideo/parameters/trace = 0xffff How do I check if this is not a fully UVC compatible camera? The test on http://www.ideasonboard.org/uvc/faq/ shows: $ lsusb -d 090c:337b -v | grep "14 Video" bFunctionClass 14 Video bInterfaceClass 14 Video bInterfaceClass 14 Video bInterfaceClass 14 Video bInterfaceClass 14 Video bInterfaceClass 14 Video bInterfaceClass 14 Video I just need to know if this is just incompatible and I need to buy another camera module. Thank you, B. Bogart On 2019-08-04 9:32 a.m., B. Bogart wrote: > Hello all, > > I've been unable to make this camera work and wonder if it is not > supported. I bought it thinking it would work out of the box being an > OV2640 chip and UVC compliant. > > $ lsusb > Bus 001 Device 010: ID 090c:337b Silicon Motion, Inc. - Taiwan (formerly > Feiya Technology Corp.) Silicon Motion Camera > > $ lsusb -d 090c:337b -v > usblog.txt > (see usblog.txt attached) > > $ lsmod | grep uvc > uvcvideo 86016 2 > videobuf2_vmalloc 16384 3 uvcvideo > videobuf2_v4l2 24576 1 uvcvideo > videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo > videodev 184320 5 videobuf2_core,videobuf2_v4l2,uvcvideo > media 40960 2 videodev,uvcvideo > > $ echo 0xffff > /sys/module/uvcvideo/parameters/trace > (see kern.txt attached) > > $ uname -a > Linux domi 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 > x86_64 x86_64 x86_64 GNU/Linux > > $ lsb_release -a > No LSB modules are available. > Distributor ID: Ubuntu > Description: Ubuntu 18.04.2 LTS > Release: 18.04 > Codename: bionic > > *The closest I've come to make it work is with this command, which shows > a window of the right size, but its all green and garbled (see attached).* > > $ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video1 > -vf screenshot -vo xv > MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team > do_connect: could not connect to socket > connect: No such file or directory > Failed to open LIRC support. You will not be able to use your remote > control. > > Playing tv://. > TV file format detected. > Selected driver: v4l2 > name: Video 4 Linux 2 input > author: Martin Olschewski <ols...@zp...> > comment: first try, more to come ;-) > v4l2: your device driver does not support VIDIOC_G_STD ioctl, > VIDIOC_G_PARM was used instead. > Selected device: PC Cam > Capabilities: video capture streaming > supported norms: > inputs: 0 = Camera 1; > Current input: 0 > Current format: YUYV > tv.c: norm_from_string(pal): Bogus norm parameter, setting default. > v4l2: ioctl enum norm failed: Inappropriate ioctl for device > Error: Cannot set norm! > Selected input hasn't got a tuner! > v4l2: ioctl set mute failed: Invalid argument > ========================================================================== > Opening video decoder: [raw] RAW Uncompressed Video > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > Movie-Aspect is undefined - no prescaling applied. > [swscaler @ 0x55b224369a00] bicubic scaler, from yuyv422 to yuv420p > using MMXEXT > [swscaler @ 0x55b224369a00] using unscaled yuyv422 -> yuv420p special > converter > VO: [xv] 640x480 => 640x480 Planar YV12 > Selected video codec: [rawyuy2] vfm: raw (RAW YUY2) > ========================================================================== > Audio: no sound > Starting playback... > v4l2: select timeout > > *I can also sort-of make it work with gstreamer, but rather than green I > get a window whose content never updates:* > > $ gst-launch-1.0 --gst-debug-level=4 v4l2src device=/dev/video1 ! > video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! > autovideosink > (see gst.txt attached) > > In both the mplayer and gst cases, the LED on the camera does turn on. > > Thank you, > Ben > > |