Plex freezing a transcode no matter the client stating out of space

Thanks! Quick testing looks good so far

With this fix Dolby is running correctly too?

This is the Dolby fix (TrueHD is a Dolby codec)

Apologies if this is a slightly different issue. I’m still having problems with 5.1 TrueHD files failing to transcode on my Apple TV, LG OLED and Safari. The movie never starts and I get a transcode error. 7.1 TrueHD is ok strangely enough. Rolling back to 1.29.2 doesn’t work either.

If I remux one of the 5.1 TrueHD files and convert the audio to AC3 then it works with direct play.

The transcode error seems to be similar to OP

Error while decoding stream #0:1: No space left on device

There is space on the device and shouldn’t be any permissions issues. I’ve tried the inotify fix. The file works in Emby (transcodes to AC3 instead of FLAC). I’ve tried in Plex on multiple devices as mentioned above. I also tried deleting the Codecs folder and reinstalling Plex. I seen this suggested elsewhere for this error.

TrueHD file MediaInfo

General
Complete name                            : /Volumes/Video/Movies/헤어질 결심 (2022)/Decision to Leave (2022) -1080p.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/dby1/iso2/mp41)
File size                                : 6.74 GiB
Duration                                 : 2 h 18 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 969 kb/s
Writing application                      : SMA

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 2 h 18 min
Bit rate                                 : 2 696 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 0)
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.054
Stream size                              : 2.61 GiB (39%)
Title                                    : FHD / FHD
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : MLP FBA
Format/Info                              : Meridian Lossless Packing FBA
Commercial name                          : Dolby TrueHD
Codec ID                                 : mlpa
Duration                                 : 2 h 18 min
Bit rate mode                            : Variable
Bit rate                                 : 4 224 kb/s
Maximum bit rate                         : 9 597 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Compression mode                         : Lossless
Stream size                              : 4.09 GiB (61%)
Title                                    : 5.1 Channel / 5.1 Channel
Language                                 : Korean
Default                                  : Yes
Alternate group                          : 1

AC3 file MediaInfo

General
Complete name                            : /Volumes/Video/Testing/_convert/Decision to Leave (2022) -1080p.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/dby1/iso2/mp41)
File size                                : 3.23 GiB
Duration                                 : 2 h 18 min
Overall bit rate                         : 3 342 kb/s
Writing application                      : SMA

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 2 h 18 min
Bit rate                                 : 2 696 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 0)
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.054
Stream size                              : 2.61 GiB (81%)
Title                                    : FHD / FHD
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : ac-3
Duration                                 : 2 h 18 min
Source duration                          : 2 h 18 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 634 MiB (19%)
Source stream size                       : 634 MiB (19%)
Title                                    : 5.1 Channel / 5.1 Channel
Language                                 : Korean
Service kind                             : Complete Main
Default                                  : Yes
Alternate group                          : 1

As you can see they are the same except for the audio track so it seems to be something with the 5.1 TrueHD track or how it is handled. Logs attached. Any suggestions would be great.

Plex Media Server.log (1.4 MB)
Plex Transcoder Statistics.log (2.8 KB)

Can we make arrangements to get a sample of the video file?

Engineering will want to see this.

Thanks for the help, I’ll do my best to create a sample and PM you. It seems to be happening with every 5.1 TrueHD file.

Sorry for double post. @ChuckPa see sample below (can’t start playback)

https://www.dropbox.com/s/t4ukq6qxwfazvge/sample%20%282023%29.mp4?dl=0

MediaInfo

General
Complete name                            : /Volumes/Video/Testing/sample (2023).mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp41/mp42)
File size                                : 39.9 MiB
Duration                                 : 33 s 356 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 10.0 Mb/s
Encoded date                             : UTC 2023-01-18 11:46:02
Tagged date                              : UTC 2023-01-18 11:46:03

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 33 s 356 ms
Source duration                          : 33 s 408 ms
Bit rate                                 : 5 447 kb/s
Maximum bit rate                         : 2 696 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 0)
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.110
Stream size                              : 21.7 MiB (54%)
Source stream size                       : 21.7 MiB (54%)
Title                                    : Core Media Video / FHD
Encoded date                             : UTC 2023-01-18 11:46:02
Tagged date                              : UTC 2023-01-18 11:46:03
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : MLP FBA
Format/Info                              : Meridian Lossless Packing FBA
Commercial name                          : Dolby TrueHD
Codec ID                                 : mlpa
Duration                                 : 33 s 356 ms
Bit rate mode                            : Variable
Bit rate                                 : 4 545 kb/s
Maximum bit rate                         : 9 597 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Compression mode                         : Lossless
Stream size                              : 18.1 MiB (45%)
Title                                    : Core Media Audio / 5.1 Channel
Language                                 : Korean
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2023-01-18 11:46:02
Tagged date                              : UTC 2023-01-18 11:46:03

Snippet of the issues showing in the log

Jan 18, 2023 11:44:33.038 [0x7f5598e41b38] ERROR - [Req#4f416c4/Transcode/q4sjj2gcfieatmk3r1u38em5/7eaee31a-45c4-4202-a570-d48ccbb4c983] Error while decoding stream #0:1: No space left on device
Jan 18, 2023 11:44:33.038 [0x7f5594ee7b38] DEBUG - [Req#4f2bc60] We're going to try to auto-select an audio stream for account 1.
Jan 18, 2023 11:44:33.038 [0x7f5594ee7b38] DEBUG - [Req#4f2bc60] Selecting best audio stream for part ID 130801 (autoselect: 1 language: en)
Jan 18, 2023 11:44:33.038 [0x7f5594ee7b38] DEBUG - [Req#4f2bc60] Audio Stream: 340124, Subtitle Stream: 340125
Jan 18, 2023 11:44:33.038 [0x7f5599bcdb38] ERROR - [Req#4f416c5/Transcode/q4sjj2gcfieatmk3r1u38em5/7eaee31a-45c4-4202-a570-d48ccbb4c983] Error while decoding stream #0:1: No space left on device
Jan 18, 2023 11:46:25.645 [0x7f5596b11b38] ERROR - [Req#4f41e9f/Transcode/easw6ovhrhu8hrd95b4xtoxt/ab3d47ef-6792-4e7b-b521-8e008766b316] Error while decoding stream #0:1: Unknown error occurred
Jan 18, 2023 11:46:25.645 [0x7f5598636b38] ERROR - [Req#4f41ea0/Transcode/easw6ovhrhu8hrd95b4xtoxt/ab3d47ef-6792-4e7b-b521-8e008766b316] Cannot determine format of input stream 0:1 after EOF
Jan 18, 2023 11:46:25.645 [0x7f55978c1b38] ERROR - [Req#4f41ea1/Transcode/easw6ovhrhu8hrd95b4xtoxt/ab3d47ef-6792-4e7b-b521-8e008766b316] Error marking filters as finished
Jan 18, 2023 11:46:25.648 [0x7f559fac9b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 17302 is 1 (failure)

I am getting similar issue when converting one particular file - it looks like plex transcoder is leaking memory - what is 7GB on the screenshot gets up to 28GB, drops and repeats.
There is plenty of space on the SSDs and the system is Win 11 with 32GB RAM, i9-9900x, RTX 3080 Ti,
Plex Server is version 1.31.0.6654.

The console log is full of such messages:

TimeFeb 04, 2023 12:10:37.353

LevelError

Thread8316

Message[Req#4ca9f0/Transcode/4967b40d-73d3-43c2-a1e8-c32cb3cc31c8/4645e0be-4f94-4d37-af47-c5087c07d472] Error while decoding stream #0:1: No space left on device

I saw that the release notes for Plex Version 1.30.2.6563 indicated:

“(Transcoder) Decoding certain TrueHD audio streams could fail (#14023)”.

I downloaded this version (Ubuntu) and confirmed that it resolved my issue. Hardware transcoding using an Nvidia GPU works properly. Thanks, @ChuckPa!!!

I know I’m late, but I’m running version 1.31.1.6716-ca0c45ff8_amd64.deb and my issues appear to be fixed too. Thanks Plex team!

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