jellyfin Hardware VAAPI decoding encoding LXC Proxmox

tested on: intel 8600 coffee lake

host ubuntu privileged
install vaapi

#/etc/pve/lxc/<ctnum>.conf
#proxmox 7 use cgroup2 - https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0#CGroupV2
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir

guest jellyfin
ls -lah /dev/dri
apt install vaapi intel-gpu-tools
vaapi
usermod -aG render jellyfin
usermod -aG render www-data
usermod -aG video jellyfin
usermod -aG video www-data
apt update
apt upgrade upgrade

web
admin – server – playback
transcoding hw acc intel qsv
enable decoding h264 hevc hevc10bit vp9 10bit
prefer os native
enable hw encoding
allow encoding hevc