i've added the following lines to my create container:
--device /dev/dri/renderD128 \
--device /dev/dri/card0 \
which i beleive are the required devices based on those devices existing on the host and from one of the media app docker container howto on hw acceleration - plex/jellyfin/emby. CPU is an AMD Althon3000G with vega3 graphics (2019 cpu - https://www.amd.com/en/products/apu/amd-athlon-3000g).
both devices appear present from within the ZM container:
Code: Select all
[root@a0c91a9a6722 /]# ll /dev/dri/renderD128
crw-rw-rw- 1 root printadmin 226, 128 Sep 18 08:48 /dev/dri/renderD128
[root@a0c91a9a6722 /]# ll /dev/dri/card0
crw-rw---- 1 root video 226, 0 Sep 18 08:48 /dev/dri/card0
Code: Select all
# ll /dev/dri/
...
crw-rw---- 1 root video 226, 0 Sep 11 13:36 card0
crw-rw-rw- 1 root render 226, 128 Sep 11 13:36 renderD128
ZM logs report 'ERR - Failed to create hwaccel device. Input/output error'. so something is wrong. not sure if it's permissions as card0 is undefined, renderD128 has global RW despite the group mismatch between container & host.
the manual at readthedocs.io doesnt have much info on this. I'm also not going to spend vast amounts of time on this; i've CPU down <10% for ZM usage so i probably wont see any benefit with getting this implemented and it's more out of curiosity with it. maybe if i add more cameras and/or increase FPS in the future then GPU offloading would be more noticeable.