Maybe this is part of the problem? RPi 4: H.264 and HEVC hardware decoding · Issue #564 · NixOS/nixos-hardware · GitHub