Has anyone gotten nvenc working with the Memories app? nvenc works just fine outside of Nextcloud

I finally got my bare metal Nextcloud server up and running after weeks of trial and error. However I still cannot seem to get the transcoder in Memories to work with NVENC, and at this point I have no idea why.

I did open an issue on GitHub but I wanted to ask here as I’m sure I cant be the only person using nvenc with this awesome app. Oh, and yes I have changed host systems several times over the last month.

Im running on Arch Linux.
NC-25.0.2,
Apache
PHP8.1

GPU: Quadro P400
Driver 525.78.01
CUDA 12.0
ffmpeg version n5.1.2

nvenc in ffmpeg works just fine from the cli but throws an error when using Memories. The output of the go-vod.log is;

2023/01/09 19:29:39 ffmpeg-error: [AVHWDeviceContext @ 0x56423212bcc0] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2023/01/09 19:29:39 ffmpeg-error: Device creation failed: -542398533.
2023/01/09 19:29:39 ffmpeg-error: [hevc @ 0x56423212b480] No device available for decoder: device type cuda needed for codec hevc.
2023/01/09 19:29:39 ffmpeg-error: Device setup failed for decoder on input stream #0:0 : Generic error in an external library