Intro detection crashing when scanning truehd_eae media

@ChuckPa

Hi, as i stated i started completely new server and only copied one of the problematic files, as here is a tree for the Codec folder

$ tree
.
├── c4efa15-4387-linux-x86_64
│   └── libhevc_decoder.so
└── EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf

1 directory, 2 files
$ md5sum EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf
a823a3ee085fab8521be6a3fcf0fd664  EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf
$ 7z l EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,20 CPUs 12th Gen Intel(R) Core(TM) i7-12700K (90672),ASM,AES-NI)

Scanning the drive for archives:
1 file, 1011504 bytes (988 KiB)

Listing archive: EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf

--
Path = EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf
Type = zip
Physical Size = 1011504

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2022-04-20 11:46:32 D....            0            0  EasyAudioEncoder
2022-04-20 11:46:32 .....      2268928      1011230  EasyAudioEncoder/EasyAudioEncoder
------------------- ----- ------------ ------------  ------------------------
2022-04-20 11:46:32            2268928      1011230  1 files, 1 folders

I understand.

I would now like you to add more media which has different codecs

If you would clean the codecs directory (PMS stopped),
Add more media,
Repeat tests

@ChuckPa Sure, please see the attached file

(14:55:10) user@server /Library/Application Support/Plex Media Server/Codecs
$ tree
.
├── c4efa15-4387-linux-x86_64
│   ├── libaac_lc_decoder.so
│   ├── libh264_decoder.so
│   └── libhevc_decoder.so
├── EasyAudioEncoder-1785-linux-x86_64
│   └── EasyAudioEncoder
│       ├── eae-license.txt
│       └── EasyAudioEncoder
└── EasyAudioEncoder-1785-linux-x86_64.zip.tmp-d054-31bb-045a-fbbf

3 directories, 6 files

@m7eesn

How many files / How many series does this happen to?

Can you get me a ‘dd’ sample of the first couple minutes (no more than 20 MB) of the file you show in your example?

From your logs, we can see EAE download and start running but failing on these files.

Oct 30, 2022 14:39:55.378 [0x7fa4487afb38] DEBUG - [HttpClient/HCl#56] HTTP/2.0 (0.5s) 200 response from GET https://plex.tv/api/codecs/easyaudioencoder?build=linux-x86_64-standard&deviceId=f6e083c1-52a5-4272-93eb-111aa4339057&oldestPreviousVersion=1%2E29%2E1%2E6316-f4cdfea9c&version=1785
Oct 30, 2022 14:39:55.381 [0x7fa44776eb38] DEBUG - [GetFile/HCl#57] HTTP requesting GET https://downloads.plex.tv/codecs/1785/linux-x86_64-standard/EasyAudioEncoder-linux-x86_64-standard.zip
Oct 30, 2022 14:39:55.665 [0x7fa4487afb38] DEBUG - [HttpClient/HCl#57] HTTP/2.0 (0.3s) 200 response from GET https://downloads.plex.tv/codecs/1785/linux-x86_64-standard/EasyAudioEncoder-linux-x86_64-standard.zip
Oct 30, 2022 14:39:55.801 [0x7fa44548db38] INFO - CodecManager: starting EAE at "/tmp/pms-cfd339c2-8df5-43d7-8acf-9b1b28fa79d3/EasyAudioEncoder"
Oct 30, 2022 14:39:55.802 [0x7fa44548db38] DEBUG - [JobRunner] Job running: "/config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1785-linux-x86_64/EasyAudioEncoder/EasyAudioEncoder"
Oct 30, 2022 14:39:55.804 [0x7fa44548db38] DEBUG - [JobRunner] Jobs: Starting child process with pid 537
Oct 30, 2022 14:39:55.807 [0x7fa44548db38] DEBUG - [Universal] Using local file path instead of URL: /media/tv/Lost (2004)/Lost (2004) - S03E23 - Through The Looking Glass (2) [Bluray-1080p] [h265 TrueHD 10bit].mkv
Oct 30, 2022 14:39:55.814 [0x7fa44548db38] DEBUG - [JobRunner] Job running: EAE_ROOT=/tmp/pms-cfd339c2-8df5-43d7-8acf-9b1b28fa79d3/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4387-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx4e0e-8ef5-969dcccfa642 "/usr/lib/plexmediaserver/Plex Transcoder" -codec:1 truehd_eae -eae_prefix:1 4bc5a02e-5599-49a1-ae93-69e475cba375_ -analyzeduration 20000000 -probesize 20000000 -i "/media/tv/Lost (2004)/Lost (2004) - S03E23 - Through The Looking Glass (2) [Bluray-1080p] [h265 TrueHD 10bit].mkv" -filter_complex "[0:1] aresample=async=1:ocl='5.1':rematrix_maxval=0.000000dB:osr=48000[0]" -map "[0]" -metadata:s:0 language=eng -codec:0 flac -b:0 4096k -f flac -map_metadata -1 -map_chapters -1 -t 1297.3054999999999 "/config/Library/Application Support/Plex Media Server/Cache/Transcode/Detection/cf614d76-d6ef-4294-97f0-c163155f2764" -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress
Oct 30, 2022 14:39:55.815 [0x7fa44548db38] DEBUG - [JobRunner] Jobs: Starting child process with pid 538
Oct 30, 2022 14:39:55.819 [0x7fa448598b38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=startup (5 live) #15d Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.820 [0x7fa4499a7b38] DEBUG - Completed: [127.0.0.1:52214] 204 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=startup (5 live) 0ms 203 bytes (pipelined: 1) (range: bytes=0-) 
Oct 30, 2022 14:39:55.836 [0x7fa447d7db38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=startup (5 live) #19e Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.836 [0x7fa449baab38] DEBUG - Completed: [127.0.0.1:52214] 204 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=startup (5 live) 0ms 203 bytes (pipelined: 2) (range: bytes=0-) 
Oct 30, 2022 14:39:55.836 [0x7fa448598b38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=opening (5 live) #19f Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.836 [0x7fa4499a7b38] DEBUG - Completed: [127.0.0.1:52214] 204 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=opening (5 live) 0ms 203 bytes (pipelined: 3) (range: bytes=0-) 
Oct 30, 2022 14:39:55.839 [0x7fa447d7db38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=opened (5 live) #1a0 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.840 [0x7fa449baab38] DEBUG - Completed: [127.0.0.1:52214] 204 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?status=opened (5 live) 0ms 203 bytes (pipelined: 4) (range: bytes=0-) 
Oct 30, 2022 14:39:55.840 [0x7fa448598b38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/stream?index=0&id=0&codec=hevc&type=video (5 live) #1a1 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.840 [0x7fa4499a7b38] DEBUG - Completed: [127.0.0.1:52214] 200 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/stream?index=0&id=0&codec=hevc&type=video (5 live) 0ms 195 bytes (pipelined: 5) (range: bytes=0-) 
Oct 30, 2022 14:39:55.840 [0x7fa447d7db38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/stream?index=1&id=0&codec=truehd&type=audio (5 live) #1a2 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.840 [0x7fa449baab38] DEBUG - Completed: [127.0.0.1:52214] 200 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/stream?index=1&id=0&codec=truehd&type=audio (5 live) 0ms 195 bytes (pipelined: 6) (range: bytes=0-) 
Oct 30, 2022 14:39:55.847 [0x7fa448598b38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/streamDetail?index=0&id=0&codec=hevc&type=video&profile=Main%2010&width=1920&height=1080&interlaced=0&sar=1:1&level=120&frameRate=23.976&disp_default=1 (5 live) #1a3 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.847 [0x7fa4499a7b38] DEBUG - Completed: [127.0.0.1:52214] 200 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/streamDetail?index=0&id=0&codec=hevc&type=video&profile=Main%2010&width=1920&height=1080&interlaced=0&sar=1:1&level=120&frameRate=23.976&disp_default=1 (5 live) 0ms 195 bytes (pipelined: 7) (range: bytes=0-) 
Oct 30, 2022 14:39:55.847 [0x7fa447d7db38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/streamDetail?index=1&id=0&codec=truehd&type=audio&language=eng&channels=6&layout=5.1%28side%29&sampleRate=48000&bitDepth=24&disp_default=1 (5 live) #1a4 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.848 [0x7fa449baab38] DEBUG - Completed: [127.0.0.1:52214] 200 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/streamDetail?index=1&id=0&codec=truehd&type=audio&language=eng&channels=6&layout=5.1%28side%29&sampleRate=48000&bitDepth=24&disp_default=1 (5 live) 0ms 195 bytes (pipelined: 8) (range: bytes=0-) 
Oct 30, 2022 14:39:55.848 [0x7fa448598b38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/streamDetail?index=2&id=0&codec=hdmv_pgs_subtitle&type=subtitle&language=eng&disp_default=1 (5 live) #1a5 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.848 [0x7fa449baab38] DEBUG - Completed: [127.0.0.1:52214] 200 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress/streamDetail?index=2&id=0&codec=hdmv_pgs_subtitle&type=subtitle&language=eng&disp_default=1 (5 live) 0ms 195 bytes (pipelined: 9) (range: bytes=0-) 
Oct 30, 2022 14:39:55.851 [0x7fa447d7db38] DEBUG - Request: [127.0.0.1:52214 (Loopback)] PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?duration=2594.611000 (5 live) #1a6 Signed-in Token (my_user) (range: bytes=0-) 
Oct 30, 2022 14:39:55.851 [0x7fa44548db38] DEBUG - Using default transcode duration of 120 minutes
Oct 30, 2022 14:39:55.851 [0x7fa44548db38] DEBUG - Started session successfully: 4bc5a02e-5599-49a1-ae93-69e475cba375
Oct 30, 2022 14:39:55.851 [0x7fa4499a7b38] DEBUG - Completed: [127.0.0.1:52214] 204 PUT /video/:/transcode/session/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594/progress?duration=2594.611000 (5 live) 0ms 203 bytes (pipelined: 10) (range: bytes=0-) 
Oct 30, 2022 14:39:55.854 [0x7fa448598b38] DEBUG - Request: [172.18.0.1:58814 (Subnet)] GET /status/sessions/background (5 live) #193 GZIP Signed-in Token (my_user) (GamingPC)
Oct 30, 2022 14:39:55.854 [0x7fa4499a7b38] DEBUG - Completed: [172.18.0.1:58814] 200 GET /status/sessions/background (5 live) GZIP 0ms 397 bytes (pipelined: 20)
Oct 30, 2022 14:39:55.860 [0x7fa447d7db38] ERROR - [Req#1a9/Transcode/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594] [truehd_eae @ 0x7fa4efcc65c0] error reading output
Oct 30, 2022 14:39:55.860 [0x7fa448598b38] ERROR - [Req#1ab/Transcode/4bc5a02e-5599-49a1-ae93-69e475cba375/4aa47004-2225-459b-9605-47639f408594] Error while decoding stream #0:1: Unknown error occurred

Here’s where the mystery comes into play.

  1. I go to BluRay.com
  2. I lookup this series
  3. Nowhere does it show TrueHD for audio This series predates TrueHD by almost 10 years. TrueHD wasn’t released until 2014.

This makes me wonder just what you have there and whether it’s valid or not.

I suspect, which is reasonably confirmed by this fragment from the FFMPEG command line

Lost (2004) - S03E23 - Through The Looking Glass (2) [Bluray-1080p] [h265 TrueHD 10bit].mkv" 

that someone took the official 1080p H.264 DTS audio and made something (H.265 TrueHD) which doesn’t exist in the real world and, unfortunately, doesn’t work.

Unfortunately, something which isn’t working with the official EAE.

The question is:

  1. How to solve this?

  2. My entire BluRay library has TrueHD – I get no failures.

  3. If this were a trueHD failure – EVERYONE would be screaming.

  4. So where does the problem really lay?

@ChuckPa Thanks for taking the time to help solve this issue, i appreciate your efforts. I am willing to accept the rip was not correct if you suggest so, could you explain how do i use dd to make what you wanted? if you have private contact i can send you the entire file.

@m7eesn

‘dd’ is a great tool. When you have time, open the command line and type man dd. You’ll see the full electronic manual for ‘dd’ detailing everything it can do. Almost all commands have their manual this way so you can lookup just about anything.

dd if='name of file.ext'  of='sample_for_chuck.ext' bs=1M count=20
  • if= tells dd which Input File to use. Quote if there are spaces in the name.
  • of= tells dd where to write the output.
  • bs= tells dd how big each block (for i/o) should be
  • count= tells dd how many blocks of data to process. (default is the whole file)

We end up with

  1. Read your input file
  2. Write to “sample_for_chuck.ext”
  3. 20x 1MB blocks == 20 MB file

@ChuckPa
Thanks for the tip,

Thanks for the sample.

Yes, someone was playing around:

[chuck@lizum tmp.2003]$ mediainfo sample.mkv 
General
Unique ID                                : 251270252476800199439954602558265388477 (0xBD08E3ED2EF1821DB97AD485ADF26DBD)
Complete name                            : sample.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 20.0 MiB
Duration                                 : 43 min 14 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 64.7 kb/s
Movie name                               : Lost 3x23
Encoded date                             : UTC 2021-08-10 06:11:19
Writing application                      : DVDFab 12.0.4.2
Writing library                          : libebml v1.3.4 + libmatroska v1.4.5
IsTruncated                              : Yes

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L4@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 43 min 14 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
Bit depth                                : 10 bits
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 3
Format                                   : MLP FBA
Format/Info                              : Meridian Lossless Packing FBA
Commercial name                          : Dolby TrueHD
Codec ID                                 : A_TRUEHD
Duration                                 : 43 min 14 s
Bit rate mode                            : Variable
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
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 2
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Language                                 : English
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : en:Chapter 1
00:04:46.495                             : en:Chapter 2
00:13:28.891                             : en:Chapter 3
00:20:36.277                             : en:Chapter 4
00:25:59.349                             : en:Chapter 5
00:31:04.196                             : en:Chapter 6
00:42:32.007                             : en:Chapter 7


[chuck@lizum tmp.2004]$ 
  1. Main 10@L4 – not standard. Level 4 encoding maximum is 20 Mbps.
    If this were real HEVC, it would be Level 5 to properly carry the 10 bit bt.2020 color space.

  2. BT-709 color space is 8 bit , not 10-bit. BT-709 is/was used for H.264. BT-2020 is used for HEVC HDR. Almost nobody uses HEVC SDR anymore.

  3. As we learned from bluray.com, no HEVC / TrueHD media was ever produced.

I hope this helps show you how to spot something which isn’t genuine.

@ChuckPa Thank you for your time, i guess i just have to dig up my old blurry and rip them myself. Sorry for wasting your time.

However, i wish it would produce less errors it’s trashing the disk with that many errors when encountered. =)

It’s all good.

I’m glad I was able to help.

What are you ripping with? MakeMKV ?

As for errors like that. I test everything I rip before I put it in the library.
Some say I’m “A.R.” for doing that LOL

Hehe, i usually use makemkv yeah, but this show i couldn’t be bothered to dig up the disks to rip them so, i asked one of my friend for his copy. he does not use any media servers that’s why i assume he didn’t notice the error.

I think I’ll be doing my own from now on =)

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