2021-02-13, 12:31
Hi folks,
I have started a migration project for my raspberry pi 3B, which was using hevc hw decode via mmal libraries on 5.4.x kernel before when compiled through the popcornmix newclock5 branch.
Now I have switched to kernel 5.10.y, compiled the vc4 kernel driver, added support for DRM, enabled udmabufs, dma_heaps, v4l2_mem2mem, rpivid_hevc, etc.
My config.txt uses:
dtoverlay=vc4-fkms-v3d,cma-size=0x14000000
dtoverlay=rpivid-v4l2
I have switched to the popcornmix GBM branch, so kodi is compiled for GLES and GBM windowing with internal ffmpeg (thus patched).
mesa is compiled to support vc4 videoCore only (do I also need v3d which is for rpi4?)
libdrm is compiled for vc4 and libkms
Kodi is setup to use pixel format drm_prime and v4l2 hevc hw decode. However for some reason, it does not pickup the hevc streams for hw decode and it uses software rendering:
h264 streams are being successfully decoded through hw decode: ffh264_v4l2m2m-drm_prime(HW):
Is it possible to hevc hw decode through DRM via v4l2 on raspberry pi 3? It works fine on raspberry pi 4.
Kodi log: https://kichukov.home.xs4all.nl/bug-repo...l/kodi.log
I have started a migration project for my raspberry pi 3B, which was using hevc hw decode via mmal libraries on 5.4.x kernel before when compiled through the popcornmix newclock5 branch.
Now I have switched to kernel 5.10.y, compiled the vc4 kernel driver, added support for DRM, enabled udmabufs, dma_heaps, v4l2_mem2mem, rpivid_hevc, etc.
My config.txt uses:
dtoverlay=vc4-fkms-v3d,cma-size=0x14000000
dtoverlay=rpivid-v4l2
I have switched to the popcornmix GBM branch, so kodi is compiled for GLES and GBM windowing with internal ffmpeg (thus patched).
mesa is compiled to support vc4 videoCore only (do I also need v3d which is for rpi4?)
libdrm is compiled for vc4 and libkms
Kodi is setup to use pixel format drm_prime and v4l2 hevc hw decode. However for some reason, it does not pickup the hevc streams for hw decode and it uses software rendering:
bash:CDVDVideoCodecDRMPRIME::Open - using decoder HEVC (High Efficiency Video Coding)
h264 streams are being successfully decoded through hw decode: ffh264_v4l2m2m-drm_prime(HW):
bash:CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper
Is it possible to hevc hw decode through DRM via v4l2 on raspberry pi 3? It works fine on raspberry pi 4.
Kodi log: https://kichukov.home.xs4all.nl/bug-repo...l/kodi.log