Trouble Transcoding (Decoder error: 121)

Plex has been incredible to use, but just the other day it all of the sudden started to error whenever a movie or tv show needed to be transocded. I’ve come to realize that this error shows up whenever I try to transcode media with an audio codec of TrueHD. I am not sure what’s going on, and I have tried various ways of fixing it, but to no avail. I have deleted and replaced the codec file. I’ve even completed deleted the container and re-downloaded it which was a huge pain, but nothing. Lastly I tried increasing the number of directories via these steps (link here).

If there is another reason as to why this is happening I’m all ears.

I checked with Engineering.

While the dolby code prints the error, it is harmless.

It’s telling you the audio delay it encountered in the file is less than 1.

Most audio delay values are positive greater than 1 but a value of zero is valid (albeit not often seen)

So I’ve realized that I have a drive within my array that has an error. The media I’m watching that isn’t on that drive seems to work perfectly fine with the same audio codec. It looks like it’s my drive may be failing. I’ll swap it out with a healthy one and see if that fixes my issue!

Update: I replaced my bad drive with a healthy one and it unfortunately still isn’t working. That same error will show up and then a minute later the audio goes and then the video completely stops playing. I’m not really sure what’s going on, but some insight would be really appreciated.

I need to see the DEBUG log files ZIP which captures this.
Can’t diagnose further without them.

Plex Media Server Logs_2022-11-18_08-48-20.zip (2.0 MB)
Hopefully this is what you are looking for.

Think I found the problem :wink:

Nov 18, 2022 08:45:45.115 [0x153715632b38] DEBUG - Completed: [127.0.0.1:42338] 200 POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) 0ms 195 bytes (pipelined: 78852) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x1537119afb38] DEBUG - Request: [127.0.0.1:42338 (Loopback)] POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) #31955 Signed-in Token (ammonrose) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x1537119afb38] ERROR - [Req#31955/Transcode/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49] Error while decoding stream #0:1: No space left on device
Nov 18, 2022 08:45:45.115 [0x153715835b38] DEBUG - Completed: [127.0.0.1:42338] 200 POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) 0ms 195 bytes (pipelined: 78853) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x15370defbb38] DEBUG - Request: [127.0.0.1:42338 (Loopback)] POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) #31956 Signed-in Token (ammonrose) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x15370defbb38] ERROR - [Req#31956/Transcode/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49] Error while decoding stream #0:1: No space left on device
Nov 18, 2022 08:45:45.115 [0x153715632b38] DEBUG - Completed: [127.0.0.1:42338] 200 POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) 0ms 195 bytes (pipelined: 78854) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x1537113a2b38] DEBUG - Request: [127.0.0.1:42338 (Loopback)] POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) #31957 Signed-in Token (ammonrose) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x1537113a2b38] ERROR - [Req#31957/Transcode/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49] Error while decoding stream #0:1: No space left on device
Nov 18, 2022 08:45:45.115 [0x153715835b38] DEBUG - Completed: [127.0.0.1:42338] 200 POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) 0ms 195 bytes (pipelined: 78855) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x15370d8f2b38] DEBUG - Request: [127.0.0.1:42338 (Loopback)] POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) #31958 Signed-in Token (ammonrose) (range: bytes=0-) 
Nov 18, 2022 08:45:45.115 [0x15370d8f2b38] ERROR - [Req#31958/Transcode/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49] Error while decoding stream #0:1: No space left on device
Nov 18, 2022 08:45:45.115 [0x153715632b38] DEBUG - Completed: [127.0.0.1:42338] 200 POST /video/:/transcode/session/94BA0348-64DF-4DA4-AF15-63E166922B5B/65066d61-6088-4017-808a-c5cb593e0a49/progress/log?level=0&message=Error%20while%20decoding%20stream%20%230%3A1%3A%20No%20space%20left%20on%20device (9 live) 0ms 195 bytes (pipelined: 78856) (range: bytes=0-) 

I’ll be honest. This may as well be another language because I have no idea what any of it means :joy: Could you elaborate for me to help me understand? Also, thank you for your help, I really appreciate it!

What’s happening here,

  1. The audio and video are being read from the file.
  2. A transcode is needed.
  3. PMS is sending a POST message (a ‘do this’ command) to the transcoder.
  4. It tries to write the block of audio to the disk (Because it’s Dolby)
  5. The disk is reporting full.

Dolby uses /tmp

Is the /tmp (filesystem it’s on) full ?

I looked into the tmp folder and I don’t see how it could be full. It has some files in there that are only Byte sized, and it says I still have 302GB free. I feel like we’re so close to figuring this out!

Should I delete whatever is in the /tmp folder and see if that solves it?

I don’t know what’s in your /tmp directory. On my system, deleting everything in /tmp would be a problem.

go look in your /tmp.

what do you see?

what does “df -h” show?

df -h
tmp (1)
tmp (2)
tmp (3)

Here’s what I am seeing. /tmp → pms folder → EasyAudioEncoder → The folders saying “Convert to Dolby Digital…” are all empty.

I found another /tmp folder that I think is most likely being used because in my Plex container I have the file path as just /tmp which is what this folder contains:


However, it also isn’t full. Only KB of info exist on it with plenty of free space.

Here’s df -h input into my Plex container. The other one I sent was from my actual server.
df -h plex container

Thanks.

I must apologize. I forgot about the inotify table.

Do you have a lot of music or photos? Of specific importance here -

  1. Do you use a lot of directories for all of your media (movies, episodes, music, photos) ??

  2. While newer linux kernels have default table size of 65536 directories, the previous generation of kernels had a default size of 8192.

This is significant when using Dolby EAE because the transcoder requires 2 notify slots to talk to it.

If your notify table is full, there’s nothing left to allocate to the EAE/Transcode session.

As it tries to do this, it will also say “no space left on device”.
You can also see this message at PMS start if the table fills when it completes loading the Notify table.

So I did adjust that yesterday to 32768 as I was following the instructions from another of your posts. Do I need to increase it to 65536?

As far as music and/or photos, I barely have any. Zero photos, and I’d say a couple hundred of songs.
total entries

No, you don’t need to increase.

I would like you to stop Plex.

I would like you to go into the “Codecs” directory and delete everything you see except the .device_id file. This is your server’s license file.

Now start PMS and try playing again.

You’ll notice a momentary longer startup time on the first one while PMS downloads the new codecs it needs.

I deleted the files in the “Codecs” directory except for .device_id (Plex was stopped prior to this), then I started Plex back up and it still errored with the same errors.

I did increase it to 65536 just to see if that would help and it didn’t.