Re: Interfacing webcam with NetBSD

2018-11-13 Thread Mayuresh
On Mon, Nov 12, 2018 at 07:01:29PM +, Robert Swindells wrote: > I'm going to commit some changes to video(4) soon that add support for > the VIDIOC_G_PARM ioctl, as well as an update to the v4l2 package. Please share when you do. I can test on my camera and share results. Will it be

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Robert Swindells
Mayuresh wrote: >On Sun, Nov 11, 2018 at 12:46:19PM -, Michael van Elst wrote: >> Try mpv av://v4l2:/dev/video1 >> >> Depending on your system you may also want the option "-vo xv" (needs XVideo >> support) or just "-vo x11". > >Get io error > >$ mpv av://v4l2:/dev/video1 >Playing:

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Martin Husemann
On Mon, Nov 12, 2018 at 06:23:11PM +0100, Michael van Elst wrote: > On Mon, Nov 12, 2018 at 05:45:48PM +0100, Martin Husemann wrote: > > On Mon, Nov 12, 2018 at 09:50:42PM +0530, Mayuresh wrote: > > > The subsystem lacks a puffs-style library that servers can be written > > > against. >

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Michael van Elst
On Mon, Nov 12, 2018 at 05:45:48PM +0100, Martin Husemann wrote: > On Mon, Nov 12, 2018 at 09:50:42PM +0530, Mayuresh wrote: > > The subsystem lacks a puffs-style library that servers can be written > > against. > > That does not make sense to me - just open the device? He first has to

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Martin Husemann
On Mon, Nov 12, 2018 at 09:50:42PM +0530, Mayuresh wrote: > The subsystem lacks a puffs-style library that servers can be written > against. That does not make sense to me - just open the device? Martin

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Mayuresh
On Mon, Nov 12, 2018 at 02:50:47PM +, Stephen Borrill wrote: > This relies on Cuse which seems to be a rather more basic version of pud(4). Sounds interesting (pud i.e.). But man pud sort of scares away: This document is in a hit-in-the-head style obviously not even near complete.

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Stephen Borrill
On Mon, 12 Nov 2018, Mayuresh wrote: On Sun, Nov 11, 2018 at 03:41:51PM +0100, Michael van Elst wrote: The last message is probably caused by uvideo trying to guess the correct USB "alternate interface" and failing. Then sorry, your camera is not supported yet. Is it possible to write

Re: Interfacing webcam with NetBSD

2018-11-12 Thread Mayuresh
On Sun, Nov 11, 2018 at 03:41:51PM +0100, Michael van Elst wrote: > The last message is probably caused by uvideo trying to guess the > correct USB "alternate interface" and failing. Then sorry, your > camera is not supported yet. Is it possible to write userspace code (assuming we get device

Re: Interfacing webcam with NetBSD

2018-11-11 Thread Michael van Elst
On Sun, Nov 11, 2018 at 07:35:59PM +0530, Mayuresh wrote: > On Sun, Nov 11, 2018 at 12:46:19PM -, Michael van Elst wrote: > > Try mpv av://v4l2:/dev/video1 > > > > Depending on your system you may also want the option "-vo xv" (needs XVideo > > support) or just "-vo x11". > > Get io error >

Re: Interfacing webcam with NetBSD

2018-11-11 Thread Mayuresh
On Sun, Nov 11, 2018 at 12:46:19PM -, Michael van Elst wrote: > Try mpv av://v4l2:/dev/video1 > > Depending on your system you may also want the option "-vo xv" (needs XVideo > support) or just "-vo x11". Get io error $ mpv av://v4l2:/dev/video1 Playing: av://v4l2:/dev/video1

Re: Interfacing webcam with NetBSD

2018-11-11 Thread Michael van Elst
mayur...@acm.org (Mayuresh) writes: >video1 at uvideo1: ARKMICRO (0x18ec) USB2.0 PC CAMERA (0x3399), rev 2.00/1.00, >addr 24 >Device permissions /dev/video* are set right manually to be owned by a non >root user. Try mpv av://v4l2:/dev/video1 Depending on your system you may also want the