I know FreeBSD better overall, which counts for something even if I can copy the firewall config over.
This is most unfortunate. I sincerely hope that intel and Plex will resolv this in the end. Been using Plex since 2008 and would very much like to continue to do so.
And this happens when I was finally going to upgrade my TrueNAS Core system to an Intel N100 CPU. I hate to say this, but I will have to consider moving to TrueNAS Scale.
This is incredibly frustrating - last year I went out of my way to rebuild a completely new server using the (carefully researched) best supported intel CPU for exactly this purpose, and now after many hours of trying to understand why my HW transcoding broke upon update Iβve come across this thread :\
The solution for me will be to dead-end plex on the last supported version - simply put Plex is not functional or useful in most use-cases without hardware transcoding. Does this leave any hw transcoding options left on FreeBSD?
Iβve even gone as far as to build/verify that libva is working with hardware accel within ffmpeg4 & 6 on this same FreeBSD machine, and it does. Iβd really rather not waste the money, hardware or energy on another physical machine only to run Plex - can we please have some kind of override to keep the functionality in place with existing supported hardware?
I also attempted to force Plex to use libva from ports (both 1.18 and 1.19) as well as set LIBVA_DRIVERS_PATH so that it finds the DRI drivers as needed. In all of these cases the hardware properly enumerates and initializes,
eg: (with no other changes other than export LIBVA_DRIVERS_PATH)
Jul 23, 2023 05:47:09.155 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] Codecs: hardware transcoding: testing API vaapi for device ββ ()
Jul 23, 2023 05:47:09.155 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Trying to use DRM render node for device 0.
Jul 23, 2023 05:47:09.155 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - libva: VA-API version 1.18.0
Jul 23, 2023 05:47:09.155 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - libva: Trying to open /usr/local/lib/dri/iHD_drv_video.so
Jul 23, 2023 05:47:09.155 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - libva: Found init function __vaDriverInit_1_18
Jul 23, 2023 05:47:09.161 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - libva: va_openDriver() returns 0
Jul 23, 2023 05:47:09.161 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Initialised VAAPI connection: version 1.18
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x41524742 β bgra.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x42475241 β argb.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x41424752 β rgba.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x52474241 β abgr.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x58524742 β bgr0.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x42475258 β 0rgb.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x58424752 β rgb0.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x52474258 β 0bgr.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30335241 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30334241 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30335258 β x2rgb10le.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30334258 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x36314752 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x56555941 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x56555958 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30303859 β gray.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x3231564e β nv12.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x3132564e β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x32595559 β yuyv422.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x59565955 β uyvy422.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x32315659 β yuv420p.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30323449 β yuv420p.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x50313134 β yuv411p.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x48323234 β yuv422p.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x56323234 β yuv440p.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x50343434 β yuv444p.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x33434d49 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30313050 β p010le.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x32313050 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x36313050 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30313259 β y210le.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x32313259 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x36313259 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x30313459 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x32313459 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x36313459 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x50424752 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Format 0x50524742 β unknown.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 22.4.3 (intel-media-22.4.3).
Jul 23, 2023 05:47:09.161 [0x19e662f9300] VERBOSE - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Driver not found in known nonstandard list, using standard behaviour.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Created surface 0.
Jul 23, 2023 05:47:09.161 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] [FFMPEG] - Direct mapping possible.
Jul 23, 2023 05:47:09.162 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
However, LIBVA_DRIVERS_PATH doesnβt seem to get passed through to the Transcoder:
Jul 23, 2023 05:47:09.163 [0x19e662f9300] DEBUG - [Req#c2/Transcode/71d7807c9bd7c78d-com-plexapp-android/JobRunner] Job running: EAE_ROOT=/tmp/pms-cf041573-c6fc-4f5f-abb4-42866a70aa0c/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS=β/usr/local/plexdata-plexpass/Plex\ Media\ Server/Codecs/8217c1c-4578-freebsd-x86_64/β LIBVA_DRIVERS_PATH= X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
J
Then as a result: ERROR - [Req#c4/Transcode/71d7807c9bd7c78d-com-plexapp-android/f3358f20-a46c-4444-b07d-7f1ae863e27e] [AVHWDeviceContext @ 0x2b40b3444440] Failed to initialise VAAPI connection: -1 (unknown libva error).
This worked fine just a few months ago - is there any workaround we can employ?
FreeBSD 13.2-RELEASE / Plex 1.32.5.7328
Warmly,
Lenore
I can confirm that passing through Intel UHD 630 to bhyve Debian VM works well. I am not ready to migrate to TrueNAS Scale.
Where can we go to plead our case for Intel to natively support FreeBSD (it seems like this is still the best option).
Or, as that seems like an unlikely event, who do we need to beg in the community to maintain patches?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.