webcamd && webRTC
Matthias Apitz
guru at unixarea.de
Fri Jan 27 07:54:40 UTC 2017
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 at 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 at unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045
More information about the freebsd-multimedia
mailing list