Hello,
Appear to have found a bug...
Running bullseye on CMA with Waveshare I/O board. Using Pi HQ camera. libcamera-hello works, but vlc (VLC media player - 3.0.20 Vetinari) hangs after selecting capture device /dev/video0.
vlc.log fills with "v4l2 debug: unknown frame intervals: Inappropriate ioctl for device" until the vlc window is closed.
Here's a bunch of info:
pi@CM4:~ $ uname -ar
Linux CM4 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
pi@CM4:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
pi@CM4:~ $ libcamera-hello -t 0
Made X/EGL preview window
[0:26:46.200848676] [4897] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f
[0:26:46.268902688] [4903] INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:26:46.268996020] [4903] INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:26:46.270970076] [4897] INFO Camera camera.cpp:1033 configuring streams: (0) 2028x1520-YUV420
[0:26:46.271571157] [4903] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
(video displays in window - looks fine)
pi@CM4:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12
/dev/video18
/dev/video31
/dev/media4
bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/media1
/dev/media2
unicam (platform:fe801000.csi):
/dev/video0
/dev/video1
/dev/media0
rpivid (platform:rpivid):
/dev/video19
/dev/media3
from vlc.log:
main debug: processing request item: v4l2:///dev/video0, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index 0
main debug: starting playback of new item
main debug: resyncing on v4l2:///dev/video0
main debug: v4l2:///dev/video0 is at 0
main debug: creating new input thread
main debug: Creating an input for 'v4l2:///dev/video0'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `v4l2:///dev/video0' gives access `v4l2' demux `any' path `/dev/video0'
main debug: creating demux: access='v4l2' demux='any' location='/dev/video0' file='/dev/video0'
main debug: looking for access_demux module matching "v4l2": 19 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
qt debug: IM: Setting an input
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/aarch64-linux-gnu/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
v4l2 debug: opening device '/dev/video0'
v4l2 debug: device unicam using driver unicam (version 6.1.21) on platform:fe801000.csi
v4l2 debug: with capabilities 0x25200001 (overall 0xA5A00001)
v4l2 debug: video input unicam-image (0) is camera
v4l2 debug: selected input 0
v4l2 debug: no video standard selection
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
v4l2 debug: no tuning required (analog baseband input)
v4l2 debug: no audio input available
lua debug: Trying Lua scripts in /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art
v4l2 debug: supports raw format YUYV (YUY2): YUYV 4:2:2
v4l2 debug: supports raw format UYVY (UYVY): UYVY 4:2:2
v4l2 debug: supports raw format YVYU (YVYU): YVYU 4:2:2
v4l2 debug: supports raw format VYUY (VYUY): VYUY 4:2:2
v4l2 debug: supports raw format RGBP (RV16): 16-bit RGB 5-6-5
v4l2 debug: supports raw format RGBR (N.A.): 16-bit RGB 5-6-5 BE
v4l2 debug: supports raw format RGBO (RV15): 16-bit A/XRGB 1-5-5-5
v4l2 debug: supports raw format RGBQ (N.A.): 16-bit A/XRGB 1-5-5-5 BE
lua debug: Trying Lua playlist script /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
v4l2 debug: supports raw format RGB3 (RV24): 24-bit RGB 8-8-8
v4l2 debug: supports raw format BGR3 (RV24): 24-bit BGR 8-8-8
v4l2 debug: supports raw format RGB4 (RV32): 32-bit A/XRGB 8-8-8-8
v4l2 debug: supports raw format BA81 (N.A.): 8-bit Bayer BGBG/GRGR
v4l2 debug: supports raw format GBRG (N.A.): 8-bit Bayer GBGB/RGRG
v4l2 debug: supports raw format GRBG (N.A.): 8-bit Bayer GRGR/BGBG
v4l2 debug: supports raw format RGGB (N.A.): 8-bit Bayer RGRG/GBGB
v4l2 debug: supports raw format pBAA (N.A.): 10-bit Bayer BGBG/GRGR Packed
v4l2 debug: supports raw format BG10 (N.A.): 10-bit Bayer BGBG/GRGR
v4l2 debug: supports raw format pGAA (N.A.): 10-bit Bayer GBGB/RGRG Packed
v4l2 debug: supports raw format GB10 (N.A.): 10-bit Bayer GBGB/RGRG
v4l2 debug: supports raw format pgAA (N.A.): 10-bit Bayer GRGR/BGBG Packed
v4l2 debug: supports raw format BA10 (N.A.): 10-bit Bayer GRGR/BGBG
v4l2 debug: supports raw format pRAA (N.A.): 10-bit Bayer RGRG/GBGB Packed
v4l2 debug: supports raw format RG10 (N.A.): 10-bit Bayer RGRG/GBGB
v4l2 debug: supports raw format pBCC (N.A.): 12-bit Bayer BGBG/GRGR Packed
v4l2 debug: supports raw format BG12 (N.A.): 12-bit Bayer BGBG/GRGR
v4l2 debug: supports raw format pGCC (N.A.): 12-bit Bayer GBGB/RGRG Packed
v4l2 debug: supports raw format GB12 (N.A.): 12-bit Bayer GBGB/RGRG
v4l2 debug: supports raw format pgCC (N.A.): 12-bit Bayer GRGR/BGBG Packed
v4l2 debug: supports raw format BA12 (N.A.): 12-bit Bayer GRGR/BGBG
v4l2 debug: supports raw format pRCC (N.A.): 12-bit Bayer RGRG/GBGB Packed
v4l2 debug: supports raw format RG12 (N.A.): 12-bit Bayer RGRG/GBGB
v4l2 debug: supports raw format pBEE (N.A.): 14-bit Bayer BGBG/GRGR Packed
v4l2 debug: supports raw format BG14 (N.A.): 14-bit Bayer BGBG/GRGR
v4l2 debug: supports raw format pGEE (N.A.): 14-bit Bayer GBGB/RGRG Packed
v4l2 debug: supports raw format GB14 (N.A.): 14-bit Bayer GBGB/RGRG
v4l2 debug: supports raw format pgEE (N.A.): 14-bit Bayer GRGR/BGBG Packed
v4l2 debug: supports raw format GR14 (N.A.): 14-bit Bayer GRGR/BGBG
lua debug: skipping script (unmatched scope) /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
v4l2 debug: supports raw format pREE (N.A.): 14-bit Bayer RGRG/GBGB Packed
v4l2 debug: supports raw format RG14 (N.A.): 14-bit Bayer RGRG/GBGB
v4l2 debug: supports raw format GREY (GREY): 8-bit Greyscale
lua debug: Trying Lua playlist script /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
v4l2 debug: supports raw format Y10P (N.A.): 10-bit Greyscale (MIPI Packed)
v4l2 debug: supports raw format Y10 (N.A.): 10-bit Greyscale
v4l2 debug: supports raw format Y12P (N.A.): 12-bit Greyscale (MIPI Packed)
v4l2 debug: supports raw format Y12 (N.A.): 12-bit Greyscale
v4l2 debug: supports raw format Y14P (N.A.): 14-bit Greyscale (MIPI Packed)
v4l2 debug: supports raw format Y14 (N.A.): 14-bit Greyscale
v4l2 debug: emulates raw format YU12 (I420): YU12
v4l2 debug: emulates raw format YV12 (YV12): YV12
v4l2 debug: selected format YUYV (YUY2)
v4l2 debug: requested frame internal: 1/60
v4l2 debug: frame sizes from 16x16 to 16376x16376 supported
v4l2 debug: with 1x1 steps
v4l2 debug: unknown frame intervals: Inappropriate ioctl for device
... keeps repeating until vlc window is closed ...