[Fixed] EAC3 transcoding broken [EAE timeout! EAE not running, or wrong folder? ]

Server Version#: Version 1.21.1.3830
Player Version#: Webplayer

Running the latest docker image I am sudenly not able to transcode EAC3 audio. On the webplayer the stream keeps buffering on mobile (android) there is a transcoding error. The desktop app plays the file without transcoding and that works.

The logs show:

Dec 19, 2020 22:15:03.000 [0x7fba22ffd700] Fout — [Transcoder] [eac3_eae @ 0x2595ac0] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-a26e2fa4-27c1-4f98-9a3d-1490d1a938d8/EasyAudioEncoder/Convert to WAV (to 8ch or less)/on8x4xi7u0ednu3yn4i5ket1_402-0-117.wav'
Dec 19, 2020 22:15:03.000 [0x7fba657fa700] Fout — [Transcoder] [eac3_eae @ 0x2595ac0] error reading output
Dec 19, 2020 22:15:03.001 [0x7fba217fa700] Fout — [Transcoder] Error while decoding stream #0:0: Input/output error
Dec 19, 2020 22:15:05.848 [0x7fba657fa700] Foutopsporing — Request: [127.0.0.1:47114 (Loopback)] GET /identity (11 live) Signed-in
Dec 19, 2020 22:15:05.848 [0x7fbaaef90700] Foutopsporing — Completed: [127.0.0.1:47114] 200 GET /identity (11 live) 0ms 398 bytes (pipelined: 1)
Dec 19, 2020 22:15:06.000 [0x7fba317fa700] Fout — [Transcoder] [eac3_eae @ 0x2595ac0] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-a26e2fa4-27c1-4f98-9a3d-1490d1a938d8/EasyAudioEncoder/Convert to WAV (to 8ch or less)/on8x4xi7u0ednu3yn4i5ket1_402-0-118.wav'
Dec 19, 2020 22:15:06.000 [0x7fba22ffd700] Fout — [Transcoder] [eac3_eae @ 0x2595ac0] error reading output
Dec 19, 2020 22:15:06.000 [0x7fba20ff9700] Fout — [Transcoder] Error while decoding stream #0:0: Input/output error

Did some google-ing:

  • switched docker image from linuxserver.io to the official one
  • mapped /tmp to /tmp
  • mapped /tmp to the same folder as my transcodign folder
  • deleted the codec folder and restarted the docker ( /mnt/user/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Codecs/)

All to no avail. I made sure that from docker I have read write and execute permission in /tmp
While I was checking that I could not help but notice that in the error it is searching for a .wav file whilest in the folder there are only .ec3 files which are presumably the bits of audio waiting to be converted to wave? (.wav)

Leading me to the following conclusion:

  • Plex can obviously write to /tmp
  • EAE is either not running
  • or EAE not finishing in time

Tried to run (in the docker console):

root@Apollo:/config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1165-linux-x86_64# ls -lah
total 12K
drwxrwsr-x+ 3 plex users 4.0K Dec 19 22:40 .
drwxrwsr-x+ 4 plex users 4.0K Dec 19 22:40 ..
drwxrwsr-x+ 2 plex users 4.0K Dec 19 22:40 EasyAudioEncoder
root@Apollo:/config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1165-linux-x86_64# chmod 777 EasyAudioEncoder
root@Apollo:/config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1165-linux-x86_64# ls -lah
total 12K
drwxrwsr-x+ 3 plex users 4.0K Dec 19 22:40 .
drwxrwsr-x+ 4 plex users 4.0K Dec 19 22:40 ..
drwxrwsrwx+ 2 plex users 4.0K Dec 19 22:40 EasyAudioEncoder

Which did nothing

At this point I was wondering if I needed to run something like:

sysctl -w fs.inotify.max_user_watches=100000

But I am not scanning libraries atm so i should be fine right?

Turns out I was wrong: I just ran the above command on the host machine and it fixed the issue for me!

===
I was composing this Topic because I was getting desperate for a solution. Just leaving it here so people with the same problem might stumble across this post

I think running radarr/lidarr/sonarr on the same machine might have caused the user_watches limit to be reached dispite me disableing automatic library updates in Plex?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.