It's a bit difficult to give a general answer, it depends on whether you want to play videos directly from the Pi or from a (Plex) server. The type of video file also plays a role. You can find a lot of information on the Kodinerds forum. For me, it works with a Plex server (QNAP TS-453B). If necessary, the files are converted by the Plex server and sent to Kodi. Kodi 19 handles HDR content better than Kodi 18.