On Tue, 20 Feb 2024 11:08:21 +0100,
Kirill A. Korinsky wrote:
> 
> Anyway, I'll try to reserve some time to dig into cam with hope that
> this nice screen will be fully functional on OpenBSD-7.5.
> 

BTW with the last patch behaviour seems a bit improved.

~ $ video -q -f /dev/video1      
video device /dev/video1:
  encodings: uyvy
  frame sizes (width x height, in pixels) and rates (in frames per second):
        320x240: 30, 29, 29, 28, 27, 26, 25, 24, 23, 23, 22, 21, 20, 19, 18, 
17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        640x480: 30, 29, 29, 28, 27, 26, 25, 24, 23, 23, 22, 21, 20, 19, 18, 
17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
  controls: brightness, contrast, saturation, gain, gamma, sharpness, 
white_balance_temperature, backlight_compensation
~ $ ffplay -f v4l2 -list_formats all -i /dev/video1
ffplay version 4.4.4 Copyright (c) 2003-2023 the FFmpeg developers
  built with OpenBSD clang version 16.0.6
  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
  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 @ 0xcf665842000] Raw       :     uyvy422 :                 
UYVY : 640x480 320x240
[video4linux2,v4l2 @ 0xcf665842000] Compressed:       mjpeg :                
MJPEG : 1920x1080 1280x720 1024x768 640x480 320x240
/dev/video1: Immediate exit requestedB vq=    0KB sq=    0B f=0/0   
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
~ $ ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -i /dev/video1
ffplay version 4.4.4 Copyright (c) 2003-2023 the FFmpeg developers
  built with OpenBSD clang version 16.0.6
  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
  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 @ 0x7429b316000] ioctl(VIDIOC_DQBUF): Invalid argument
[video4linux2,v4l2 @ 0x7429b316000] Could not find codec parameters for stream 
0 (Video: mjpeg, none(bt470bg/unknown/unknown), 1280x720): unspecified pixel 
format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' 
(5000000) options
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 1280x720, 30 fps, 
30 tbr, 1000k tbn, 1000k tbc
[video4linux2,v4l2 @ 0x7429b316000] ioctl(VIDIOC_DQBUF): Invalid argument
[video4linux2,v4l2 @ 0x7429b316000] ioctl(VIDIOC_DQBUF): Invalid argument
[video4linux2,v4l2 @ 0x7429b316000] ioctl(VIDIOC_DQBUF): Invalid argument
[video4linux2,v4l2 @ 0x7429b316000] ioctl(VIDIOC_DQBUF): Invalid argument
^C  nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   

It stil frozen after C-c and if I deattach the display, it will be
unstack.

Anyway, before I never saw errors related to ioctl, and it was fronzen
on this stage.

Thus, now it can produce multiple ioctl lines, and is frozen only after
C-c. So, something was changed in the right direction.

-- 
wbr, Kirill

Reply via email to