Agster
April 3, 2019, 2:53pm
21
@ChuckPa so I just updated to Ubuntu 19.04 Beta. Good news it recognizes the iGPU!
However still no hardware transcoding in Plex. Do we need to wait for an update to Plex as well to support this?
#uname -r
5.0.0-8-generic
#sudo vainfo
[sudo] password for thando:
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Intel i965 driver for IntelĀ® Coffee Lake - 2.3.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSlice
VAProfileVP9Profile2 : VAEntrypointVLD
Agster
April 3, 2019, 2:55pm
22
Great idea! I just updated to Ubuntu 19.04 kernel 5.0.0-8. The Kernel recognizes the Intel UHD 630 now. However Plex still wonāt do Hardware acceleration.
Well, now itās time to look at the logs.
Debug on Verbose off
Save and restart Plex
Play something that transcodes, wait 30 seconds and use the download logs under troubleshooting to make the zip file to upload.
Agster
April 3, 2019, 3:22pm
24
Here is a snippet of the error. Also full logs attached.
Apr 03, 2019 11:17:04.044 [0x7f26f0af1700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Apr 03, 2019 11:17:04.044 [0x7f26f0af1700] WARN - avcodec_open2 returned -1313558101 for encoder āh264_nvencā
Apr 03, 2019 11:17:04.044 [0x7f26f0af1700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Apr 03, 2019 11:17:04.045 [0x7f26f0af1700] ERROR - [FFMPEG] - libva: /usr/lib/plexmediaserver/lib/dri/i965_drv_video.so init failed
Apr 03, 2019 11:17:04.045 [0x7f26f0af1700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Apr 03, 2019 11:17:04.045 [0x7f26f0af1700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Plex Media Server Logs_2019-04-03_11-18-08.zip (2.8 MB)
Unfortunately there is nothing which I can report to look at regarding Ubuntu 19.04 beta . Between the end of any OS beta and the first set of updates, a LOT of changes are going to happen. We really canāt look at anything until itās known stable. (like climbing onto speeding train⦠almost impossible )
Agster
April 3, 2019, 3:35pm
26
Darn it I shouldnāt have told you
I did include the snippet from the logs of the error in the above post.
I would have looked at your logs and seen the truth anyway
i have alerted the team. No reply yet but suspect they already know about iHD drv
Are you using the shell script ātranscoder2.shā to enable nvenc?
This isnāt an nVidia issue. This is an Intel ASIC initialization issue in VA-API
Agster
April 3, 2019, 3:37pm
30
No I am not. I do not have an NVIDIA card. Just Intel UHD 630.
Unusual to see it try libcuda before libva.
I was concerned that Ubuntu 19 has Application Permission Control would somehow block Plex.
All the recent versions look for the nVidia encoder first. I donāt understand why either.
Agster
April 20, 2019, 9:53pm
33
@ChuckPa
I have installed Ubuntu 19.04 and still having issues with Hardware Transcoding. Is there anything I can do?
Plex Media Server Logs_2019-04-20_17-31-03.zip (3.7 MB)
Apr 20, 2019 17:29:38.533 [0x7fd9f8c56700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Apr 20, 2019 17:29:38.534 [0x7fd9f8c56700] WARN - avcodec_open2 returned -1313558101 for encoder 'h264_nvenc'
Apr 20, 2019 17:29:38.534 [0x7fd9f8c56700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Apr 20, 2019 17:29:38.534 [0x7fd9f8c56700] ERROR - [FFMPEG] - libva: /usr/lib/plexmediaserver/lib/dri/i965_drv_video.so init failed
Apr 20, 2019 17:29:38.534 [0x7fd9f8c56700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Apr 20, 2019 17:29:38.534 [0x7fd9f8c56700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
thando@aite:~$ uname -r
5.0.0-13-generic
$ sudo vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.3.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSlice
VAProfileVP9Profile2 : VAEntrypointVLD
NOT surprised 19.04 isnāt working.
It was just released. No updates yet. Iām working through issues I see with it already.
I am not yet convinced which are PMS bugs and which are 19.04 bugs.
I will continue to try but if it works on 18.04, you pretty much have the definitive answer
I know Intel has migrated to a new driver. The i965 is considered deprecated now. The iHD driver is now their preferred method of access. The upcoming transcoder update is (I hope) supposed to include that driver.
dalnew
April 22, 2019, 8:00am
35
@ChuckPa I am seeing the same set of errors but on Ubuntu 18.04. Iāve been running Plex on my Synology for years but finally caved and bought a dedicated server with some more ooomf. I followed your Synology->Linux transition guide and it worked flawlessly. The only thing is now HW transcoding seems to be broken. I am running an i9-9900K so it definitely has QuickSync. Iām assuming this should be working on 18.04 though correct? I see the following errors in my Plex Media Server logs:
Apr 22, 2019 00:40:53.902 [0x7f986ffff700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Apr 22, 2019 00:40:53.902 [0x7f986ffff700] WARN - avcodec_open2 returned -1313558101 for encoder āh264_nvencā
Apr 22, 2019 00:40:53.902 [0x7f986ffff700] ERROR - [FFMPEG] - libva: /usr/lib/plexmediaserver/lib/dri/i965_drv_video.so init failed
Apr 22, 2019 00:40:53.903 [0x7f986ffff700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Any ideas? I can upload additional logs if needed.
1 Like
Agster
April 22, 2019, 2:47pm
36
It didnāt work on 18.04 as there was an issue with Plex and the Linux Drivers for the 9th Generation Intel GPU. 19.04 that is solved with the new Kernel. However it appears that Plex doesnāt do something to use the new drivers.
I bought a new server just to run Plex with an i5 9th generation and I am hoping Plex can fix the driver issue so this purchase wasnāt a waste of money.
Pretty please!
Agster
April 22, 2019, 3:09pm
37
@dalnew It didnt work on 18.04 or 18.10 as the new 9th generation iGPUās were not supported. They are supported in 19.04. It looks like Plex needs to do something to use the new drivers.
To all reading here:
The new family of drivers which Intel has transitioned to are being worked on by Engineering.
There is nothing further to report at the time.
Agster
April 22, 2019, 6:23pm
39
YAY! @ChuckPa appreciate the hard work!
dalnew
April 22, 2019, 10:52pm
40
Is the expectation that this will be worked out for 18.04 or will I need to migrate to a newer Ubuntu release for this support? Iām just trying to figure out if I should put any more work into configuring my 18.04 box or scrap it and move to a newer build.