Ubuntu PMS EAC3 transcodes to tmp folder and create .ec3 instead of .wav file. Video wont play

Server Version#: 1.18.0.1913
Player Version#: Web 4.8.4
So I’ve been running into an issue with Plex playing EAC3 videos. The server will say the file is playing and it will create a temporary folder in the tmp folder but will export a different file type than what it is expecting, file exported is .ec3 but the server log says it is looking for a .wav file. These .ec3 files will only sit in the tmp folder for a couple seconds before being deleted and a new ec3 file is created withe an increased -xx number.

I’ve tried deleting the codec folders, I’ve tried reinstalling Plex, I’ve tried changing the user group of the tmp folder but nothing seems to work. It hasn’t been a problem in the past because I stream to a fire tv and it doesn’t seem to need to transcode the files, but now that I’m trying to stream to a web player, it is an issue.
Plex Media Server Logs_2019-10-09_17-03-44.zip (385.7 KB)
Snip of Server error:

Oct 09, 2019 17:03:31.002 [0x7f95b2e03700] VERBOSE - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.

Oct 09, 2019 17:03:31.002 [0x7f95b2e03700] VERBOSE - Auth: Came in with the master token, authorization succeeded.

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] DEBUG - Request: [127.0.0.1:59280 (Loopback)] PUT /video/:/transcode/session/azfu5nuj4ehm22dd0uj8lspy/e4173e41-754f-4a02-9b49-f825f740bffe/progress?progress=-711131226952.0&size=-22&remaining=-1&vdec_packets=386&vdec_sw_ok=380&speed=0.0&vdec_hw_status=0 (17 live) Signed-in Token (m0j0j0_j0) (range: bytes=0-) 

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * User-Agent => Lavf/58.27.103

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * Accept => */*

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * Range => bytes=0-

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * Connection => keep-alive

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * Host => 127.0.0.1:32400

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * Icy-MetaData => 1

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * X-Plex-Token => xxxxxxxxxxxxxxxxxxxx

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * X-Plex-Http-Pipeline => infinite

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * progress => -711131226952.0

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * size => -22

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * remaining => -1

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * vdec_packets => 386

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * vdec_sw_ok => 380

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * speed => 0.0

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE -  * vdec_hw_status => 0

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE - We want 360 seconds ahead, last returned was -1.000000 and max is -1.000000.

Oct 09, 2019 17:03:31.003 [0x7f95497fa700] VERBOSE - It took 0.0 sec to serialize a list with 0 elements.

Oct 09, 2019 17:03:31.004 [0x7f95b2e03700] DEBUG - Completed: [127.0.0.1:59280] 206 PUT /video/:/transcode/session/azfu5nuj4ehm22dd0uj8lspy/e4173e41-754f-4a02-9b49-f825f740bffe/progress?progress=-711131226952.0&size=-22&remaining=-1&vdec_packets=386&vdec_sw_ok=380&speed=0.0&vdec_hw_status=0 (17 live) 1ms 355 bytes (pipelined: 114) (range: bytes=0-) 

Oct 09, 2019 17:03:32.001 [0x7f954bfff700] ERROR - [Transcoder] [eac3_eae @ 0xc0bf40] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-0a9fe802-99ee-4eb0-a6aa-08bbaf18ebb2/EasyAudioEncoder/Convert to WAV (to 8ch or less)/offk0s8zbgp8h3qd7tcliif5_17138-0-33.wav'

Oct 09, 2019 17:03:32.001 [0x7f95297fa700] ERROR - [Transcoder] [eac3_eae @ 0xc0bf40] error reading output

Oct 09, 2019 17:03:32.002 [0x7f954bfff700] ERROR - [Transcoder] Error while decoding stream #0:1: Input/output error


image

Change you logging a bit so that verbose is off.

The restart the computer that PMS is installed on.
Give PMS 6 min to initialize.
Then grab fresh logs showing only it boot.

Logs

Zip up what it gives you, and attach it with your next reply. While we are looking at the logs, also grab us the XML Media Information from the video that you are trying to play.

Does it happen to every file with EAC3 tracks?
Thank you sir.

This happens with all EAC3 files. See fresh logs after reboot.

I stopped the service, deleted all logs, restarted the computer, let it sit for 10ish min then tried to play an EAC3 file.

Plex Media Server Logs_2019-10-09_19-44-46.zip (254.7 KB)

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="86c31443-a2b6-49a3-a1f9-6c176340c5b4" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1570581928">
<Video ratingKey="103166" key="/library/metadata/103166" parentRatingKey="103153" grandparentRatingKey="24336" guid="com.plexapp.agents.thetvdb://269586/2/13?lang=en" parentGuid="com.plexapp.agents.thetvdb://269586/2?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://269586?lang=en" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" type="episode" title="Payback" grandparentKey="/library/metadata/24336" parentKey="/library/metadata/103153" grandparentTitle="Brooklyn Nine-Nine" parentTitle="Season 2" contentRating="TV-14" summary="The squad decides it's high time Jake paid them back all the money he has owed them from over the years. Meanwhile, Amy and Holt team up to re-open the Brooklyn Broiler case." index="13" parentIndex="2" rating="7.6" viewOffset="1136000" viewCount="2" lastViewedAt="1570664455" year="2015" thumb="/library/metadata/103166/thumb/1570138583" art="/library/metadata/24336/art/1570138586" parentThumb="/library/metadata/103153/thumb/1570138586" grandparentThumb="/library/metadata/24336/thumb/1570138586" grandparentArt="/library/metadata/24336/art/1570138586" grandparentTheme="/library/metadata/24336/theme/1570138586" duration="1299590" originallyAvailableAt="2015-01-11" addedAt="1498773973" updatedAt="1570138583">
<Media id="417305" duration="1299590" bitrate="13536" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="423521" key="/library/parts/423521/1533216861/file.mkv" duration="1299590" file="/data3/Downloads/TV_Shows/Brooklyn Nine-Nine/Season 2/Brooklyn Nine-Nine - S02E13 - Payback [1920x1080_x264_EAC3].mkv" size="2198913920" container="mkv" deepAnalysisVersion="4" requiredBandwidths="14700,14420,13910,13567,13567,13567,13567,13567" videoProfile="high">
<Stream id="950778" streamType="1" default="1" codec="h264" index="0" bitrate="13536" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" closedCaptions="1" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" requiredBandwidths="14060,13780,13270,12930,12930,12930,12930,12930" scanType="progressive" title="Brooklyn Nine-Nine S02E13" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="950780" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="638,638,638,638,638,638,638,638" samplingRate="48000" title="English" displayTitle="English (EAC3 5.1)"/>
<Stream id="950779" streamType="3" codec="eia_608" index="0" embeddedInVideo="1" requiredBandwidths="14060,13780,13270,12930,12930,12930,12930,12930" displayTitle="Unknown (EIA_608)"/>
</Part>
</Media>
<Media id="2160918" duration="1299591" bitrate="5422" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="2193889" key="/library/parts/2193889/1570129720/file.mkv" duration="1299591" file="/data3/Active_Torrents/TV_Shows/Brooklyn.Nine-Nine.S02.1080p.WEB-DL.DD5.1.H.264-NTb/Brooklyn.Nine-Nine.S02E13.1080p.WEB-DL.DD5.1.H.264-NTb.mkv" size="881055522" container="mkv" deepAnalysisVersion="4" requiredBandwidths="7830,7095,6188,5627,5627,5627,5627,5627" videoProfile="high">
<Stream id="3031556" streamType="1" default="1" codec="h264" index="0" bitrate="5037" language="English" languageCode="eng" bitDepth="8" chromaLocation="topleft" chromaSubsampling="4:2:0" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" requiredBandwidths="7446,6710,5803,5250,5250,5250,5250,5250" scanType="progressive" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="3031557" streamType="2" selected="1" default="1" codec="ac3" index="1" channels="6" bitrate="384" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="383,383,383,383,383,383,383,383" samplingRate="48000" displayTitle="English (AC3 5.1)"/>
<Stream id="3031558" streamType="3" default="1" codec="srt" index="2" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" displayTitle="English (SRT)"/>
</Part>
</Media>
<Media id="2161008" duration="1299591" bitrate="4436" width="1280" height="720" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" videoResolution="720" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="2193979" key="/library/parts/2193979/1570130049/file.mkv" duration="1299591" file="/data3/Active_Torrents/TV_Shows/Brooklyn.Nine-Nine.S02.720p.WEB-DL.DD5.1.H.264-NTb-No.Rars/Brooklyn.Nine-Nine.S02E13.720p.WEB-DL.DD5.1.H.264-NTb.mkv" size="720981443" container="mkv" deepAnalysisVersion="4" requiredBandwidths="7337,5362,4601,4501,4501,4501,4501,4501" videoProfile="high">
<Stream id="3031559" streamType="1" default="1" codec="h264" index="0" bitrate="4052" language="English" languageCode="eng" bitDepth="8" chromaLocation="topleft" chromaSubsampling="4:2:0" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="1" height="720" level="31" profile="high" refFrames="2" requiredBandwidths="6953,4978,4216,4123,4123,4123,4123,4123" scanType="progressive" width="1280" displayTitle="720p (H.264)"/>
<Stream id="3031560" streamType="2" selected="1" default="1" codec="ac3" index="1" channels="6" bitrate="384" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="383,383,383,383,383,383,383,383" samplingRate="48000" displayTitle="English (AC3 5.1)"/>
<Stream id="3031561" streamType="3" default="1" codec="srt" index="2" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" displayTitle="English (SRT)"/>
</Part>
</Media>
<Director id="73534" filter="director=73534" tag="Victor Nelli Jr."/>
<Writer id="73491" filter="writer=73491" tag="Norm Hiscock"/>
<Writer id="73548" filter="writer=73548" tag="Brigitte Muñoz-Liebowitz"/>
<Extras size="0"> </Extras>
</Video>
</MediaContainer>

You get a lot of these,

Oct 09, 2019 19:37:17.274 [0x7f6d827fc700] ERROR - [Notify] Failed to add watch for "/data3/Downloads/TV_Shows/Preacher/Season 3" (28: No space left on device)
Oct 09, 2019 19:37:17.322 [0x7f6d827fc700] ERROR - [Notify] Failed to add watch for "/data3/Downloads/TV_Shows/Preacher/Season 2" (28: No space left on device)
Oct 09, 2019 19:37:17.331 [0x7f6d827fc700] ERROR - [Notify] Failed to add watch for "/data3/Downloads/TV_Shows/Preacher/Season 1" (28: No space left on device)

which could also be tied into all the

Oct 09, 2019 19:43:09.184 [0x7f6d92c0d700] DEBUG - Completed: [127.0.0.1:44348] 200 PUT /video/:/transcode/session/tx53gs5w5qmtthelgdbczqdb/09db5fc6-5f4b-40e4-8832-a09a9330cc96/progress/streamDetail?index=1&id=0&codec=eac3&type=audio&language=eng&channels=6&layout=5.1%28side%29&sampleRate=48000&disp_default=1 (13 live) 0ms 195 bytes (pipelined: 8) (range: bytes=0-) 
Oct 09, 2019 19:43:12.000 [0x7f6d90c09700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-0.wav'
Oct 09, 2019 19:43:12.001 [0x7f6d90c09700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] error reading output
Oct 09, 2019 19:43:15.001 [0x7f6d53fff700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-1.wav'
Oct 09, 2019 19:43:15.002 [0x7f6d53fff700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] error reading output
Oct 09, 2019 19:43:18.000 [0x7f6d53fff700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-2.wav'
Oct 09, 2019 19:43:18.001 [0x7f6d53fff700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] error reading output
Oct 09, 2019 19:43:21.001 [0x7f6d90c09700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-3.wav'
Oct 09, 2019 19:43:21.002 [0x7f6d90c09700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] error reading output
Oct 09, 2019 19:43:24.001 [0x7f6d79ffb700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-4.wav'
Oct 09, 2019 19:43:24.001 [0x7f6d90c09700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] error reading output
Oct 09, 2019 19:43:27.001 [0x7f6d90c09700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-5.wav'
Oct 09, 2019 19:43:27.002 [0x7f6d53fff700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] error reading output
Oct 09, 2019 19:43:30.000 [0x7f6d79ffb700] ERROR - [Transcoder] [eac3_eae @ 0x174fe80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-da8dbe97-fc10-40fc-a54d-7cf5d608204f/EasyAudioEncoder/Convert to WAV (to 8ch or less)/tx53gs5w5qmtthelgdbczqdb_5191-0-6.wav'

Hey Nibbles,

Thanks for looking at the log, I’m not sure why it is saying it is out of space when all raids have a couple hundred GBs of space left.

As for your second set, that is the root of the issue and what I’m asking about. The server is looking for .wav files but plex is outputting .ec3 files. So Plex then thinks the files doesn’t exist and errors out.

Ok you’ve checked file space and maybe permissions too.
I was able to play a video with stereo eac3 track, but I didn’t
have any that were 6ch 48kHz. I’ll keep looking for one.

Just for the heck of it, let’s try to specify a tmp folder.
Settings - Show Advanced - Transcoder - Transcoder temporary directory
Try entering a path in there, then Save changes and restart PMS.

I feel like I’m forgetting something. I’ll be back.

The root cause here is there are more than 8192 (default table size for the Linux iNotify table) which PMS is trying to monitor.

The transcoder needs 4 watch event slots when using Dolby codecs.

The error in the log is indicated:

Oct 09, 2019 19:36:58.268 [0x7f6d827fc700] ERROR - [Notify] Failed to add watch for "/data3/Active_Torrents/TV_Shows/Young.Hercules.S01.DVDRip.X264-OSiTV/Young.Hercules.S01.EXTRAS.DVDRip.X264-OSiTV/Sample" (28: No space left on device)
Oct 09, 2019 19:36:58.279 [0x7f6d827fc700] ERROR - [Notify] Failed to add watch for "/data3/Active_Torrents/TV_Shows/Young.Hercules.S01.DVDRip.X264-OSiTV/Young.Hercules.S01E14.DVDRip.X264-OSiTV" (28: No space left on device)
Oct 09, 2019 19:36:58.281 [0x7f6d827fc700] 

To correct this we find out how many directories need to be monitored for the media, round up to the next even multiple of 32768, then create an entry in the Linux kernel configuration tuning file then restart PMS.

The How-To, showing example directories, is here:

1 Like

I had already tried changing the temp folder:
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Transcode/

It still goes to tmp folder.

1 Like

This surprisingly worked… Now I have an error with hardware decoding and eventsource timeouts, guess I will need to start a new thread?

Just so anyone who reads this after me.

First thing I did was turn off monitoring of folders, restarted the server and it seemed to work. So next I increased the max directories that could be monitored, I had 22k currently so rounded up per the instructions. Set it, restarted server, and again started trying to transcode a file, it continued to work. I enabled monitor folders and it continued to transcode, not sure it will change after a restart.

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