# Problems transcoding files with EAC3 sound

**URL:** <https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826>\
**Category:** Plex Media Server\
**Tags:** server-synology\
**Created:** [January 2, 2024, 11:45am UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826 "2024-01-02T11:45:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 11:45am UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/1 "2024-01-02T11:45:59Z")

</div>

Server Version#: 1.32.8.7639-7000  
Player Version#: Apps on IOS and apple tv, newest versions. webapp  
\<If providing [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) please do NOT turn on verbose logging, only [debug logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) should be enabled\>

I run plex on a Synology 1019+ NAS. Not as a docker container.

I have problems transcoding all files that use EAC3 sound (Dolby Digital+). On web plex I can not even play the original version but on apps I can play the original without issues, as soon though as I try to transcode the app just keeps buffering until it finally crashes.  
I have tried transcoding everything else (dts, dts-hdma, AC3, Dolby TrueHD AAC) and they all work just fine, but every file with EAC3 fails when trying to transcode.

In the console i get follow error when trying:

“Req#38b5/Transcode/61A2EC1A-4FA9-4D77-9C35-C4417E0C73AC/eb04ab18-8b23-4288-82f9-94ea745a3ad4] [eac3\_eae @ 0x7f625a9fa040] error reading output: -5 (I/O error)“

I am of course not sure this is caused by the EAC3 but its the only difference I can spot.

I tried deleting the codec files without any luck.  
I tried installing reset server version again, this worked until I restarted my server.  
I tried turning off hardware transcoding without any luck.

I hope someone can help me out, as this is frustrating me so much.

Thank you all in advance!

/Thrawn

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 5:08pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/2 "2024-01-02T17:08:30Z")

</div>

Can you please do the following?

1. Confirm [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) is enabled
2. Recreate the failure
3. Download the [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) (ZIP file)
4. Attach that ZIP file here.

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 5:31pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/3 "2024-01-02T17:31:06Z")

</div>

[Plex Media Server Logs\_2024-01-02\_18-30-12.zip](https://forums.plex.tv/uploads/short-url/cPZkCuhVZDoVKkBZtbNNjU41ZFy.zip) (4.6 MB)  
Thank you so much for your time!

Here you go!

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 6:06pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/4 "2024-01-02T18:06:28Z")

</div>

@Thrawn

Thank you for this. The failure was easily found.

```auto
Jan 02, 2024 18:26:24.000 [139701501410104] ERROR - [Req#5e65b/Transcode/B30A5E58-1DEE-46A3-A813-13732A120F64/5a005382-3b76-4ecc-a1ae-2f5b9b237aa0] [eac3_eae @ 0x7f798eab7040] EAE timeout! EAE not running, or wrong folder? Could not read '/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/pms-035f0dde-fac7-4218-943d-239d182b9f98/EasyAudioEncoder/Convert to WAV (to 8ch or less)/B30A5E58-1DEE-46A3-A813-13732A120F64_4775-0-0.wav'

```

This error, “EAE not running, or wrong folder?” will occur when there are more folders being watched than the Linux kernel table can monitor.  
(your media is well structured and you have a lot of it 🕶 )

The problem occurs because DSM Linux doesn’t allocate a big table by default  
(Most systems ship with only 2GB of RAM so they keep the table small)

You add your media and ask PMS to monitor/watch for changed automatically.

The table fills

If you look at [PMS Logs,](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) about 3-4 minutes after you restart it, you’ll see “No space left on device” while it’s setting up inotify. This is the table overflowing.

Later, when you want to transcode anything with Dolby (needs the EAE), there aren’t any free slots for the transcode & EAE to use so they fail (they need 2 slots)

The solution is simple; Increase the number of folders PMS can monitor WITHOUT filling your memory. ( I don’t know how much memory you have installed – 8GB is a great memory amount for Synology NAS systems )

Here’s the procedure.

> [@Synology FAQ - Questions, Answers, and How-To's](https://forums.plex.tv/t/490215/22):
>
> FAQ 16: Increase the number of folders Plex can monitor Applicable to all supported versions of DSM. When the Linux ‘inotify’ table fills up, this will cause when Plex to stop automatically detecting new media you add to the server. It will also manifest when there are transcoder problems with Dolby audio codecs. Linux has a default table size which is static. We can increase this at will. On some versions it’s 8192. On newer kernels, the default is 65536 folders. This is easy to incr…

Each ‘slot’ you allocate is 540 bytes + Pathname (length in bytes) ~= 668 bytes each.  
(128 byte path length)

The process is simple.

1. use the above procedure to count up how many directory slots you’ll need / allocate
2. Multiply NumberOfSlots \* 668 ==\> Total amount of memory used.

If this isn’t a concern then continue.  
If you only have 2GB in the NAS, or you need a really big table size, you might want to consider increasing memory to 8GB.

Please feel free to ask questions. This is that ‘freaky linux kernel’ stuff 🤣

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 6:19pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/5 "2024-01-02T18:19:52Z")

</div>

Great I will look at this

but…um my numbers keeps going up 😮 should I add something?

(I have 8 gig on that server :))

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 6:38pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/6 "2024-01-02T18:38:31Z")

</div>

wow 635987 folders

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 6:51pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/7 "2024-01-02T18:51:23Z")

</div>

Got you some Music, HUH? 🎶

How much memory in the machine?

MAKE CERTAIN — you’re checking your media and NOT Plex.

(If your media is in the PlexMediaServer directory — 😠 lol)

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 6:56pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/8 "2024-01-02T18:56:15Z")

</div>

Yes but not much music.

most if it is tv shows. 1 folder pr show 1 folder pr season.  
Yes not checking plex folder…at all and now the media is in 3 different shares + music

8gig on the machine

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 6:59pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/9 "2024-01-02T18:59:37Z")

</div>

> [@Thrawn](#):
>
> most if it is tv shows. 1 folder pr show 1 folder pr season.  
> Yes not checking plex folder…at all and now the media is in 3 different shares + music

you have your TV as?

```auto
TV Main Folder1/
  Series1/
    Season 1/
       Series1 - S01E01 - optional title.ext

```

This structure ?

You can set the `max_user_watches` to 720896 (481 MB table size)

That’ll hold you a while!

🤣

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 7:04pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/10 "2024-01-02T19:04:00Z")

</div>

Just like that yes 🙂 except i use . instead of -

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 7:04pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/11 "2024-01-02T19:04:53Z")

</div>

All good.

After you run the Task Scheduler task and restart DSM,  
Everything should be back to normal for EAE

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 7:10pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/12 "2024-01-02T19:10:12Z")

</div>

![IMG_0521](https://global.discourse-cdn.com/plex/original/4X/7/e/e/7ee0e7c8fe3f39d3a0d56e024988e21364d5ee43.jpeg)  
so like this? 🙂

ops missing part of it

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 7:14pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/13 "2024-01-02T19:14:42Z")

</div>

Remove the space!!!

`s2s_watches_max=720896`

No spaces!!! 🤦‍♂️ lol

Have it send you the job run log to your email as confirmation

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 7:16pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/14 "2024-01-02T19:16:18Z")

</div>

ops

and thank you!!

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 7:17pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/15 "2024-01-02T19:17:59Z")

</div>

what about the ‘

i only changed then numbers from the post you linked

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 2, 2024, 7:20pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/16 "2024-01-02T19:20:07Z")

</div>

the complete change (both files) should read:

```auto
echo 's2s_watches_max=720896' >> /etc/synoinfo.conf
echo 's2s_watches_max=720896' >> /etc.defaults/synoinfo.conf

```

the quotes ensure it’s written as one ‘thing’ to the file.

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 7:23pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/17 "2024-01-02T19:23:30Z")

</div>

![IMG_0523](https://global.discourse-cdn.com/plex/original/4X/0/8/f/08fa709510913dc7b3cab6a693289a0b94777d7b.jpeg)

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 2, 2024, 7:24pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/18 "2024-01-02T19:24:00Z")

</div>

I can not thank you enough for all your help! This has messed me up for days !!

---

<div class="post-metadata">

**Author:** ![Thrawn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Thrawn](https://forums.plex.tv/u/Thrawn)\
**Post date:** [January 3, 2024, 1:30pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/19 "2024-01-03T13:30:56Z")

</div>

Well

I DID mess up with the folders 🫣 I had a backup of a drive on my PC with a LOT of folders in it I had counted too 😮 (Not being monitored by plex though) just in the same share.

Would I need to change the task again?

is it in anyway bad having it this large? I don’t use memory for all that much and the 8gig is more then enough even with 400MB used for this.

I have been watching console to see if other errors comes up and it keep showing:

“Req#13ed60] Unknown metadata type: folder”

together with it I get a lot of warnings saying:

“Req#13ed5e] QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.”

and

“Req#13ed5e] QueryParser: Invalid field ‘sectionID’ found, ignoring.

I don’t see anything not working though…

Can I get help for that in this post? or do I need to make a new one? 🙂

Thank you again!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 2, 2024, 1:31pm UTC](https://forums.plex.tv/t/problems-transcoding-files-with-eac3-sound/864826/20 "2024-04-02T13:31:15Z")

</div>

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