NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: web-camera



Here. I saw something interesting. ALSO, I apparently have something
to fix on the
kernel level.

[     3.281559] uvideo0 at uhub1 port 6 configuration 1 interface 0:
Logitech (0x46d) product 0807 (0x807), rev 2.00/0.09, addr 1
[     3.281559] video0 at uvideo0: Logitech (0x46d) product 0807
(0x807), rev 2.00/0.09, addr 1
[     3.281559] uaudio0 at uhub1 port 6 configuration 1 interface 2
[     3.281559] uaudio0: Logitech (0x46d) product 0807 (0x807), rev
2.00/0.09, addr 1
[     3.291559] uaudio0: audio rev 1.00
[     3.291559] audio1 at uaudio0: capture
[     3.291559] audio1: slinear_le:16 1ch 48000Hz, blk 11760 bytes
(122.5ms) for recording


[     6.501560] uhidev1 at uhub2 port 2 configuration 1 interface 1
[     6.501560] uhidev1: Logitech (0x46d) USB Receiver (0xc52b), rev
2.00/12.11, addr 4, iclass 3/1
[     6.501560] uhidev1: 8 report ids
[     6.501560] ums0 at uhidev1 reportid 2: 16 buttons, W and Z dirs
[     6.501560] wsmouse0 at ums0 mux 0
[     6.501560] uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
[     6.501560] uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0
[     6.501560] uhid2 at uhidev1 reportid 8: input=1, output=0, feature=0
[     6.501560] uhidev2 at uhub2 port 2 configuration 1 interface 2
[     6.501560] uhidev2: Logitech (0x46d) USB Receiver (0xc52b), rev
2.00/12.11, addr 4, iclass 3/0
[     6.511559] uhidev2: 33 report ids
[     6.511559] uhid3 at uhidev2 reportid 16: input=6, output=6, feature=0
[     6.511559] uhid4 at uhidev2 reportid 17: input=19, output=19, feature=0
[     6.511559] uhid5 at uhidev2 reportid 32: input=14, output=14, feature=0
[     6.511559] uhid6 at uhidev2 reportid 33: input=31, output=31, feature=0


[  2404.381560] audio1(uaudio0): trigger_input failed: errno=5
[  2404.571561] audio1(uaudio0): trigger_input failed: errno=5
[  8767.981559] audio1(uaudio0): trigger_input failed: errno=5
[  8767.981559] audio1(uaudio0): trigger_input failed: errno=5
[  8779.421559] audio1(uaudio0): trigger_input failed: errno=5
[  8779.421559] audio1(uaudio0): trigger_input failed: errno=5
[  8780.541559] audio1(uaudio0): trigger_input failed: errno=5
[  8780.541559] audio1(uaudio0): trigger_input failed: errno=5
[  8800.591559] audio1(uaudio0): trigger_input failed: errno=5
[  8800.591559] audio1(uaudio0): trigger_input failed: errno=5
[  9168.781559] audio1(uaudio0): trigger_input failed: errno=5
[  9168.781559] audio1(uaudio0): trigger_input failed: errno=5
[  9193.551559] audio1(uaudio0): trigger_input failed: errno=5
[  9193.551559] audio1(uaudio0): trigger_input failed: errno=5
[  9206.781559] audio1(uaudio0): trigger_input failed: errno=5
[  9206.781559] audio1(uaudio0): trigger_input failed: errno=5
[  9275.351559] audio1(uaudio0): trigger_input failed: errno=5
[  9275.351559] audio1(uaudio0): trigger_input failed: errno=5
[  9405.651559] audio1(uaudio0): trigger_input failed: errno=5
[  9405.661561] audio1(uaudio0): trigger_input failed: errno=5
[  9436.761559] audio1(uaudio0): trigger_input failed: errno=5
[  9436.761559] audio1(uaudio0): trigger_input failed: errno=5
[  9449.411690] audio1(uaudio0): trigger_input failed: errno=5
[  9449.411690] audio1(uaudio0): trigger_input failed: errno=5
[  9483.551559] audio1(uaudio0): trigger_input failed: errno=5
[  9483.551559] audio1(uaudio0): trigger_input failed: errno=5


Notice this line:


 [  3.281559] uaudio0: Logitech (0x46d) product 0807 (0x807), rev
2.00/0.09, addr 1

      [ 10305.047668] uaudio0: Logitech (0x046d) product 0819 (0x0819), rev
        2.00/0.10, addr 2

My line, [  3.281559]. It says "product 0807". We have 2 different cameras?
The last block: (uaudio0): trigger_input failed . What caused this? This is a
GENERIC kernel config. I renamed it and checked it into cvs. I avoid messing
up the original ...

On Tue, Jun 15, 2021 at 10:50 PM RVP <rvp%sdf.org@localhost> wrote:
>
> On Tue, 15 Jun 2021, Todd Gruhn wrote:
>
> > I got pkgsrc-wip installed. Ideas here?
> >
>
> Assuming we're still discussing your webcam woes:
>
> I tried out 2 USB webcams (the built-in one and a very old Logitech
> that I had lying around) and both worked fine on 9.99.82:
>
> $ dmesg | tail
> [    20.157756] cpu 0: ucode 0x15->0x21
> [    20.157756] cpu 1: ucode 0x15->0x21
> [ 10304.957668] uvideo0 at uhub1 port 1 configuration 1 interface 0:
> Logitech (0x046d) product 0819 (0x0819), rev 2.00/0.10, addr 2
> [ 10305.047668] video0 at uvideo0: Logitech (0x046d) product 0819
> (0x0819), rev 2.00/0.10, addr 2
> [ 10305.047668] uaudio0 at uhub1 port 1 configuration 1 interface 2
> [ 10305.047668] uaudio0: Logitech (0x046d) product 0819 (0x0819), rev
> 2.00/0.10, addr 2
> [ 10305.057668] uaudio0: audio rev 1.00
> [ 10305.057668] audio1 at uaudio0: capture
> [ 10305.057668] audio1: slinear_le:16 1ch 48000Hz, blk 11760 bytes
> (122.5ms) for recording
>
>
>
> Using mpv (with the params. taken straight from the man-page):
>
> $ mpv --profile=low-latency --untimed av://v4l2:/dev/video0
> [ffmpeg/demuxer] video4linux2,v4l2: Time per frame unknown
>   (+) Video --vid=1 (rawvideo 640x480)
> [autoconvert] Converting yuyv422 -> yuv422p
> VO: [gpu] 640x480 yuv422p
> V: 451054:43:16 / 451054:43:16 (100%)
> [ffmpeg/demuxer] video4linux2,v4l2: Some buffers are still owned by the
> caller on close.
> [ffmpeg] ioctl(VIDIOC_QBUF): Bad file descriptor
>
> Exiting... (Quit)
>
>
>
> And, ffplay4, which was laggier than mpv:
>
> $ ffplay4 /dev/video0
> ...
> [video4linux2,v4l2 @ 0x7586ec46a000] Time per frame unknown f=0/0
> Input #0, video4linux2,v4l2, from '/dev/video0':B sq=    0B f=0/0
>    Duration: N/A, start: 1623797018.093746, bitrate: N/A
>      Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 30
> tbr, 1000k tbn, 1000k tbc
> 1623797022.84 M-V:  0.020 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
>
> Try passing an explicit pixel format (yuyv422: very common) to ffplay:
>
> $ ffplay4 -f v4l2 -pixel_format yuyv422 /dev/video0
>
>
> -RVP


Home | Main Index | Thread Index | Old Index