Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-08 Thread Comète
$ ffmpeg -f v4l2 -list_formats all -i /dev/video1
ffmpeg version 4.4.3 Copyright (c) 2000-2022 the FFmpeg developers
  built with OpenBSD clang version 13.0.0
  configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
--disable-stripping --disable-indev=jack --disable-outdev=sdl2 
--enable-fontconfig --enable-frei0r --enable-gpl --enable-ladspa 
--enable-libaom --enable-libass --enable-libdav1d --enable-libfreetype 
--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
--enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libxml2 
--enable-libxvid --enable-libzimg --enable-nonfree --enable-openssl 
--enable-libvidstab --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' 
--extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --extra-ldsoflags= 
--mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
-Wno-redundant-decls'
  libavutil  56. 70.100 / 56. 70.100
  libavcodec 58.134.100 / 58.134.100
  libavformat58. 76.100 / 58. 76.100
  libavdevice58. 13.100 / 58. 13.100
  libavfilter 7.110.100 /  7.110.100
  libswscale  5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc55.  9.100 / 55.  9.100
[video4linux2,v4l2 @ 0xdfad921b000] Raw   : Unsupported :Unknown UC 
Format :
/dev/video1: Immediate exit requested


$ ffmpeg -f v4l2 -list_formats all -i /dev/video0
ffmpeg version 4.4.3 Copyright (c) 2000-2022 the FFmpeg developers
  built with OpenBSD clang version 13.0.0
  configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
--disable-stripping --disable-indev=jack --disable-outdev=sdl2 
--enable-fontconfig --enable-frei0r --enable-gpl --enable-ladspa 
--enable-libaom --enable-libass --enable-libdav1d --enable-libfreetype 
--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
--enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libxml2 
--enable-libxvid --enable-libzimg --enable-nonfree --enable-openssl 
--enable-libvidstab --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' 
--extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --extra-ldsoflags= 
--mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
-Wno-redundant-decls'
  libavutil  56. 70.100 / 56. 70.100
  libavcodec 58.134.100 / 58.134.100
  libavformat58. 76.100 / 58. 76.100
  libavdevice58. 13.100 / 58. 13.100
  libavfilter 7.110.100 /  7.110.100
  libswscale  5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc55.  9.100 / 55.  9.100
[video4linux2,v4l2 @ 0xe580ab7a000] Compressed:   mjpeg :
MJPEG : 1920x1080 320x180 320x240 352x288 424x240 640x360 640x480 848x480 
960x540 1280x720
[video4linux2,v4l2 @ 0xe580ab7a000] Raw   : yuyv422 : 
YUYV : 640x480 320x180 320x240 352x288 424x240 640x360 848x480 960x540 1280x720 
1920x1080
/dev/video0: Immediate exit requested



8 octobre 2023 11:45 "Bryan Steele"  a écrit:

> Morgan wrote:
> 
>> Hello,
>> 
>> $ video -q -f /dev/video1
>> video: /dev/video1 has no usable YUV encodings
>> 
>> $ video -s 1920x1080 -f /dev/video1
>> video: /dev/video1 has no usable YUV encodings
>> 
>> thanks for your suggestion
>> 
>> Morgan
> 
> Are there any non-YUV formats supported?
> 
> $ ffmpeg -f v4l2 -list_formats all -i /dev/video1
> 
> -Bryan.



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-08 Thread Bryan Steele
Morgan wrote:
> Hello,
>
> $ video -q -f /dev/video1
> video: /dev/video1 has no usable YUV encodings
>
> $ video -s 1920x1080 -f /dev/video1
> video: /dev/video1 has no usable YUV encodings
>
>
> thanks for your suggestion
>
> Morgan

Are there any non-YUV formats supported?

$ ffmpeg -f v4l2 -list_formats all -i /dev/video1

-Bryan.



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
It does nothing more, just a black window and no error returned on the terminal.




7 octobre 2023 21:25 "Crystal Kolipe"  a écrit:

> On Sat, Oct 07, 2023 at 07:02:23PM +, Comte wrote:
> 
>> $ video -q -f /dev/video1
>> video: /dev/video1 has no usable YUV encodings
>> 
>> $ video -s 1920x1080 -f /dev/video1
>> video: /dev/video1 has no usable YUV encodings
> 
> What does video -g -f /dev/video0 do?
> 
> (The -g flag being of interest here).
> 
> This error:
> 
>> On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
>> :Hi,
>> :
>> :$ video -f /dev/video0
>> :video: ioctl VIDIOC_DQBUF: Invalid argument
> 
> ... narrows it down quite a bit, but I'm still not sure why it's not working.



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Crystal Kolipe
On Sat, Oct 07, 2023 at 07:02:23PM +, Comte wrote:
> $ video -q -f /dev/video1
> video: /dev/video1 has no usable YUV encodings
> 
> $ video -s 1920x1080 -f /dev/video1
> video: /dev/video1 has no usable YUV encodings

What does video -g -f /dev/video0 do?

(The -g flag being of interest here).

This error:

> >> On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
> >> :Hi,
> >> :
> >> :$ video -f /dev/video0
> >> :video: ioctl VIDIOC_DQBUF: Invalid argument

... narrows it down quite a bit, but I'm still not sure why it's not working.



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
I thought that the webcam was broken but I've tested 
it with a live Debian 12 usb key and it works.




7 octobre 2023 21:02 "Comète"  a écrit:

> Hello,
> 
> $ video -q -f /dev/video1
> video: /dev/video1 has no usable YUV encodings
> 
> $ video -s 1920x1080 -f /dev/video1
> video: /dev/video1 has no usable YUV encodings
> 
> thanks for your suggestion
> 
> Morgan
> 
> 7 octobre 2023 18:56 "Marcus MERIGHI"  a écrit:
> 
>> Hello,
>> 
>> com...@geekandfree.org (Comète), 2023.10.07 (Sat) 17:02 (CEST):
>> 
>>> unfortunately, yes the slider is well opened and I can confirm that
>>> when it is closed no LED will be visible.
>> 
>> on my thinkpad X1 Carbon 5th Gen., /dev/video0 is the infrared camera,
>> /dev/video1 is the one I want.
>> 
>> video -s 1920x1080 -f /dev/video1
>> ^
>> gives me the best it can do, while
>> 
>> video -s 1920x1080 -f /dev/video0
>> ^
>> gives me a small, greenish, pixelated image.
>> 
>> Marcus
>> 
>>> 7 octobre 2023 15:06 "Peter Hessler"  a écrit:
>>> 
>>> A lot of the Thinkpad laptops have a physical switch that will
>>> cover/uncover the camera. Can you switch it to the other and try again?
>>> 
>>> -peter
>>> 
>>> On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
>>> :Hi,
>>> :
>>> :$ video -f /dev/video0
>>> :video: ioctl VIDIOC_DQBUF: Invalid argument
>>> :
>>> :the LED lights up near the camera and a black window is displayed...
>>> :
>>> :
>>> :I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam
>>> :
>>> :
>>> :then to answer Crystal:
>>> :
>>> :$ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0
>>> :ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers
>>> :built with OpenBSD clang version 13.0.0
>>> :configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
>>> --disable-stripping
>>> :--disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig 
>>> --enable-frei0r --ena
>>> :ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
>>> --enable-libfreetype
>>> :--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
>>> --ena
>>> :ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
>>> --enable-libvpx
>>> :--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
>>> --enable-libzimg --en
>>> :able-nonfree --enable-openssl --enable-libvidstab 
>>> --extra-cflags='-I/usr/local/include
>>> :-I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
>>> --extra-ldsofla
>>> :gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe 
>>> -g -Wno-redundant-decls'
>>> :libavutil 56. 70.100 / 56. 70.100
>>> :libavcodec 58.134.100 / 58.134.100
>>> :libavformat 58. 76.100 / 58. 76.100
>>> :libavdevice 58. 13.100 / 58. 13.100
>>> :libavfilter 7.110.100 / 7.110.100
>>> :libswscale 5. 9.100 / 5. 9.100
>>> :libswresample 3. 9.100 / 3. 9.100
>>> :libpostproc 55. 9.100 / 55. 9.100
>>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>>> :Input #0, video4linux2,v4l2, from '/dev/video0':
>>> :Duration: N/A, bitrate: 124416 kb/s
>>> :Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
>>> kb/s, 15 fps, 15 tbr,
>>> :1000k tbn, 1000k tbc
>>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>>> :
>>> :
>>> :and yes, to answer Jan:
>>> :
>>> :$ sysctl kern.video
>>> :kern.video.record=1
>>> :
>>> :
>>> :
>>> :Thanks a lot for your help.
>>> :
>>> :Morgan
>>> :
>>> :
>>> :7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:
>>> :
>>> :> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
>>> :>
>>> :>> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
>>> :>> The webcam seems well detected but no image is displayed...
>>> :>>
>>> :>> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
>>> :>>
>>> :>> # dmesg | grep "uvideo"
>>> :>> ^
>>> :>>
>>> :>> Please post a full dmesg next time.
>>> :>>
>>> :>> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony 
>>> Electronics Co.,Ltd. Integrated
>>> :>> Camera" rev 2.01/54.20 addr 3
>>> :>> video0 at uvideo0
>>> :>> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony 
>>> Electronics Co.,Ltd. Integrated
>>> :>> Camera" rev 2.01/54.20 addr 3
>>> :>> video1 at uvideo1
>>> :>>
>>> :>> However, this camera should almost certainly just work anyway.
>>> :>>
>>> :>> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
>>> :>> ^^^
>>> :>>
>>> :>> Why?
>>> :>
>>> :> Looks like Comte followed the console instructions at [1] to the letter.
>>> :> It seems to me that jumping right to ffplay recording isn't the best
>>> :> way for you to check the camera is working. Simplest way to test seems
>>> :> to me:
>>> :>
>>> :> $ video -f /dev/video0
>>> :>
>>> :> And then you 

Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
Hello,

$ video -q -f /dev/video1
video: /dev/video1 has no usable YUV encodings

$ video -s 1920x1080 -f /dev/video1
video: /dev/video1 has no usable YUV encodings


thanks for your suggestion

Morgan

7 octobre 2023 18:56 "Marcus MERIGHI"  a écrit:

> Hello, 
> 
> com...@geekandfree.org (Comète), 2023.10.07 (Sat) 17:02 (CEST):
> 
>> unfortunately, yes the slider is well opened and I can confirm that
>> when it is closed no LED will be visible.
> 
> on my thinkpad X1 Carbon 5th Gen., /dev/video0 is the infrared camera,
> /dev/video1 is the one I want.
> 
> video -s 1920x1080 -f /dev/video1
> ^
> gives me the best it can do, while
> 
> video -s 1920x1080 -f /dev/video0
> ^
> gives me a small, greenish, pixelated image.
> 
> Marcus
> 
>> 7 octobre 2023 15:06 "Peter Hessler"  a écrit:
>> 
>> A lot of the Thinkpad laptops have a physical switch that will
>> cover/uncover the camera. Can you switch it to the other and try again?
>> 
>> -peter
>> 
>> On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
>> :Hi,
>> :
>> :$ video -f /dev/video0
>> :video: ioctl VIDIOC_DQBUF: Invalid argument
>> :
>> :the LED lights up near the camera and a black window is displayed...
>> :
>> :
>> :I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam
>> :
>> :
>> :then to answer Crystal:
>> :
>> :$ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0
>> :ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers
>> :built with OpenBSD clang version 13.0.0
>> :configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
>> --disable-stripping
>> :--disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig 
>> --enable-frei0r --ena
>> :ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
>> --enable-libfreetype
>> :--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
>> --ena
>> :ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
>> --enable-libvpx
>> :--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
>> --enable-libzimg --en
>> :able-nonfree --enable-openssl --enable-libvidstab 
>> --extra-cflags='-I/usr/local/include
>> :-I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
>> --extra-ldsofla
>> :gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
>> -Wno-redundant-decls'
>> :libavutil 56. 70.100 / 56. 70.100
>> :libavcodec 58.134.100 / 58.134.100
>> :libavformat 58. 76.100 / 58. 76.100
>> :libavdevice 58. 13.100 / 58. 13.100
>> :libavfilter 7.110.100 / 7.110.100
>> :libswscale 5. 9.100 / 5. 9.100
>> :libswresample 3. 9.100 / 3. 9.100
>> :libpostproc 55. 9.100 / 55. 9.100
>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>> :Input #0, video4linux2,v4l2, from '/dev/video0':
>> :Duration: N/A, bitrate: 124416 kb/s
>> :Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
>> kb/s, 15 fps, 15 tbr,
>> :1000k tbn, 1000k tbc
>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>> :
>> :
>> :and yes, to answer Jan:
>> :
>> :$ sysctl kern.video
>> :kern.video.record=1
>> :
>> :
>> :
>> :Thanks a lot for your help.
>> :
>> :Morgan
>> :
>> :
>> :7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:
>> :
>> :> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
>> :>
>> :>> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
>> :>> The webcam seems well detected but no image is displayed...
>> :>>
>> :>> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
>> :>>
>> :>> # dmesg | grep "uvideo"
>> :>> ^
>> :>>
>> :>> Please post a full dmesg next time.
>> :>>
>> :>> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
>> Co.,Ltd. Integrated
>> :>> Camera" rev 2.01/54.20 addr 3
>> :>> video0 at uvideo0
>> :>> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
>> Co.,Ltd. Integrated
>> :>> Camera" rev 2.01/54.20 addr 3
>> :>> video1 at uvideo1
>> :>>
>> :>> However, this camera should almost certainly just work anyway.
>> :>>
>> :>> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
>> :>> ^^^
>> :>>
>> :>> Why?
>> :>
>> :> Looks like Comte followed the console instructions at [1] to the letter.
>> :> It seems to me that jumping right to ffplay recording isn't the best
>> :> way for you to check the camera is working. Simplest way to test seems
>> :> to me:
>> :>
>> :> $ video -f /dev/video0
>> :>
>> :> And then you should see a window with the video stream...
>> :>
>> :> [1] https://www.openbsd.org/faq/faq13.html#webcam
>> :
>> 
>> --
>> Do you realize how many holes there could be if people would just take
>> the time to take the dirt out of them?



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Marcus MERIGHI
Hello, 

com...@geekandfree.org (Comète), 2023.10.07 (Sat) 17:02 (CEST):
> unfortunately, yes the slider is well opened and I can confirm that
> when it is closed no LED will be visible.
 

on my thinkpad X1 Carbon 5th Gen., /dev/video0 is the infrared camera,
/dev/video1 is the one I want. 

video -s 1920x1080 -f /dev/video1
^
gives me the best it can do, while 

video -s 1920x1080 -f /dev/video0
^
gives me a small, greenish, pixelated image. 

Marcus

> 7 octobre 2023 15:06 "Peter Hessler"  a écrit:
> 
> > A lot of the Thinkpad laptops have a physical switch that will
> > cover/uncover the camera. Can you switch it to the other and try again?
> > 
> > -peter
> > 
> > On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
> > :Hi,
> > :
> > :$ video -f /dev/video0
> > :video: ioctl VIDIOC_DQBUF: Invalid argument
> > :
> > :the LED lights up near the camera and a black window is displayed...
> > :
> > :
> > :I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam
> > :
> > :
> > :then to answer Crystal:
> > :
> > :$ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0 
> > :ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers 
> > :built with OpenBSD clang version 13.0.0 
> > :configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
> > --disable-stripping
> > :--disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig 
> > --enable-frei0r --ena
> > :ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
> > --enable-libfreetype
> > :--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
> > --ena
> > :ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
> > --enable-libvpx
> > :--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
> > --enable-libzimg --en
> > :able-nonfree --enable-openssl --enable-libvidstab 
> > --extra-cflags='-I/usr/local/include
> > :-I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
> > --extra-ldsofla
> > :gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe 
> > -g -Wno-redundant-decls' 
> > :libavutil 56. 70.100 / 56. 70.100 
> > :libavcodec 58.134.100 / 58.134.100 
> > :libavformat 58. 76.100 / 58. 76.100 
> > :libavdevice 58. 13.100 / 58. 13.100 
> > :libavfilter 7.110.100 / 7.110.100 
> > :libswscale 5. 9.100 / 5. 9.100 
> > :libswresample 3. 9.100 / 3. 9.100 
> > :libpostproc 55. 9.100 / 55. 9.100 
> > :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
> > :Input #0, video4linux2,v4l2, from '/dev/video0': 
> > :Duration: N/A, bitrate: 124416 kb/s 
> > :Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
> > kb/s, 15 fps, 15 tbr,
> > :1000k tbn, 1000k tbc 
> > :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
> > :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
> > :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
> > :
> > :
> > :and yes, to answer Jan:
> > :
> > :$ sysctl kern.video
> > :kern.video.record=1
> > :
> > :
> > :
> > :Thanks a lot for your help.
> > :
> > :Morgan
> > :
> > :
> > :7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:
> > :
> > :> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
> > :> 
> > :>> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> > :>> The webcam seems well detected but no image is displayed...
> > :>> 
> > :>> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
> > :>> 
> > :>> # dmesg | grep "uvideo"
> > :>> ^
> > :>> 
> > :>> Please post a full dmesg next time.
> > :>> 
> > :>> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony 
> > Electronics Co.,Ltd. Integrated
> > :>> Camera" rev 2.01/54.20 addr 3
> > :>> video0 at uvideo0
> > :>> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony 
> > Electronics Co.,Ltd. Integrated
> > :>> Camera" rev 2.01/54.20 addr 3
> > :>> video1 at uvideo1
> > :>> 
> > :>> However, this camera should almost certainly just work anyway.
> > :>> 
> > :>> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
> > :>> ^^^
> > :>> 
> > :>> Why?
> > :> 
> > :> Looks like Comte followed the console instructions at [1] to the letter.
> > :> It seems to me that jumping right to ffplay recording isn't the best
> > :> way for you to check the camera is working. Simplest way to test seems
> > :> to me:
> > :> 
> > :> $ video -f /dev/video0
> > :> 
> > :> And then you should see a window with the video stream...
> > :> 
> > :> [1] https://www.openbsd.org/faq/faq13.html#webcam
> > :
> > 
> > -- 
> > Do you realize how many holes there could be if people would just take
> > the time to take the dirt out of them?
> 



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
unfortunately, yes the slider is well opened and I can confirm that when it is 
closed no LED will be visible.

Thanks

Morgan


7 octobre 2023 15:06 "Peter Hessler"  a écrit:

> A lot of the Thinkpad laptops have a physical switch that will
> cover/uncover the camera. Can you switch it to the other and try again?
> 
> -peter
> 
> On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
> :Hi,
> :
> :$ video -f /dev/video0
> :video: ioctl VIDIOC_DQBUF: Invalid argument
> :
> :the LED lights up near the camera and a black window is displayed...
> :
> :
> :I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam
> :
> :
> :then to answer Crystal:
> :
> :$ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0 
> :ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers 
> :built with OpenBSD clang version 13.0.0 
> :configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
> --disable-stripping
> :--disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig 
> --enable-frei0r --ena
> :ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
> --enable-libfreetype
> :--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
> --ena
> :ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
> --enable-libvpx
> :--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
> --enable-libzimg --en
> :able-nonfree --enable-openssl --enable-libvidstab 
> --extra-cflags='-I/usr/local/include
> :-I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
> --extra-ldsofla
> :gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
> -Wno-redundant-decls' 
> :libavutil 56. 70.100 / 56. 70.100 
> :libavcodec 58.134.100 / 58.134.100 
> :libavformat 58. 76.100 / 58. 76.100 
> :libavdevice 58. 13.100 / 58. 13.100 
> :libavfilter 7.110.100 / 7.110.100 
> :libswscale 5. 9.100 / 5. 9.100 
> :libswresample 3. 9.100 / 3. 9.100 
> :libpostproc 55. 9.100 / 55. 9.100 
> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
> :Input #0, video4linux2,v4l2, from '/dev/video0': 
> :Duration: N/A, bitrate: 124416 kb/s 
> :Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
> kb/s, 15 fps, 15 tbr,
> :1000k tbn, 1000k tbc 
> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
> :[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
> :
> :
> :and yes, to answer Jan:
> :
> :$ sysctl kern.video
> :kern.video.record=1
> :
> :
> :
> :Thanks a lot for your help.
> :
> :Morgan
> :
> :
> :7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:
> :
> :> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
> :> 
> :>> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> :>> The webcam seems well detected but no image is displayed...
> :>> 
> :>> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
> :>> 
> :>> # dmesg | grep "uvideo"
> :>> ^
> :>> 
> :>> Please post a full dmesg next time.
> :>> 
> :>> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
> Co.,Ltd. Integrated
> :>> Camera" rev 2.01/54.20 addr 3
> :>> video0 at uvideo0
> :>> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
> Co.,Ltd. Integrated
> :>> Camera" rev 2.01/54.20 addr 3
> :>> video1 at uvideo1
> :>> 
> :>> However, this camera should almost certainly just work anyway.
> :>> 
> :>> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
> :>> ^^^
> :>> 
> :>> Why?
> :> 
> :> Looks like Comte followed the console instructions at [1] to the letter.
> :> It seems to me that jumping right to ffplay recording isn't the best
> :> way for you to check the camera is working. Simplest way to test seems
> :> to me:
> :> 
> :> $ video -f /dev/video0
> :> 
> :> And then you should see a window with the video stream...
> :> 
> :> [1] https://www.openbsd.org/faq/faq13.html#webcam
> :
> 
> -- 
> Do you realize how many holes there could be if people would just take
> the time to take the dirt out of them?



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
Not better with libv4l package installed...

Thanks

Morgan


Le 7 octobre 2023 15:10:18 GMT+02:00, Thomas Frohwein  
a écrit :
>On Sat, Oct 07, 2023 at 12:53:12PM +, Comète wrote:
>> Hi,
>> 
>> $ video -f /dev/video0
>> video: ioctl VIDIOC_DQBUF: Invalid argument
>> 
>> the LED lights up near the camera and a black window is displayed...
>> 
>> 
>> I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam
>
>I'm not 100% sure about this, but maybe worth a try - see if installing
>libv4l from packages makes a difference:
>
># pkg_add libv4l
>
>> 
>> 
>> then to answer Crystal:
>> 
>> $ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0 
>> ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers 
>> built with OpenBSD clang version 13.0.0 
>> configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
>> --disable-stripping
>> --disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig 
>> --enable-frei0r --ena
>> ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
>> --enable-libfreetype
>> --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus 
>> --ena
>> ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
>> --enable-libvpx
>> --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
>> --enable-libzimg --en
>> able-nonfree --enable-openssl --enable-libvidstab 
>> --extra-cflags='-I/usr/local/include
>> -I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
>> --extra-ldsofla
>> gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
>> -Wno-redundant-decls' 
>> libavutil 56. 70.100 / 56. 70.100 
>> libavcodec 58.134.100 / 58.134.100 
>> libavformat 58. 76.100 / 58. 76.100 
>> libavdevice 58. 13.100 / 58. 13.100 
>> libavfilter 7.110.100 / 7.110.100 
>> libswscale 5. 9.100 / 5. 9.100 
>> libswresample 3. 9.100 / 3. 9.100 
>> libpostproc 55. 9.100 / 55. 9.100 
>> [video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
>> Input #0, video4linux2,v4l2, from '/dev/video0': 
>> Duration: N/A, bitrate: 124416 kb/s 
>> Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
>> kb/s, 15 fps, 15 tbr,
>> 1000k tbn, 1000k tbc 
>> [video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
>> [video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
>> [video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
>> 
>> 
>> and yes, to answer Jan:
>> 
>> $ sysctl kern.video
>> kern.video.record=1
>> 
>> 
>> 
>> Thanks a lot for your help.
>> 
>> Morgan
>> 
>> 
>> 7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:
>> 
>> > On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
>> > 
>> >> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
>> >> The webcam seems well detected but no image is displayed...
>> >> 
>> >> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
>> >> 
>> >> # dmesg | grep "uvideo"
>> >> ^
>> >> 
>> >> Please post a full dmesg next time.
>> >> 
>> >> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
>> >> Co.,Ltd. Integrated
>> >> Camera" rev 2.01/54.20 addr 3
>> >> video0 at uvideo0
>> >> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
>> >> Co.,Ltd. Integrated
>> >> Camera" rev 2.01/54.20 addr 3
>> >> video1 at uvideo1
>> >> 
>> >> However, this camera should almost certainly just work anyway.
>> >> 
>> >> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
>> >> ^^^
>> >> 
>> >> Why?
>> > 
>> > Looks like Comte followed the console instructions at [1] to the letter.
>> > It seems to me that jumping right to ffplay recording isn't the best
>> > way for you to check the camera is working. Simplest way to test seems
>> > to me:
>> > 
>> > $ video -f /dev/video0
>> > 
>> > And then you should see a window with the video stream...
>> > 
>> > [1] https://www.openbsd.org/faq/faq13.html#webcam



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Stuart Henderson
On 2023-10-07, Peter Hessler  wrote:
> A lot of the Thinkpad laptops have a physical switch that will
> cover/uncover the camera.

covers the visible light camera, anyway... not sure about the IR one.

though actually the "camera in use LED" no longer lights when that slider
is closed on mine.

>:video: ioctl VIDIOC_DQBUF: Invalid argument
>:the LED lights up near the camera and a black window is displayed...

just tried on my T14 and same there - same for video(1),
ffplay -i /dev/videoX and mpv av://v4l2:/dev/videoX.




Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Stuart Henderson
On 2023-10-07, Thomas Frohwein  wrote:
> Looks like Comte followed the console instructions at [1] to the letter.
> It seems to me that jumping right to ffplay recording isn't the best
> way for you to check the camera is working. Simplest way to test seems
> to me:
>
> $ video -f /dev/video0
>
> And then you should see a window with the video stream...

FWIW, camera format support in video(1) is a bit limited, ffplay (and vlc)
are able to handle other formats which may be needed by some cameras.


-- 
Please keep replies on the mailing list.



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Peter Hessler
A lot of the Thinkpad laptops have a physical switch that will
cover/uncover the camera.  Can you switch it to the other and try again?

-peter



On 2023 Oct 07 (Sat) at 12:53:12 + (+), Comète wrote:
:Hi,
:
:$ video -f /dev/video0
:video: ioctl VIDIOC_DQBUF: Invalid argument
:
:the LED lights up near the camera and a black window is displayed...
:
:
:I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam
:
:
:then to answer Crystal:
:
:$ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0 
:ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers 
:built with OpenBSD clang version 13.0.0 
:configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
--disable-stripping
:--disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig --enable-frei0r 
--ena
:ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
--enable-libfreetype
:--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --ena
:ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
--enable-libvpx
:--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-libzimg --en
:able-nonfree --enable-openssl --enable-libvidstab 
--extra-cflags='-I/usr/local/include
:-I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
--extra-ldsofla
:gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
-Wno-redundant-decls' 
:libavutil 56. 70.100 / 56. 70.100 
:libavcodec 58.134.100 / 58.134.100 
:libavformat 58. 76.100 / 58. 76.100 
:libavdevice 58. 13.100 / 58. 13.100 
:libavfilter 7.110.100 / 7.110.100 
:libswscale 5. 9.100 / 5. 9.100 
:libswresample 3. 9.100 / 3. 9.100 
:libpostproc 55. 9.100 / 55. 9.100 
:[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
:Input #0, video4linux2,v4l2, from '/dev/video0': 
:Duration: N/A, bitrate: 124416 kb/s 
:Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
kb/s, 15 fps, 15 tbr,
:1000k tbn, 1000k tbc 
:[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
:[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
:[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument
:
:
:and yes, to answer Jan:
:
:$ sysctl kern.video
:kern.video.record=1
:
:
:
:Thanks a lot for your help.
:
:Morgan
:
:
:7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:
:
:> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
:> 
:>> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
:>> The webcam seems well detected but no image is displayed...
:>> 
:>> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
:>> 
:>> # dmesg | grep "uvideo"
:>> ^
:>> 
:>> Please post a full dmesg next time.
:>> 
:>> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
Co.,Ltd. Integrated
:>> Camera" rev 2.01/54.20 addr 3
:>> video0 at uvideo0
:>> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
Co.,Ltd. Integrated
:>> Camera" rev 2.01/54.20 addr 3
:>> video1 at uvideo1
:>> 
:>> However, this camera should almost certainly just work anyway.
:>> 
:>> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
:>> ^^^
:>> 
:>> Why?
:> 
:> Looks like Comte followed the console instructions at [1] to the letter.
:> It seems to me that jumping right to ffplay recording isn't the best
:> way for you to check the camera is working. Simplest way to test seems
:> to me:
:> 
:> $ video -f /dev/video0
:> 
:> And then you should see a window with the video stream...
:> 
:> [1] https://www.openbsd.org/faq/faq13.html#webcam
:

-- 
Do you realize how many holes there could be if people would just take
the time to take the dirt out of them?



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
Hi,

$ video -f /dev/video0
video: ioctl VIDIOC_DQBUF: Invalid argument

the LED lights up near the camera and a black window is displayed...


I've strictly followed https://www.openbsd.org/faq/faq13.html#webcam


then to answer Crystal:

$ ffplay -f v4l2 -input_format yuyv422 -video_size 960x540 -i /dev/video0 
ffplay version 4.4.3 Copyright (c) 2003-2022 the FFmpeg developers 
built with OpenBSD clang version 13.0.0 
configuration: --enable-shared --arch=amd64 --cc=cc --enable-debug 
--disable-stripping
--disable-indev=jack --disable-outdev=sdl2 --enable-fontconfig --enable-frei0r 
--ena
ble-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libdav1d 
--enable-libfreetype
--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --ena
ble-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis 
--enable-libvpx
--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-libzimg --en
able-nonfree --enable-openssl --enable-libvidstab 
--extra-cflags='-I/usr/local/include
-I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' 
--extra-ldsofla
gs= --mandir=/usr/local/man --objcc=/usr/bin/false --optflags='-O2 -pipe -g 
-Wno-redundant-decls' 
libavutil 56. 70.100 / 56. 70.100 
libavcodec 58.134.100 / 58.134.100 
libavformat 58. 76.100 / 58. 76.100 
libavdevice 58. 13.100 / 58. 13.100 
libavfilter 7.110.100 / 7.110.100 
libswscale 5. 9.100 / 5. 9.100 
libswresample 3. 9.100 / 3. 9.100 
libpostproc 55. 9.100 / 55. 9.100 
[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
Input #0, video4linux2,v4l2, from '/dev/video0': 
Duration: N/A, bitrate: 124416 kb/s 
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 960x540, 124416 
kb/s, 15 fps, 15 tbr,
1000k tbn, 1000k tbc 
[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument 
[video4linux2,v4l2 @ 0x68aa563e800] ioctl(VIDIOC_DQBUF): Invalid argument


and yes, to answer Jan:

$ sysctl kern.video
kern.video.record=1



Thanks a lot for your help.

Morgan


7 octobre 2023 14:36 "Thomas Frohwein"  a écrit:

> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
> 
>> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
>> The webcam seems well detected but no image is displayed...
>> 
>> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
>> 
>> # dmesg | grep "uvideo"
>> ^
>> 
>> Please post a full dmesg next time.
>> 
>> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
>> Co.,Ltd. Integrated
>> Camera" rev 2.01/54.20 addr 3
>> video0 at uvideo0
>> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
>> Co.,Ltd. Integrated
>> Camera" rev 2.01/54.20 addr 3
>> video1 at uvideo1
>> 
>> However, this camera should almost certainly just work anyway.
>> 
>> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
>> ^^^
>> 
>> Why?
> 
> Looks like Comte followed the console instructions at [1] to the letter.
> It seems to me that jumping right to ffplay recording isn't the best
> way for you to check the camera is working. Simplest way to test seems
> to me:
> 
> $ video -f /dev/video0
> 
> And then you should see a window with the video stream...
> 
> [1] https://www.openbsd.org/faq/faq13.html#webcam



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Thomas Frohwein
On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote:
> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> > The webcam seems well detected but no image is displayed...
> 
> What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?
> 
> > # dmesg | grep "uvideo"
> ^
> 
> Please post a full dmesg next time.
> 
> > uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
> > Co.,Ltd. Integrated Camera" rev 2.01/54.20 addr 3
> > video0 at uvideo0
> > uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
> > Co.,Ltd. Integrated Camera" rev 2.01/54.20 addr 3
> > video1 at uvideo1
> 
> However, this camera should almost certainly just work anyway.
> 
> > $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
>^^^
> 
> Why?

Looks like Comte followed the console instructions at [1] to the letter.
It seems to me that jumping right to ffplay recording isn't the best
way for you to check the camera is working. Simplest way to test seems
to me:

$ video -f /dev/video0

And then you should see a window with the video stream...

[1] https://www.openbsd.org/faq/faq13.html#webcam



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Crystal Kolipe
On Sat, Oct 07, 2023 at 01:33:48PM +0200, Jan Stary wrote:
> On Oct 07 13:30:50, dco...@gmail.com wrote:
> > On Sat, Oct 7, 2023 at 1:26???PM Jan Stary  wrote:
> > >
> > > On Oct 07 07:08:21, kolip...@exoticsilicon.com wrote:
> > > > On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> > > > > The webcam seems well detected but no image is displayed...
> > >
> > > To be sure: you have kern.audio.record=1, right?
> > 
> > kern.video.record, not kern.audio.record.
> 
> ECOFFEE, sorry

His original mail said that he does have it enabled:

On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> # sysctl kern.video.record
> kern.video.record=1

I'm pretty sure that the issue is that he is invoking ffmpeg with
switches that expect mjpeg data from the camera, whereas the camera
actually provides raw YUV pixel data.

On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> # video -q -f /dev/video0
> video device /dev/video0:
>   encodings: yuy2
>   frame sizes (width x height, in pixels) and rates (in frames per second):
> 320x180: 30
> 320x240: 30
> 352x288: 30
> 424x240: 30
> 640x360: 30
> 640x480: 30
> 848x480: 20
> 960x540: 15
> 1280x720: 10
> 1920x1080: 5

These combinations of resolutions and framerates are typical of the
constraints of USB-2 bandwidth streaming YUV data.  If it really was mjpeg,
I'd expect 1920x1080 to be available at 30fps.



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Jan Stary
On Oct 07 13:30:50, dco...@gmail.com wrote:
> On Sat, Oct 7, 2023 at 1:26 PM Jan Stary  wrote:
> >
> > On Oct 07 07:08:21, kolip...@exoticsilicon.com wrote:
> > > On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> > > > The webcam seems well detected but no image is displayed...
> >
> > To be sure: you have kern.audio.record=1, right?
> 
> kern.video.record, not kern.audio.record.

ECOFFEE, sorry



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread David Coppa
On Sat, Oct 7, 2023 at 1:26 PM Jan Stary  wrote:
>
> On Oct 07 07:08:21, kolip...@exoticsilicon.com wrote:
> > On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> > > The webcam seems well detected but no image is displayed...
>
> To be sure: you have kern.audio.record=1, right?

kern.video.record, not kern.audio.record.

Ciao,
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Jan Stary
On Oct 07 07:08:21, kolip...@exoticsilicon.com wrote:
> On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> > The webcam seems well detected but no image is displayed...

To be sure: you have kern.audio.record=1, right?



Re: Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Crystal Kolipe
On Sat, Oct 07, 2023 at 08:51:36AM +, Comte wrote:
> The webcam seems well detected but no image is displayed...

What happens if you run /usr/X11R6/bin/video instead of using ffmpeg?

> # dmesg | grep "uvideo"
^

Please post a full dmesg next time.

> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
> Co.,Ltd. Integrated Camera" rev 2.01/54.20 addr 3
> video0 at uvideo0
> uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
> Co.,Ltd. Integrated Camera" rev 2.01/54.20 addr 3
> video1 at uvideo1

However, this camera should almost certainly just work anyway.

> $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video0
   ^^^

Why?



Webcam support on Lenovo Thinkpad T14 Gen3 (Intel)

2023-10-07 Thread Comète
Hello,

I've tried to used the integrated webcam on my brand new Thinkpad T14 on 
OpenBSD 7.3 without success. I've followed the FAQ.
The webcam seems well detected but no image is displayed...
This is what I get:

# uname -a
OpenBSD hyperion.my.domain 7.3 GENERIC#1072 amd64


# usbdevs -v

   
Controller /dev/usb0:   

 
addr 01: 8086: Intel, xHCI root hub 

 
 super speed, self powered, config 1, rev 1.00  

 
 driver: uhub0  

 
addr 02: 2109:0817 VIA Labs, Inc., USB3.0 Hub   

 
 super speed, self powered, config 1, rev 6.23, iSerial 0   

 
 driver: uhub2  

 
addr 03: 0bda:0411 Generic, USB3.2 Hub  

 
 super speed, self powered, config 1, rev 39.20 

 
 driver: uhub3  

 
addr 04: 152d:0578 JMicron, USB to ATA/ATAPI Bridge 

 
 super speed, power 224 mA, config 1, rev 2.14, iSerial 
0123456789ABCDEF
 
 driver: umass0
addr 05: 0bda:8153 Realtek, USB 10/100/1000 LAN
 super speed, power 72 mA, config 1, rev 30.00, iSerial 01
 driver: ure0
Controller /dev/usb1:
addr 01: 8086: Intel, xHCI root hub
 super speed, self powered, config 1, rev 1.00
 driver: uhub1
addr 02: 27c6:6594 Goodix Technology Co., Ltd., Goodix USB2.0 MISC
 full speed, power 100 mA, config 1, rev 1.00, iSerial 
UIDE2B30F1D__MOC_B0 
 driver: ugen0
addr 03: 04f2:b74f Chicony Electronics Co.,Ltd., Integrated Camera
 high speed, power 500 mA, config 1, rev 54.20, iSerial 0001
 driver: uvideo0
 driver: uvideo1
 driver: ugen1
addr 04: 2109:2817 VIA Labs, Inc., USB2.0 Hub
 high speed, self powered, config 1, rev 6.23, iSerial 0
 driver: uhub4
addr 05: 1a40:0801 Terminus Technology, USB 2.0 Hub
 high speed, self powered, config 1, rev 1.00
 driver: uhub5
addr 06: 03f0:1a4a Lite-On Technology Corp., HP Wireless Slim Keyboard - Skylab 
EU
 full speed, power 100 mA, config 1, rev 0.66
 driver: uhidev0
 driver: uhidev1
 driver: uhidev2
addr 07: 19f7:0015 R\M-XDE Microphones, R\M-XDE NT-USB Mini
 full speed, power 100 mA, config 1, rev 1.18, iSerial 45803936
 driver: uaudio0
 driver: uhidev3
addr 08: 0bda:5411 Generic, USB2.1 Hub
 high speed, self powered, config 1, rev 39.20
 driver: uhub6
addr 09: 0bda:1100 Realtek, HID Device
 high speed, self powered, config 1, rev 1.01
 driver: uhidev4
addr 10: 2109:8884 VIA Labs, Inc., USB Billboard Device
 high speed, self powered, config 1, rev 0.01, iSerial 0001
 driver: ugen2
addr 11: 8087:0033 Intel, Bluetooth
 full speed, self powered, config 1, rev 0.00
 driver: ugen3


# sysctl kern.video.record
kern.video.record=1

# dmesg | grep "uvideo"
uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics 
Co.,Ltd. Integrated Camera" rev 2.01/54.20 addr 3
video0 at uvideo0
uvideo1 at uhub1 port 4 configuration 1 interface 2 "Chicony Electronics 
Co.,Ltd. Integrated Camera" rev 2.01/54.20 addr 3
video1 at uvideo1

# video -q -f /dev/video0
video device /dev/video0:
  encodings: yuy2
  frame sizes (width x height, in pixels) and rates (in frames per second):
320x180: 30
320x240: 30
352x288: 30