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" <mcmer-open...@tor.at> 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" <phess...@theapt.org> 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 +0000 (+0000), 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" <tfrohw...@fastmail.com> a écrit: >> : >> :> On Sat, Oct 07, 2023 at 07:08:21AM -0300, Crystal Kolipe wrote: >> :> >> :>> On Sat, Oct 07, 2023 at 08:51:36AM +0000, 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?