webcamd, IPEVO-Inc--IPEVO-Ziggi-HD-Plus -S unknown -M 0
Polytropon
freebsd at edvax.de
Sat Oct 12 02:53:27 UTC 2019
On Fri, 11 Oct 2019 08:14:52 -0500, Antonio Olivares wrote:
> On Thu, Oct 10, 2019 at 7:44 PM Polytropon <freebsd at edvax.de> wrote:
> >
> > On Thu, 10 Oct 2019 10:30:47 -0500, Antonio Olivares wrote:
> > > root at aceraspire:~ # service devd restart && webcamd -d ugen4.3 -v 0 &
> > > [2] 2139
> > > root at aceraspire:~ # Stopping devd.
> > > Waiting for PIDS: 1929.
> > > Starting devd.
> > > Webcamd is already running for ugen4.3.0
> > >
> > > when I try to run cheese first it got that no devices found, then I get that
> > > ``There was an error playing video from the webcam''
> >
> > Do you have webcamd entries in /etc/rc.conf?
> >
> > I had a comparable problem on FreeBSD 12.0-p10 where webcamd
> > would not be started (and therefore not stopped or restarted)
> > even though I had placed
> >
> > webcamd_enable="YES"
> > webcamd_flags="-d ugen3.2 -i 0 -v 0"
> >
> > into /etc/rc.conf. I now start it "manually" via /etc/rc.local:
> >
> > /usr/local/sbin/webcamd -d ugen3.2 -i 0 -v 0 &
> >
> > Now it works. :-)
> >
> >
> >
> > > Is there a way to get this to work? I have changed
> > > cuse4bsd_load="YES" and changed to
> > > cuse_load="YES" in /etc/rc.conf and have looked at what was
> > > recommended in the threads and it does not work.
> >
> > The entry
> >
> > cuse_load="YES"
> >
> > belongs to /boot/loader.conf, _not_ to /etc/rc.conf, according
> > to the documentation. Verify it has been loaded with "kldstat".
> >
> > I don't know if the package "cuse4bsd-kmod" has to be installed
> > or not - in my case, it isn't. Maybe this just applies to older
> > FreeBSD versions...
> >
> >
> >
> > > How can I get it to work? I appreciate your help/suggestions.
> >
> > For refereence:
> >
> > # webcamd -l
> > Available device(s):
> > [...]
> > webcamd [-d ugen3.2]
> > -N GenesysLogic-Technology-Co---Ltd--HP-Webcam-101
> > -S unknown
> > -M 0
> >
> > This is a built-in webcam.
> >
> > I added my username per /etc/group to the "webcamd" group. I
> > did not add any further permissions or device configurations.
> >
> > For testing, install the "pwcview" package and start webcamd
> > manually as shown above. If the instance is running, /dev/video0
> > (and maybe more) should be present. With no further options, run
> >
> > % pwcview
> >
> > as a user, it should detect the appropriate video device on
> > its own; if it doesn't ("problem of multiple inputs"), you can
> > specify one:
> >
> > % pwcview -d /dev/video0
> >
> > Usually the 1st one (here: 0) should work.
> >
> > So if _that_ works, any other program should work as well.
> >
> > See "man webcamd" and "man pwcview" for details. :-)
> >
> >
> >
> >
> > --
> > Polytropon
> > Magdeburg, Germany
> > Happy FreeBSD user since 4.0
> > Andra moi ennepe, Mousa, ...
>
> Dear Sir,
>
> As always your help is very valuable and I have got it working. I
> applied your strategies
> I corrected the cuse4bsd_load="YES" to /boot/loader.conf [...]
The entry's name seems to depend on FreeBSD version. I have
a 12.0 system where no additional CUSE package is installed,
and the OS-provided CUSE, enabled by
cuse_enable="YES"
in /boot/loader.conf seems to be sufficient. Older FreeBSD
systems (probably in the era around FreeBSD 9) seemed to
require installing the "cuse4bsd-kmod" package and a different
entry name, i. e.,
cuse4bsd_enable="YES"
in /boot/loader.conf, which recent OS versions don't seem to
require anymore.
> [...] and I
> installed pcmview which
> was the one which detects the document viewer.
It's a convenient way to check basic working. By the way, you
can also use this to test "video grabbers" (video to USB con-
verters) which also use webcamd as input interface.
Fron your kldstat output (seems that your MUA has distorted the
output a little, but it's still readable):
> root at aceraspire:~ # kldstat
>
> Id Refs Address Size Name
>
> 1 58 0x800000 1ad6f60 kernel
>
> 2 2 0x22d7000 8ae4 libiconv.ko
>
> 3 1 0x22e0000 1310c fuse.ko
>
> 4 1 0x22f4000 a200 mmcsd.ko
>
> 5 1 0x2300000 dfa0 tmpfs.ko
>
> 6 1 0x230e000 b330 cuse.ko <------- THIS!
> [...]
The required module is already loaded.
> root at aceraspire:~ # cat /etc/rc.conf
> [...]
> webcamd_enable="YES"
Correct. You should probably add the _flags according to what
you found working during interactive testing so webcamd will
start with the right device - _if_ it starts at all... ;-)
> root at aceraspire:~ # /usr/local/sbin/webcamd -d ugen4.3 -i 0 -v 0 &
>
> [1] 1811
>
> root at aceraspire:~ # Webcamd is already running for ugen4.3.0
>
>
> [1] Exit 1 /usr/local/sbin/webcamd -d ugen4.3 -i 0 -v 0
>
> root at aceraspire:~ #
Does webcamd already run, and did it autodetect (!) the correct
USB device? Looks like it. Maybe a pleasant surprise that the
audodetection magic worked for once.
> olivares at aceraspire$ pwcview -d /dev/video0
>
> Webcam set to: 320x240 (sif) at 5 fps
Right, that is the console message you should see.
> I shall try again to make cheese work, but for now it is one that
> should work, or try kamerka again.
Definitely. You now know that it _basically_ works, so it's
probably just a matter of client program configuration.
On Fri, 11 Oct 2019 08:34:02 -0500, Antonio Olivares wrote:
> As a follow up I read a thread
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224493
> and I installed qt5 controls and webcamoid and it now works.
Maybe those should be declared as runtime dependencies and
then automatically installed by pkg?
Great to see you got it working! :-)
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list