From owner-freebsd-multimedia@freebsd.org Sun Aug 28 11:48:40 2016 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 014F6B78B91; Sun, 28 Aug 2016 11:48:40 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF20C7C5; Sun, 28 Aug 2016 11:48:39 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 451AB1FE022; Sun, 28 Aug 2016 13:48:37 +0200 (CEST) Subject: Re: [CFT] New version of webcamd, now v4.8.0.2 To: Miguel C , Oleg Nauman References: Cc: "freebsd-multimedia@freebsd.org" , "freebsd-x11@FreeBSD.org" , FreeBSD Current From: Hans Petter Selasky Message-ID: <050b048b-b73d-0823-885a-e8ab88f070e8@selasky.org> Date: Sun, 28 Aug 2016 13:53:11 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2016 11:48:40 -0000 On 08/28/16 01:59, Miguel C wrote: > Actually for me it was failing before, so I gave this a go, yet testing > with pwcview, cheese even mplayer all fail. > > I just compiled the updated version (v4.8.0.4) with DEBUG=on > > I'm starting webcamd manually: > udo webcamd -d ugen0.4 -i 0 -v 0 -m pwc-if.power_save=-1 > : USB HID core driver > Linux video capture interface: v2.00 > IR NEC protocol handler initialized > IR RC5(x/sz) protocol handler initialized > IR RC6 protocol handler initialized > IR JVC protocol handler initialized > IR Sony protocol handler initialized > IR SANYO protocol handler initialized > IR LIRC bridge handler initialized > IR XMP protocol handler initialized > b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded > successfully > uvcvideo: Unable to create debugfs directory > USB Video Class driver (1.1.1) > cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1 > pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner > pvrusb2: Debug mask is 31 (0x1f) > USBVision USB Video Device Driver for Linux : 0.9.11 > em28xx: Registered (Em28xx v4l2 Extension) extension > em28xx: Registered (Em28xx dvb Extension) extension > Attached to ugen0.4[0] > uvcvideo: Found UVC 1.00 device 1.3M HD WebCam (064e:c321) > Creating /dev/video0 > > > This is what I get from pwcview: > pwcview > Failed to get current picture info: Invalid argument > > and if I try with cheese I get a black screen and see this in after > "Creating /dev/video": > uvcvideo: Failed to submit URB 0 (-32). > Hi, Error 32 likely means that the endpoint the uvcvideo driver is trying to attach to doesn't exist. It might be a bug in the USB configuration descriptor. Could you dump the USB descriptors for this device? usbconfig -d ugenX.Y dump_curr_config_desc dump_device_desc --HPS From owner-freebsd-multimedia@freebsd.org Sun Aug 28 14:02:46 2016 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49605B777A7; Sun, 28 Aug 2016 14:02:46 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 96BB92B; Sun, 28 Aug 2016 14:02:45 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id q128so47535267wma.1; Sun, 28 Aug 2016 07:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5FM489REXj0NB/aPq4D60F+WWJxqNpxMSnM7WubYKDQ=; b=nf/lc+9+P3bVimB2OTz+wxDnBC/Zg3bmGz1z/ABcFCmCarovGHcmArDe0EyxtDH07f VC5YwUMihV7yJQrTW9CMIYGNpiVEJdT5M15oMSzJ+ZLrII26NWXh8yfpR4layfse2xP2 auqqsE9xwjyIBOWTobUHZ3SpqIVDogB5ucQgm2duir7i3AYrP6lOBJlvrlY2NbYOIJti Cxh0KmhUQ1wWN8vketRmMkDTTZfinOnQKTSLO4TkVqDaJe5blhI1l39VrUPZfd0nVxH2 JKuNZ8feQVk6w3wflgOSZcZS+c7BlXyv6ERMgPCsSWGkzUw2dxt8s0YBdiZqvvMjkgoW LJXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5FM489REXj0NB/aPq4D60F+WWJxqNpxMSnM7WubYKDQ=; b=c/5YnSq9w0Pe9a5LDNZOSfTGQ9+/K6gqTB++xwRJZ5KUwkegDXaGOemWKJCgKPBb/t xaChRCH0bMN7iCqV1fIrdU/MPZu00RrsOtMTMUxB3MAfahh2ZxtubUH4VWTEA0/Qy81Q CMh4ba3J+AFii+NTsFxBKZx6x6532k32Ias63FviFdYtJVlhQJGLXUdrAEE0/6eVlKQG tLp93xcUfbbs3xalPjLCEGq7vizYnabZY0ZfFqfWG0R+ZQvx+eVQ9EQ8MkJ+KXDJswlG z3PrYGAGAJP0GcjkL64d2gbXCyjTDHYhwaCWKMl5NJnJhf3zv5o2VBMc+z1Znqd9W3SC xoMA== X-Gm-Message-State: AE9vXwPmgFaN+/J3IFo/ZjWnOBhkkKcf4A4GGgojlPUG8IA42v7OLi9J45ZVh/6Xa5i60emvSNIV6WEAhFfLEg== X-Received: by 10.194.205.2 with SMTP id lc2mr12978736wjc.175.1472392963311; Sun, 28 Aug 2016 07:02:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.208.65 with HTTP; Sun, 28 Aug 2016 07:02:02 -0700 (PDT) In-Reply-To: <050b048b-b73d-0823-885a-e8ab88f070e8@selasky.org> References: <050b048b-b73d-0823-885a-e8ab88f070e8@selasky.org> From: Miguel C Date: Sun, 28 Aug 2016 15:02:02 +0100 Message-ID: Subject: Re: [CFT] New version of webcamd, now v4.8.0.2 To: Hans Petter Selasky Cc: Oleg Nauman , "freebsd-multimedia@freebsd.org" , "freebsd-x11@FreeBSD.org" , FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2016 14:02:46 -0000 On Sun, Aug 28, 2016 at 12:53 PM, Hans Petter Selasky wrote: > On 08/28/16 01:59, Miguel C wrote: > >> Actually for me it was failing before, so I gave this a go, yet testing >> with pwcview, cheese even mplayer all fail. >> >> I just compiled the updated version (v4.8.0.4) with DEBUG=on >> >> I'm starting webcamd manually: >> udo webcamd -d ugen0.4 -i 0 -v 0 -m pwc-if.power_save=-1 >> : USB HID core driver >> Linux video capture interface: v2.00 >> IR NEC protocol handler initialized >> IR RC5(x/sz) protocol handler initialized >> IR RC6 protocol handler initialized >> IR JVC protocol handler initialized >> IR Sony protocol handler initialized >> IR SANYO protocol handler initialized >> IR LIRC bridge handler initialized >> IR XMP protocol handler initialized >> b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded >> successfully >> uvcvideo: Unable to create debugfs directory >> USB Video Class driver (1.1.1) >> cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1 >> pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner >> pvrusb2: Debug mask is 31 (0x1f) >> USBVision USB Video Device Driver for Linux : 0.9.11 >> em28xx: Registered (Em28xx v4l2 Extension) extension >> em28xx: Registered (Em28xx dvb Extension) extension >> Attached to ugen0.4[0] >> uvcvideo: Found UVC 1.00 device 1.3M HD WebCam (064e:c321) >> Creating /dev/video0 >> >> >> This is what I get from pwcview: >> pwcview >> Failed to get current picture info: Invalid argument >> >> and if I try with cheese I get a black screen and see this in after >> "Creating /dev/video": >> uvcvideo: Failed to submit URB 0 (-32). >> >> > Hi, > > Error 32 likely means that the endpoint the uvcvideo driver is trying to > attach to doesn't exist. It might be a bug in the USB configuration > descriptor. Could you dump the USB descriptors for this device? > > usbconfig -d ugenX.Y dump_curr_config_desc dump_device_desc > > Sure, here goes: ############# ugen0.4: <1.3M HD WebCam SuYin> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x064e idProduct = 0xc321 bcdDevice = 0x0102 iManufacturer = 0x0001 iProduct = 0x0002 <1.3M HD WebCam> iSerialNumber = 0x0003 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x03f2 bNumInterfaces = 0x0002 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x00fa Additional Descriptor bLength = 0x08 bDescriptorType = 0x0b bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x08, 0x0b, 0x00, 0x02, 0x0e, 0x03, 0x00, 0x02 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x000e