by vaar » Wed Mar 19, 2025 4:08 pm
Updated to 6.12.19, now there *is* a /dev/video19, but does not seem to support whatever is required by moonlight-qt:
00:00:01 - FFmpeg: [hevc @ 0xaaaae45239c0] probe_video_device: path=/dev/video19 capabilities=0x4204000
00:00:01 - FFmpeg: [hevc @ 0xaaaae45239c0] /dev/video19: Buf caps 0x1d insufficient
and later:
00:00:01 - FFmpeg: [hevc @ 0xaaaae45239c0] Failed to find a V4L2 device for H265
00:00:01 - FFmpeg: [hevc @ 0xaaaae45239c0] Failed setup for format drm_prime: hwaccel initialisation returned error.
00:00:01 - FFmpeg: [hevc @ 0xaaaae45239c0] Format drm_prime not usable, retrying get_format() without it.
00:00:01 - FFmpeg: [hevc @ 0xaaaae45239c0] Error parsing NAL unit #3.
With 6.12.11:
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] probe_video_device: path=/dev/video19 capabilities=0x4204000
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] Adding: /dev/media0,/dev/video19 pix=0x35363253, type=10
and later:
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] Trying V4L2 devices: /dev/media0,/dev/video19
00:00:01 - FFmpeg: Dmabufs using Vidbuf
00:00:01 - FFmpeg: ctl_cma_new2: Not using dma_heap device /dev/dma_heap/vidbuf_cached: No such file or directory
00:00:01 - FFmpeg: ctl_cma_new2: Using dma_heap device /dev/dma_heap/linux,cma
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] Dmabufs opened - try dmabuf buffers
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] V4L2 HEVC stateless V4 probed successfully: driver v 0x60c0b
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] Slots=9: Reordering=2, threads=1, hw+=-1
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] frame_params: avctx=0xaaaac960fc80 ctx=0xaaaac99e6ae0 hw_frames_ctx=0xaaaac99baef0 hwfc=0xaaaac99fdc50 pool=(nil) width=1344 height=736 initial_pool_size=0
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] Failed to query ext id=0xa40a97, err=22
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] set_controls: Max slices 4096
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] set_controls: Entry point offsets 0
00:00:01 - FFmpeg: [hevc @ 0xaaaac960fc80] Hwaccel V4L2 HEVC stateless V4; devices: /dev/media0,/dev/video19; buffers: src DMABuf, dst DMABuf; swfmt=rpi4_10
... and moonlight works fine.