From owner-freebsd-multimedia@freebsd.org Fri Jan 27 07:54:40 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 3A8E7CC3959 for ; Fri, 27 Jan 2017 07:54:40 +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 F158FB88 for ; Fri, 27 Jan 2017 07:54:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.137.183] (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 1cX1Mc-00064Q-OP for freebsd-multimedia@freebsd.org; Fri, 27 Jan 2017 08:54:31 +0100 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v0R7sRLG002232 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 27 Jan 2017 08:54:27 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v0R7sQsn002231 for freebsd-multimedia@freebsd.org; Fri, 27 Jan 2017 08:54:26 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 27 Jan 2017 08:54:26 +0100 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Subject: webcamd && webRTC Message-ID: <20170127075426.GA2197@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.137.183 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: Fri, 27 Jan 2017 07:54:40 -0000 Hello, Inspired a bit by Ubuntu based smartphone, I did tests with webRTC in my FreeBSD netbook. The following software stack is installed: # uname -a FreeBSD c720-r292778-amd64 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r292778: Mon Dec 28 05:45:37 CET 2015 root@poudriere-amd64:/usr/local/r292778/obj/usr/local/r292778/src/sys/GENERIC amd64 # pkg info | grep webcamd webcamd-4.2.0.9 Port of Linux USB webcam and DVB drivers into userspace # pkg info | grep firefox firefox-43.0.3_1,1 Web browser based on the browser portion of Mozilla kernel and ports are from around January 2016, compiled from the head at this time; the video device is there and pwcview works fine: $ ls -l /dev/vi* crw-rw---- 1 webcamd webcamd 0x64 ene. 27 07:50 /dev/video0 $ pwcview Webcam set to: 320x240 (sif) at 5 fps (works fine) Now I launch the webrtc test side as: $ firefox https://test.webrtc.org/ the browser asks in a pop-up for permissions of the mic and cam: ask in popup: Camera to share: HD WebCam Microphone to share: /dev/dsp1 when ACK'ed, it gives a short blink on camera light, but this error: libv4l2: error turning on stream: Device not configured libv4l2: warning v4l2 mmap buffers still mapped on close() libv4l2: error turning on stream: Device not configured libv4l2: warning v4l2 mmap buffers still mapped on close() libv4l2: error turning on stream: Device not configured libv4l2: warning v4l2 mmap buffers still mapped on close() after this, pwcview also does not work anymore: $ 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 Any ideas? Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045