jefflessard / plex-vaapi-amdgpu-mod

linuxserver.io mod to enable hardware acceleration using vaapi amdgpu on linuxserver/plex
40 stars 6 forks source link

I/O error #4

Open shadyslim2018 opened 1 year ago

shadyslim2018 commented 1 year ago

I'm getting this error

Jul 14, 2023 17:27:17.065 [140219927677752] Error — [Req#766/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] [AVHWDeviceContext @ 0x7f7b86b23180] libva: /config/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64/radeonsi_drv_video.so has no function __vaDriverInit_1_0
Jul 14, 2023 17:27:17.065 [140219963116344] Error — [Req#769/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] [AVHWDeviceContext @ 0x7f7b86b23180] Failed to initialise VAAPI connection: -1 (unknown libva error).
Jul 14, 2023 17:27:17.066 [140219968740152] Error — [Req#770/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] Device creation failed: -5.
Jul 14, 2023 17:27:17.066 [140219997125432] Error — [Req#777/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] Failed to set value 'vaapi=vaapi:/dev/dri/renderD128' for option 'init_hw_device': I/O error
Jul 14, 2023 17:27:17.066 [140219930762040] Error — [Req#77e/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] Error parsing global options: I/O error
Jul 14, 2023 17:27:27.082 [140219927677752] Error — [Req#8d2/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] [AVHWDeviceContext @ 0x7fba8526f180] libva: /config/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64/radeonsi_drv_video.so has no function __vaDriverInit_1_0
Jul 14, 2023 17:27:27.082 [140219963116344] Error — [Req#8d5/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] [AVHWDeviceContext @ 0x7fba8526f180] Failed to initialise VAAPI connection: -1 (unknown libva error).
Jul 14, 2023 17:27:27.082 [140219966630712] Error — [Req#8db/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] Device creation failed: -5.
Jul 14, 2023 17:27:27.082 [140219927677752] Error — [Req#8df/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] Failed to set value 'vaapi=vaapi:' for option 'init_hw_device': Error number -5 occurred
Jul 14, 2023 17:27:27.082 [140219963116344] Error — [Req#8e3/Transcode/ae8b58aceafe766c-com-plexapp-android/a10dded8-5454-4054-bf42-82da3f18aa1d] Error parsing global options: Error number -5 occurred

It used to work fine before, I haven't changed anything.

dpajanssen commented 11 months ago

Any news on this on how to fix? Got the same issue but can't find a solution...

ArthurGarnier commented 11 months ago

Same here. Happens on any transcoding.

Command check returns

─$ sudo docker exec -it -e LIBVA_DRIVERS_PATH=/vaapi-amdgpu/lib/dri -e LD_LIBRARY_PATH=/vaapi-amdgpu/lib plexmediaserver \
/lib/plexmediaserver/Plex\ Transcoder -hide_banner -loglevel debug -vaapi_device /dev/dri/renderD128
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-vaapi_device' ... matched as option 'vaapi_device' (set VAAPI hardware device (DRM path or X11 display name)) with argument '/dev/dri/renderD128'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Applying option vaapi_device (set VAAPI hardware device (DRM path or X11 display name)) with argument /dev/dri/renderD128.
[AVHWDeviceContext @ 0x7f88d885d0c0] libva: VA-API version 1.17.0
[AVHWDeviceContext @ 0x7f88d885d0c0] libva: Trying to open /vaapi-amdgpu/lib/dri/radeonsi_drv_video.so
[AVHWDeviceContext @ 0x7f88d885d0c0] libva: Found init function __vaDriverInit_1_17
[AVHWDeviceContext @ 0x7f88d885d0c0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x7f88d885d0c0] Initialised VAAPI connection: version 1.17
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7f88d885d0c0] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7f88d885d0c0] VAAPI driver: Mesa Gallium driver 22.3.6 for AMD Radeon Vega 11 Graphics (raven, LLVM 15.0.7, DRM 3.49, 6.1.0-10-amd64).
[AVHWDeviceContext @ 0x7f88d885d0c0] Driver not found in known nonstandard list, using standard behaviour.
Successfully parsed a group of options.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg
macsatcom commented 5 months ago

I see the same issue. The "test command" shows no errors, but transcoding does not work

regix1 commented 5 months ago

Yeah the transcoder isn't working for me either.

dambir commented 4 months ago

I get the same error, but only after I restart a fresh docker container. If I install a new docker container with this mod it works fine until I restart the container.

The "test" passes with no issues.