Quicksync Hardware Transcoding Error: 4294967279

which version should you have?

You say 1.31.0 and 1.32.0 but your logs are showing me 1.29.2

Apr 14, 2023 23:51:46.121 [0x153b83dfcb38] INFO - Plex Media Server v1.29.2.6364-6d72b0cf6 - Docker Docker Container (LinuxServer.io) x86_64 - build: linux-x86_64 debian - GMT -07:00
Apr 14, 2023 23:51:46.121 [0x153b83dfcb38] INFO - Linux version: 5.19.17-Unraid, language: en-US
Apr 14, 2023 23:51:46.121 [0x153b83dfcb38] INFO - Processor: 12-core 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
Apr 14, 2023 23:51:46.121 [0x153b83dfcb38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
Apr 14, 2023 23:51:46.121 [0x153b83dfcb38] INFO - /usr/lib/plexmediaserver/Plex Media Server
Apr 14, 2023 23:51:46.116 [0x153b88c810d0] DEBUG - BPQ: [Idle] -> [Starting]
Apr 14, 2023 23:51:46.116 [0x153b88c810d0] DEBUG - FeatureManager: Using cached data for features list

What I do see isn’t a server fault but a player / network problem

  1. Start of playback
Apr 14, 2023 23:52:37.269 [0x153b7c6a3b38] DEBUG - [Req#16e/Transcode] [FFMPEG] - Format 0x50524742 -> unknown.
Apr 14, 2023 23:52:37.269 [0x153b7c6a3b38] DEBUG - [Req#16e/Transcode] [FFMPEG] - Created surface 0.
Apr 14, 2023 23:52:37.269 [0x153b7c6a3b38] DEBUG - [Req#16e/Transcode] [FFMPEG] - Direct mapping possible.
Apr 14, 2023 23:52:37.276 [0x153b7c6a3b38] DEBUG - [Req#16e/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Apr 14, 2023 23:52:37.276 [0x153b7c6a3b38] DEBUG - [Req#16e/Transcode/JobRunner] Job running: EAE_ROOT=/tmp/pms-ff414059-2332-4ef9-b4d4-3a1474dd318e/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4387-linux-x86_64/' LIBVA_DRIVERS_PATH=/usr/lib/plexmediaserver/lib/dri X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx4766-8f3e-1fadd2ead51e "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -hwaccel:0 vaapi -hwaccel_fallback_threshold:0 10 -hwaccel_output_format:0 vaapi -hwaccel_device:0 vaapi -codec:1 eac3_eae -eae_prefix:1 8q6m54hzj2a9g7ic9agto7p0_ -ss 519 -analyzeduration 20000000 -probesize 20000000 -i "/movies/Avatar The Way of Water (2022)/Avatar The Way of Water (2022).mkv" -filter_complex "[0:0]hwupload[0];[0]scale_vaapi=w=1920:h=1036:format=nv12[1];[1]hwupload[2]" -map "[2]" -metadata:s:0 language=eng -codec:0 h264_vaapi -b:0 13652k -maxrate:0 18203k -bufsize:0 36406k -r:0 23.975999999999999 -filter_complex "[0:1] aresample=async=1:ocl='5.1':rematrix_maxval=0.000000dB:osr=48000[3]" -map "[3]" -metadata:s:1 language=eng -codec:1 libopus -b:1 711k -map 0:2 -metadata:s:2 language=eng -codec:2 copy -strict_ts:2 0 -map "0:t?" -codec:t copy -f segment -segment_format matroska -segment_format_options live=1 -segment_time 1 -segment_header_filename header -segment_start_number 0 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/8q6m54hzj2a9g7ic9agto7p0/a3971976-d176-48cf-b9e8-bec270ae528c/manifest?X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_unfinished 1 -segment_list_size 5 -segment_list_separate_stream_times 1 -avoid_negative_ts disabled -map_metadata:g -1 -map_metadata:c -1 -map_chapters -1 "chunk-%05d" -start_at_zero -copyts -init_hw_device vaapi=vaapi:/dev/dri/renderD128 -filter_hw_device vaapi -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/8q6m54hzj2a9g7ic9agto7p0/a3971976-d176-48cf-b9e8-bec270ae528c/progress
Apr 14, 2023 23:52:37.278 [0x153b7c6a3b38] DEBUG - [Req#16e/Transcode/JobRunner] Jobs: Starting child process with pid 711
  1. The player is looking for something else which isn’t in the buffer to be played
Apr 14, 2023 23:52:38.951 [0x153b82b78b38] WARN - [Req#178/Transcode] Got a transcode session ping without a valid session ID.
Apr 14, 2023 23:52:38.952 [0x153b839f6b38] DEBUG - Completed: [24.18.198.123:58998] 404 GET /video/:/transcode/universal/ping?autoAdjustQuality=0&hasMDE=1&location=wan&mediaBufferSize=75648&session=78fc0e01dc9f1467-com-plexapp-android (14 live) TLS GZIP 0ms 379 bytes (pipelined: 7)
Apr 14, 2023 23:52:39.089 [0x153b81dacb38] DEBUG - [HttpClient/HCl#9e] HTTP simulating 408 after curl timeout
Apr 14, 2023 23:52:39.089 [0x153b81dacb38] DEBUG - [HttpClient/HCl#9f] HTTP simulating 408 after curl timeout
Apr 14, 2023 23:52:39.089 [0x153b7f753b38] DEBUG - [HCl#a3] HTTP requesting GET https://172-218-246-185.33e1d80461da453ab6fee31ef5f8ed89.plex.direct:32400/media/providers
Apr 14, 2023 23:52:39.103 [0x153b81dacb38] DEBUG - [HttpClient/HCl#a3] HTTP/1.1 (0.0s) 200 response from GET https://172-218-246-185.33e1d80461da453ab6fee31ef5f8ed89.plex.direct:32400/media/providers (reused)

Please recreate this again.

  1. Ensure you have the correct target server version
  2. Ensure the server has completed any startup database schema changes.
    (These logs show 1.29.2 had just been installed for the purposes of the test ??)

I need a stable environment if I’m to help here.

Attached are my logs. I see the following error over and over while it tries to play:

Apr 15, 2023 08:40:19.000 [0x14e963310b38] ERROR - [Req#668/Transcode/5fkrsepgh5xfkm8l4xsaew37/b258f1b6-efcb-4127-b16b-7eef7af053c7] [eac3_eae @ 0x14e9b1d07580] error reading output: -5 (I/O error)
Apr 15, 2023 08:40:19.000 [0x14e95d7efb38] ERROR - [Req#669/Transcode/5fkrsepgh5xfkm8l4xsaew37/b258f1b6-efcb-4127-b16b-7eef7af053c7] Error while decoding stream #0:1: I/O error
Apr 15, 2023 08:40:22.000 [0x14e963310b38] ERROR - [Req#66a/Transcode/5fkrsepgh5xfkm8l4xsaew37/b258f1b6-efcb-4127-b16b-7eef7af053c7] [eac3_eae @ 0x14e9b1d07580] EAE timeout! EAE not running, or wrong folder? Could not read ‘/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder/Convert to WAV (to 8ch or less)/5fkrsepgh5xfkm8l4xsaew37_2862-0-59.wav’

Plex Media Server Logs_2023-04-15_08-41-20.zip (331.2 KB)

Apr 15, 2023 08:33:24.990 [0x14e960b80b38] ERROR - [Req#259/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 08:33:24.990 [0x14e960b80b38] ERROR - [Req#259/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 08:33:25.146 [0x14e963310b38] INFO - [Req#267/Transcode] CodecManager: starting EAE at "/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder"
Apr 15, 2023 08:33:28.000 [0x14e95f97cb38] ERROR - [Req#278/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder/Convert to WAV (to 8ch or less)/q203bk32lis4ww592xi51pvl_1955-0-0.wav'
Apr 15, 2023 08:33:28.000 [0x14e95f97cb38] ERROR - [Req#27c/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] error reading output: -5 (I/O error)
Apr 15, 2023 08:33:28.000 [0x14e95f97cb38] ERROR - [Req#27d/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] Error while decoding stream #0:1: I/O error
Apr 15, 2023 08:33:31.000 [0x14e95f97cb38] ERROR - [Req#27e/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder/Convert to WAV (to 8ch or less)/q203bk32lis4ww592xi51pvl_1955-0-1.wav'
Apr 15, 2023 08:33:31.000 [0x14e95f97cb38] ERROR - [Req#282/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] error reading output: -5 (I/O error)
Apr 15, 2023 08:33:31.000 [0x14e95f97cb38] ERROR - [Req#283/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] Error while decoding stream #0:1: I/O error
Apr 15, 2023 08:33:34.000 [0x14e95f97cb38] ERROR - [Req#284/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder/Convert to WAV (to 8ch or less)/q203bk32lis4ww592xi51pvl_1955-0-2.wav'
Apr 15, 2023 08:33:34.000 [0x14e95f97cb38] ERROR - [Req#287/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] error reading output: -5 (I/O error)
Apr 15, 2023 08:33:34.000 [0x14e95f97cb38] ERROR - [Req#288/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] Error while decoding stream #0:1: I/O error
Apr 15, 2023 08:33:37.000 [0x14e9626f7b38] ERROR - [Req#289/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder/Convert to WAV (to 8ch or less)/q203bk32lis4ww592xi51pvl_1955-0-3.wav'
Apr 15, 2023 08:33:37.000 [0x14e9626f7b38] ERROR - [Req#28e/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] error reading output: -5 (I/O error)
Apr 15, 2023 08:33:37.000 [0x14e9626f7b38] ERROR - [Req#28f/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] Error while decoding stream #0:1: I/O error
Apr 15, 2023 08:33:39.545 [0x14e960706b38] INFO - [Req#2c4] AutoUpdate: no updates available
Apr 15, 2023 08:33:39.929 [0x14e960706b38] WARN - [Req#2d7/Transcode] CodecManager: EAE exited with code 13. Restarting.
Apr 15, 2023 08:33:39.929 [0x14e960706b38] INFO - [Req#2d7/Transcode] CodecManager: starting EAE at "/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder"
Apr 15, 2023 08:33:40.000 [0x14e95af07b38] ERROR - [Req#290/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-7413387f-259a-400a-ae87-b4c4ed206f84/EasyAudioEncoder/Convert to WAV (to 8ch or less)/q203bk32lis4ww592xi51pvl_1955-0-4.wav'
Apr 15, 2023 08:33:40.000 [0x14e95af07b38] ERROR - [Req#2ef/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] [eac3_eae @ 0x14b6a5eca580] error reading output: -5 (I/O error)
Apr 15, 2023 08:33:40.000 [0x14e95af07b38] ERROR - [Req#2f0/Transcode/q203bk32lis4ww592xi51pvl/5eb413fa-7739-4b61-b174-8f0a9bbcae9d] Error while decoding stream #0:1: I/O error
Apr 15, 2023 08:33:40.296 [0x14e95af07b38] WARN - [Req#2fd] QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
Apr 15, 2023 08:33:40.296 [0x14e95af07b38] WARN - [Req#2fd] QueryParser: Invalid field 'pinnedContentDirectoryID' found, ignoring.
Apr 15, 2023 08:33:40.296 [0x14e95ad04b38] WARN - [Req#2fc] QueryParser: Invalid field 'contentDirectoryID' found, ignoring.

Where is your transcoder temp directory pointed ?

These errors are common when the Dolby EAE, which requires file locking, is using a temporary directory on a network share (which doesn’t have file locking)

image

Transcode is pointed to a folder within the docker’s appdata directory. For testing, I changed the permissions to a+rw and have the same results. The folder itself does exist, and is not on a share. It is setup the same way on my working 129. docker where I do not see these errors.

I’m not an Unraid expert by any means and am very much still learning it (to try and support it)

I have the following which works

/transcode/mnt/user/appdata/Plex-Media-Server/transcode/
/data/mnt/user/appdata/Plex-Media-Server/glock/
/config/mnt/user/appdata/Plex-Media-Server

The glock is a network mount for media

Notice how I stay inside the defines of the container ?

I don’t understand why using a ‘cache’ directory makes sense ??

I believe I set that part up based on this Space Invader video. I prefer it this way as it keeps things clean. Should I be transcoding in RAM or something?

https://youtu.be/7RgPx7BN8DE?t=921

If I’m understanding you correctly, it does not matter if I use /mnt/cache or /mnt/user, the issue persists. I’m also a bit confused with your examples. All I am doing is linking the container’s /transcode folder (what Plex is looking for) to a physical folder on my NAS. I’m not sure how to keep that within the container because it needs to link to a folder outside the container. When I open a shell on the container itself, I see the /transcode folder and the subfolders that Plex creates. I also tried straight up nuking the /transcode path, same result.

Also, I’m not sure why this configuration works fine on 1.29.2, but breaks when I update to 1.30+.

I don’t know either but the only obvious difference is the directory I’ve chosen.

I know Engineering changed the inotify service parameters (which the EAE codec will also use) in version 1.30.x and above.

Here is my machine, using all defaults, and without issue

I wish I could be of more help.

This is 6.11.5 Unraid

How do I manually reset the Plex logs so that I only download the most recent log files? The logs I sent you include multiple text files, some of which are 1.29.2 and some of which are 1.32.0:

I currently have my transcode directory set to an external mounted drive and still get the same issue.

/mnt/disks/Crucial 250GB SSD/Plex Transcodes/

I have tested transcoding to RAM before and found that even for a 1080p movie transcoded to 720p on 16GB of RAM on my server I ran out of RAM prior to the movie finishing. This caused plex to stop playback until I restarted the server to flush the RAM. Definitely don’t recommend.

Just send me the ZIP.

I always look at them in Newest → Oldest order
Please don’t delete or zero any of them.

I do request help with one Unraid setting change.

  • Where do you enable the NFS client ?
    (They were kind enough to grant me a Basic license for support purposes)

  • “Note: You must enable NFS in Settings->NFS to mount NFS shares.”

Ok so the zip I sent has the logs you need (for testing on 1.32)?

Should be here:

As you can see I do not use it.

I figured out my issue. I did a bit of Googling and found a Reddit post that complained about the same transcoding issue and same directory error. I had to stop the Plex docker, delete the contents of /appdata/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/ *, then started the docker. All is well on 1.32 now.

Thanks for the help.

1 Like

I’m an ID-10-T :rofl:
staring right at me.

I’m moving things around here so I have a better test platform

Holy ■■■■ this fixed it. I didn’t even need to restart my server, just shut off the LSIO plex docker, deleted the codecs folder, pulled the latest version (1.32) and everything is working!

Thank you :smiley:

Just to keep this open, the problem is not gone and deleting Drivers, Codecs and Cache folders, before spinning up new docker container with latest version, does not help to get PMS to do hardware transcoding.

Downgrading to 1.29.2.6364 does work and transcoding is perfectly hardware (including decoding). DSM 7.1.1, DS218+.

Responding to keep this open. I am also facing the same issue with the latest version of the docker container.

I solved this problem too .I don’t have to downgrade the system, I only delete the codecs and cache folder, then restart pms, everything got ok.

This is somehow being ignored after it worked for some installations by deleting codecs and cache.

It does not work for all installations after this “fix” - for instance, on my DSM218+, it doesn’t no matter how much I delete cache and codecs. Just checked again - latest version does not hw transcode, while 1.29 still does.

It’s still broken, should this be reopen and addressed? It’s a PlexPass feature and deserves support, it seems like.