Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2367897imu; Fri, 23 Nov 2018 08:12:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/U/hxl6R+Y2HBEGOouOJAA3xkkAMr8eF1O2qcD+gXy9C8l/KO/Uudd3GlQ4XfqTB6pJWMtF X-Received: by 2002:a17:902:8d93:: with SMTP id v19-v6mr15740577plo.133.1542989536867; Fri, 23 Nov 2018 08:12:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542989536; cv=none; d=google.com; s=arc-20160816; b=e8GwzoqCeavGpwCA52hdjliyQDsIiRB+h1mQ2hC9GZptuDiyyLA+fXv8bv/faxrq3O LbKj2BilB8G66q0sUXOIgoXj3XpMuY2W3hgl+bNBBWq68ntYEOZ/nh6fqLwXDHqyhCHO ebhwjjwHkMyHrIkZfczAYPpnjXkzSNIXVusgbMjllA+gbQCYHGgzCkAFV/auLIY9vzj4 +7ARmxx77/TWPg5Ckxlkxhl9dckoVB91ZsOLOWCfJPMU0ZHvUr6hBDYbe7aqP5FvE4D+ BA65US/LFndzCjs0zgyPkOuCjqLSfRJu+56lEqADSG6ef8RbDSnVkzEyUk0P5Z8DXAM0 lSzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=gKooUaXUZ5GSQG2tDwsOUalUOZwF5CPvwQsWjgcabcg=; b=vnkDpwV5LJMLm5BRQoSMUUl5uH6o0Inc+zfdCTcoZoqME54sAOKQrlkUsnvX0YuS7u mZp2L8zLFZoGhbejFS9uCSY3PCan0bBKjjyWt92b1verE5BZwOOJxyNkHaofQ432+BIt 1LLffCUkQLeYJ1530XWPr2OfogAhiL5k7ocS5pcTlAfY1jVNTSNRgOEtGbqva74i3bdL 2WfWMspOLlwVIDIGcj+EGGSPw5XfKcO0yO1lE29jJ12UJoqKJY1+nN9cdueumCMxiOdw Rju1tgxT3H6gYts8Iu8hwGtnN+oLo6kTy2JiJ6toNERNV7YP0QAlrwOvDkYX0qecTtA6 pTRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m65si9486083pfg.282.2018.11.23.08.11.38; Fri, 23 Nov 2018 08:12:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436711AbeKVXWy (ORCPT + 99 others); Thu, 22 Nov 2018 18:22:54 -0500 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:54685 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388647AbeKVXWy (ORCPT ); Thu, 22 Nov 2018 18:22:54 -0500 Received: from [IPv6:2001:983:e9a7:1:4dc2:d123:5b81:cbdd] ([IPv6:2001:983:e9a7:1:4dc2:d123:5b81:cbdd]) by smtp-cloud9.xs4all.net with ESMTPA id PoKZgEuRJQPpyPoKagQYv0; Thu, 22 Nov 2018 13:43:40 +0100 Subject: Re: Logitech QuickCam USB detected by Linux, but not user space applications To: Paul Menzel , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181115033813.6ff626d5@silica.lan> <53bce637-985e-2c74-1d6b-151ba81550db@molgen.mpg.de> From: Hans Verkuil Message-ID: Date: Thu, 22 Nov 2018 13:43:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <53bce637-985e-2c74-1d6b-151ba81550db@molgen.mpg.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfL+PU4fX+ZeJAoQwf4DA8vLbw7Ud1RXxERgptj3YdRp4Y62tK+YZIggmCqQOmXz6W4Ca0vlJdB6juQUGVNetN7wxUkJD04PU77C9kfpF5AXHCIurqwiP dQ4EjmV5JF+djm+quMNOClwlGlzmZuMZgOcae57WuW8x+ggXkKQT9i80pHY/58Jk8k2W4ec104PDc9WtPMKBdwFbFromOV6UD6wllH8OrbcBwEz1nwVM5u5a cpvW//CD/NSUPeA6QLkA72ohHD3wI/rj7gVCSplCuY0hYwdVaQozt8+fYJGPTJg9i/hbidqCmlShVthpytJX1C+A37YjSODgYzFtW4pzKqNJi1CwKrXLcDJr V1puFtIYL+VMQ+yxP1PfHhPSUu8GrA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, On 11/16/2018 03:39 PM, Paul Menzel wrote: > Dear Mauro, > > > Thank you very much for the quick reply. > > > On 11/15/18 12:38, Mauro Carvalho Chehab wrote: >> Em Thu, 15 Nov 2018 11:42:32 +0100 Paul Menzel escreveu: > >>> I tried to get a Logitech QuickCam USB camera working, but unfortunately, it is >>> not detected by user space (Cheese, MPlayer). >> >> Could you please try it with Camorama? >> >> https://github.com/alessio/camorama > > Thank you for the suggestion. At first, I only saw a black image, but changing the > resolution made it work. See the status below. > > 1. does *not* work > > a) 160x120 > b) 176x144 > > 2. works > > a) 320x240 > b) 352x288 Try this patch: https://patchwork.linuxtv.org/patch/53043/ It probably fixes the same problem you are experiencing. Regards, Hans > >>> It’s an old device, so it could be broken, but as it’s detected by the Linux >>> kernel, I wanted to check with you first. >>> >>> Linux 4.18.10 from Debian Sid/unstable is used. >>> >>> ``` >>> $ dmesg >>> […] >>> [ 2891.404361] usb 3-3: new full-speed USB device number 4 using ohci-pci >>> [ 2891.626934] usb 3-3: New USB device found, idVendor=046d, idProduct=092e, bcdDevice= 0.00 >>> [ 2891.626945] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 >>> [ 2891.626951] usb 3-3: Product: Camera >>> [ 2891.626957] usb 3-3: Manufacturer: >>> [ 2893.110249] calling media_devnode_init+0x0/0x1000 [media] @ 11704 >>> [ 2893.110256] media: Linux media interface: v0.10 >>> [ 2893.110329] initcall media_devnode_init+0x0/0x1000 [media] returned 0 after 56 usecs >>> [ 2893.210078] calling videodev_init+0x0/0x79 [videodev] @ 11704 >>> [ 2893.210084] videodev: Linux video capture interface: v2.00 >>> [ 2893.210123] initcall videodev_init+0x0/0x79 [videodev] returned 0 after 21 usecs >>> [ 2893.333140] calling gspca_init+0x0/0x1000 [gspca_main] @ 11704 >>> [ 2893.333148] gspca_main: v2.14.0 registered >>> [ 2893.333161] initcall gspca_init+0x0/0x1000 [gspca_main] returned 0 after 3 usecs >>> [ 2893.370672] calling sd_driver_init+0x0/0x1000 [gspca_spca561] @ 11704 >>> [ 2893.370751] gspca_main: spca561-2.14.0 probing 046d:092e >>> [ 2893.482675] input: spca561 as /devices/pci0000:00/0000:00:12.0/usb3/3-3/input/input17 >>> [ 2893.485415] usbcore: registered new interface driver spca561 >>> [ 2893.485434] initcall sd_driver_init+0x0/0x1000 [gspca_spca561] returned 0 after 112054 usecs >>> […] >>> $ ls -l /dev/video* >>> crw-rw----+ 1 root video 81, 0 Nov 15 09:26 /dev/video0 >>> >>> $ mplayer tv:// -tv driver=v4l2:device=/dev/video0 >>> MPlayer 1.3.0 (Debian), built with gcc-8 (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 >>> 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: Camera >>> Capabilities: video capture read/write streaming >>> supported norms: >>> inputs: 0 = spca561; >>> Current input: 0 >>> Current format: unknown (0x31363553) >> >> The problem is likely here: mplayer is probably not using libv4l2. Without >> that, it can't decode the spca561 specific output format. It is probably >> due to some option used when mplayer was built. > > I’ll try to look more into that in the next weeks. > >> In the case of Cheese, it uses Gstreamer, with defaults to not use libv4l2 >> either. On newest versions of it, there is an environment var that would >> allow enabling it (I don't remember what var). > > Thank you for the details. I’ll test that next week. > > […] > > > Kind regards, > > Paul >