From owner-freebsd-multimedia@freebsd.org Tue Mar 14 07:12:23 2017 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 CBBDFD0B87C for ; Tue, 14 Mar 2017 07:12:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 91B371245 for ; Tue, 14 Mar 2017 07:12:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.155.235] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1cngcw-00047q-AX; Tue, 14 Mar 2017 08:12:14 +0100 Received: from localhost.my.domain (c720-r314251 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v2E7CB6L002729 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 14 Mar 2017 08:12:11 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v2E7CAuK002728; Tue, 14 Mar 2017 08:12:10 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 14 Mar 2017 08:12:10 +0100 From: Matthias Apitz To: Hans Petter Selasky , freebsd-multimedia@freebsd.org Subject: webcamd && webRTC Message-ID: <20170314071210.GA2343@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Hans Petter Selasky , freebsd-multimedia@freebsd.org References: <20170128204235.GA2290@c720-r292778-amd64> <39afc2ef-9c76-cc23-da98-6b694192b6dd@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <39afc2ef-9c76-cc23-da98-6b694192b6dd@selasky.org> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.155.235 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2017 07:12:23 -0000 El día sábado, enero 28, 2017 a las 09:49:35p. m. +0100, Hans Petter Selasky escribió: > You can try to compile webcamd with debugging and run it in the > foreground for you device. Maybe some error message will pop up. Before continuing, I wanted to update kernel, world and ports to the most recent versions: # uname -a FreeBSD c720-r314251 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r314251: Sat Feb 25 17:14:40 CET 2017 root@r303343-amd64:/usr/obj/usr/src/sys/GENERIC amd64 $ svn info /usr/ports | grep Revi Revision: 435425 $ ps ax | grep web 371 - Is 0:00.08 /usr/local/sbin/webcamd -i 0 -d ugen0.2 -B -U webcamd -G webcamd -H $ ls -l /dev/vid* crw-rw---- 1 webcamd webcamd 0x6a Mar 14 07:38 /dev/video0 $ pkg info | grep pwc pwcview-1.4.1_6 The Video4Linux PWC webcam viewer $ pwcview Webcam set to: 320x240 (sif) at 5 fps (worked fine) $ pkg info | grep firefox firefox-52.0_3,1 Web browser based on the browser portion of Mozilla https://test.webrtc.org/ (cam does not work) after this test, pwcview now failes as well with: $ pwcview Webcam set to: 320x240 (sif) at 5 fps libv4l2: error turning on stream: Device not configured libv4l2: error reading: Invalid argument Error reading from webcam: Invalid argument # service webcamd stop Stopping webcamd. Waiting for PIDs: 371 recompiled webcamd with DEBUG and started as: # /usr/local/sbin/webcamd -i 0 -d ugen0.2 -U webcamd -G webcamd -H : 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 it hangs here some time, but finally it does: Attached to ugen0.2[0] uvcvideo: Found UVC 1.00 device HD WebCam (1bcf:2c67) Waiting for HAL USB device. Creating /dev/video0 $ pwcview Webcam set to: 320x240 (sif) at 5 fps libv4l2: error turning on stream: Device not configured libv4l2: error reading: Invalid argument Error reading from webcam: Invalid argument webcamd session says: uvcvideo: Failed to submit URB 0 (-32). same error when accessing https://test.webrtc.org/ and sharing cam there: uvcvideo: Failed to submit URB 0 (-32). HIH matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045