Linuxserver.io/Jellyfin on old Nvidia GPU

hi, im trying to make hardware acceleration work on old mac mini which runs ubuntu server 20.04 via linuxserver container
using VAAPI since gpu is old nvidia geforce 320m chip which isnt supported by nvidia-docker (latest proprietary driver is 340 ver) so NVENC is out of question

looks like mesa driver works

error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.6.0)
vainfo: Driver version: Mesa Gallium driver 21.3.1 - kisak-mesa PPA for NVAF
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

but im getting the error from container

Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[hevc @ 0x55d240403280] No support for codec hevc profile 1.
[hevc @ 0x55d240403280] Failed setup for format vaapi_vld: hwaccel initialisation returned error.
[h264_vaapi @ 0x55d24041b080] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x55d240407540] Qavg: 65536.000
[aac @ 0x55d240407540] 2 frames left in the queue on closing
Conversion failed!

and ubuntu gives

nouveau 0000:05:00.0: msvld: unable to load firmware data
nouveau 0000:05:00.0: msvld: init failed, -19

would appreciate assistance. thanks