Proxmox LXC Intel Quick Sync Transcode for Plex
Plex, Emby or Jellyfin can transcode media files on the fly to watch them with a Browser.
By default they use the CPU which adds a lot of overhead.
All Intel CPU’s since Sandy Bridge released in 2011 have hardware acceleration for H.264 built into the integrated GPU.
So if your Intel CPU supports Quick Sync you can speed up transcoding and reduce load as well as power usage.
Proxmox by default does not give LXC containers access to the GPU.
Add the following to your LXC configuration file in order to allow it.
nano /etc/pve/lxc/<container id>.conf
lxc.cgroup.devices.allow: c 226:0 rwm lxc.cgroup.devices.allow: c 226:128 rwm lxc.cgroup.devices.allow: c 29:0 rwm lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
If you use Docker within LXC recreate your Plex container with the following argument
Plex will now have access to Intel Quick Sync using /dev/dri/renderD128
Just enable “Use hardware acceleration” in Transcoder Settings.