Unstable transcoding and Linux file permissions

Server Version#: 1.32.5.7349

I migrated my Ubuntu to Debian 12 following @ChuckPa 's tutorial.

I applied the following permissions (the server rights on ubuntu were too permissive because I hadn’t set them up)
chown -R plex:plex "/var/lib/plexmediaserver

find /var/lib/plexmediaserver -type d -exec chmod 755 {} ;

find /var/lib/plexmediaserver -type f -exec chmod 644 {} ;

here I am with linux-compliant rights, but my plex no longer works properly when it needs to perform transcoding. The Dashboard says it’s transcoding, but I can’t see an image on the screen.

After searching and comparing with my plex on ubuntu, I realized that it was a file rights issue that was causing problems. I changed the rights of the /var/lib/plexmediaserver -type f files to 755, as for the directories, and it started working again.

Can this situation be improved or are my file rights, although not strictly compliant, still correct?

what does ‘groups plex’ and ‘ls -la /dev/dri’ show?

also what is the CPU?

I will also need the DEBUG logs ZIP file.
There must be something significant in there.

Here’s the zip of the logs

They were recorded yesterday with the d 755 and f 644 rights.

The last movie played is Patriots Day, and the transcoding worked, the one before that is Balde Runner and the transcoding was active but no image was playing.

~$ ls -la /dev/dri
total 0
drwxr-xr-x 3 root root 100 22 août 16:00 .
drwxr-xr-x 19 root root 3700 22 août 16:00 …
drwxr-xr-x 2 root root 80 22 août 16:00 by-path
crw-rw----+ 1 root render 226, 0 22 août 16:00 card0
crw-rw----+ 1 root render 226, 128 22 août 16:00 renderD128

~$ groups plex
plex : plex video render

CPU = 12 th gen 12700k

Plex Media Server Logs_2023-08-22_10-19-03.zip (2,6 Mo)

Where is the transcoder temp directory ?

Is it on a local device or using network storage
-OR-
Did you move the PMS default directory ?

I ask because:

Aug 22, 2023 10:15:48.728 [140653322705720] DEBUG - Request: [192.168.1.85:33932 (Subnet)] GET /statistics/bandwidth?timespan=6 (8 live) #368 TLS GZIP Signed-in Token (Arthuro 1er) (Firefox)
Aug 22, 2023 10:15:48.729 [140653373635384] DEBUG - Completed: [192.168.1.85:33932] 200 GET /statistics/bandwidth?timespan=6 (8 live) #368 TLS GZIP 0ms 1922 bytes (pipelined: 173)
Aug 22, 2023 10:15:49.000 [140653326924600] ERROR - [Req#361/Transcode/fsxu8z5bt77qm01qrrixarcu/a75c7043-4732-4c37-be9e-055287eab0d0] [truehd_eae @ 0x7fef110c5040] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-9375532d-ff12-4f36-94d4-03ff408ebb36/EasyAudioEncoder/Convert to WAV (to 8ch or less)/fsxu8z5bt77qm01qrrixarcu_109192-0-0.wav'
Aug 22, 2023 10:15:49.000 [140653329034040] ERROR - [Req#36c/Transcode/fsxu8z5bt77qm01qrrixarcu/a75c7043-4732-4c37-be9e-055287eab0d0] [truehd_eae @ 0x7fef110c5040] error reading output: -5 (I/O error)
Aug 22, 2023 10:15:49.000 [140653258869560] ERROR - [Req#36d/Transcode/fsxu8z5bt77qm01qrrixarcu/a75c7043-4732-4c37-be9e-055287eab0d0] Error while decoding stream #0:1: I/O error
Aug 22, 2023 10:15:49.025 [140653322705720] ERROR - [Req#36e/Transcode/fsxu8z5bt77qm01qrrixarcu/a75c7043-4732-4c37-be9e-055287eab0d0] [AVHWDeviceContext @ 0x7fef10f94800] No matching devices found.
Aug 22, 2023 10:15:49.460 [140653326924600] DEBUG - Request: [192.168.1.85:33932 (Subnet)] GET /statistics/resources?timespan=6 (8 live) #36b TLS GZIP Signed-in Token (Arthuro 1er) (Firefox)

This type of error occurs when:

  1. The inotify table is full. The default on current linux kernels is 8192 → 65536 (dependent on memory). I do not see evidence of table full in your logs
  2. The transcoder temp directory (or remapped TEMP) directory is on a network location where file locking & notify does not work.

The transcoding directory is located on a 1 TO partition on a second SSD disk. The transcoding home directory is owned by plex :plex

The PMS default directory has not been changed.

Plex Media Server Logs_2023-08-23_19-46-35.zip (3,1 Mo)

I’ve just redone a transcoded playback of a movie with file rights at 644 (it doesn’t work) 19H38

Then the same film with file rights at 755 (it works) 19H45

  1. Show me the exact pathname please where you set ‘644’ permissions (ls -la)

  2. What is ‘19H45’ ? timestamp 19:45h?

This is the failure I find; playing the dolby vision content.
Now must know where you set 644 file permissions.

Aug 23, 2023 19:38:44.426 [139715911052088] DEBUG - Completed: [192.168.1.80:59514] 200 GET /statistics/bandwidth?timespan=6 (11 live) #135 TLS GZIP 0ms 1056 bytes (pipelined: 16)
Aug 23, 2023 19:38:45.000 [139715863943992] ERROR - [Req#133/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] [truehd_eae @ 0x7f38c1fbc040] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-debf2b7c-4a3e-49bb-8f65-b90a45304e9d/EasyAudioEncoder/Convert to WAV (to 8ch or less)/4fwc3ojg3yrta3j1y3utqrzu_185409-0-6.wav'
Aug 23, 2023 19:38:45.000 [139715861834552] ERROR - [Req#137/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] [truehd_eae @ 0x7f38c1fbc040] error reading output: -5 (I/O error)
Aug 23, 2023 19:38:45.001 [139715855506232] ERROR - [Req#138/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] Error while decoding stream #0:1: I/O error
Aug 23, 2023 19:38:45.415 [139715876809528] DEBUG - [HttpClient/HCl#37] HTTP simulating 408 after curl timeout
Aug 23, 2023 19:38:45.415 [139715868162872] DEBUG - SSDP departed after not being seen for 30.048715 seconds: 192.168.1

supplemental: Permissions for /tmp must be 777 so all system usernames can use the /tmp partition.

Yes, is timestamp

find /var/lib/plexmediaserver -type f -exec chmod 644 {} ;

arthuro@plex-serveur:~$ cd /var/lib/plexmediaserver
arthuro@plex-serveur:/var/lib/plexmediaserver$ ls -la
total 12
drwxr-xr-x 3 plex plex 4096 21 août 20:03 .
drwxr-xr-x 53 root root 4096 21 août 20:03 …
drwxr-xr-x 3 plex plex 4096 21 août 20:03 Library

This is not a /tmp partition in use for transcode, this a specific partition, only for plex transcode

It is from here that we find the files in 644. Currently they are in 755. I cannot modify them for the moment, I have two users viewing on the server.

arthuro@plex-serveur:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ ls -la
total 132
drwxr-xr-x 14 plex plex 4096 23 août 19:45 .
drwxr-xr-x 3 plex plex 4096 2 juil. 12:06 …
drwxr-xr-x 10 plex plex 4096 23 août 22:53 Cache
drwxr-xr-x 7 plex plex 4096 23 juil. 14:02 Codecs
drwxr-xr-x 43 plex plex 4096 23 août 19:45 ‘Crash Reports’
drwxr-xr-x 2 plex plex 4096 3 févr. 2022 Diagnostics
drwxr-xr-x 4 plex plex 4096 20 oct. 2022 Drivers
-rw------- 1 plex plex 42 23 août 19:45 .LocalAdminToken
drwxr-xr-x 4 plex plex 4096 23 août 23:00 Logs
drwxr-xr-x 3 plex plex 4096 1 juil. 14:27 Media
drwxr-xr-x 7 plex plex 4096 1 juil. 14:28 Metadata
-rw-r–r-- 1 plex plex 6 23 août 19:45 plexmediaserver.pid
drwxr-xr-x 2 plex plex 4096 22 janv. 2022 Plug-ins
drwxr-xr-x 7 plex plex 4096 1 juil. 14:28 ‘Plug-in Support’
-rw------- 1 plex plex 1721 23 août 19:45 Preferences.xml
drwxr-xr-x 3 plex plex 4096 1 juil. 14:28 Scanners
-rw------- 1 plex plex 12330 23 août 19:45 ‘Setup Plex.html’
-rwxr-xr-x 1 plex plex 12330 17 mai 08:29 ‘Setup Plex.html.tmp.99cac36b-29a5-4f3f-82e2-3d2d31eb6031’
-rwxr-xr-x 1 plex plex 12330 24 avril 12:44 ‘Setup Plex.html.tmp.b4efb7a8-7d9f-4058-aa23-c8624ab080a1’
-rwxr-xr-x 1 plex plex 12330 10 avril 20:03 ‘Setup Plex.html.tmp.d9ce28af-3dad-49f3-98b0-6b0c79057dd9’
drwxr-xr-x 5 plex plex 4096 1 juil. 14:28 Updates

Please look again.

The transcoder is attempting to use /tmp

Aug 23, 2023 19:38:45.000 [139715863943992] ERROR - [Req#133/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] [truehd_eae @ 0x7f38c1fbc040] EAE timeout! EAE not running, or wrong folder? Could not read ‘/tmp/pms-debf2b7c-4a3e-49bb-8f65-b90a45304e9d/EasyAudioEncoder/Convert to WAV (to 8ch or less)/4fwc3ojg3yrta3j1y3utqrzu_185409-0-6.wav’

Could not read ‘/tmp/pms-debf2b7c-4a3e-49bb-8f65-b90a45304e9d/EasyAudioEncoder/Convert to WAV (to 8ch or less)/4fwc3ojg3yrta3j1y3utqrzu_185409-0-6.wav’

Does user plex:plex have 777 permissions to /tmp (or appropriate ACL)?

Yes with 644 permission, The transcoder attempting to use /tmp
but with 755 permission , the transcoder use /transcode

drwxrwxrwt 20 root root 4096 23 août 23:34 tmp
drwxr-xr-x 4 plex plex 4096 23 août 23:29 transcode

arthuro@plex-serveur:/transcode/Transcode/Sessions/plex-transcode-77yjl7w4foesetmrza6ft3ff-4a795deb-efee-4ad9-be9d-ebf4f37d1723$ ls -la
total 82488
drwxr-xr-x 2 plex plex 4096 23 août 23:32 .
drwxr-xr-x 4 plex plex 4096 23 août 23:29 …
-rw-r–r-- 1 plex plex 178412 23 août 23:29 media-00000.ts
-rw-r–r-- 1 plex plex 465676 23 août 23:29 media-00001.ts
-rw-r–r-- 1 plex plex 1724712 23 août 23:29 media-00002.ts
-rw-r–r-- 1 plex plex 2060480 23 août 23:29 media-00003.ts
-rw-r–r-- 1 plex plex 1860072 23 août 23:29 media-00004.ts
-rw-r–r-- 1 plex plex 1892032 23 août 23:29 media-00005.ts
-rw-r–r-- 1 plex plex 1432748 23 août 23:29 media-00006.ts
-rw-r–r-- 1 plex plex 1613416 23 août 23:29 media-00007.ts
-rw-r–r-- 1 plex plex 2230808 23 août 23:29 media-00008.ts
-rw-r–r-- 1 plex plex 909356 23 août 23:29 media-00009.ts
-rw-r–r-- 1 plex plex 433340 23 août 23:29 media-00010.ts
-rw-r–r-- 1 plex plex 238760 23 août 23:29 media-00011.ts
-rw-r–r-- 1 plex plex 419052 23 août 23:29 media-00012.ts
-rw-r–r-- 1 plex plex 372616 23 août 23:29 media-00013.ts
-rw-r–r-- 1 plex plex 394048 23 août 23:29 media-00014.ts
-rw-r–r-- 1 plex plex 353628 23 août 23:29 media-00015.ts
-rw-r–r-- 1 plex plex 497824 23 août 23:29 media-00016.ts

-rw-r–r-- 1 plex plex 786432 23 août 23:32 media-00055.ts
-rw-r–r-- 1 plex plex 67 23 août 23:29 sub-chunk-00000
-rw-r–r-- 1 plex plex 97 23 août 23:29 sub-chunk-00001
-rw-r–r-- 1 plex plex 129 23 août 23:29 sub-chunk-00002
-rw-r–r-- 1 plex plex 99 23 août 23:29 sub-chunk-00003
-rw-r–r-- 1 plex plex 93 23 août 23:29 sub-chunk-00004
-rw-r–r-- 1 plex plex 118 23 août 23:29 sub-chunk-00005
-rw-r–r-- 1 plex plex 112 23 août 23:29 sub-chunk-00006
-rw-r–r-- 1 plex plex 105 23 août 23:29 sub-chunk-00007
-rw-r–r-- 1 plex plex 116 23 août 23:29 sub-chunk-00008
-rw-r–r-- 1 plex plex 101 23 août 23:29 sub-chunk-00009
-rw-r–r-- 1 plex plex 100 23 août 23:29 sub-chunk-00010
-rw-r–r-- 1 plex plex 135 23 août 23:29 sub-chunk-00011
-rw-r–r-- 1 plex plex 84 23 août 23:30 sub-chunk-00012
-rw-r–r-- 1 plex plex 101 23 août 23:30 sub-chunk-00013
-rw-r–r-- 1 plex plex 584 23 août 23:29 sub-header

I will setup a Debian 12 VM to test this.

I have never seen this behavior before

I’ve setup a Debian 12.1 machine.

PMS 1.32.6.7371 (beta) on Debian 12.1

Aug 24, 2023 03:35:08.358 [139972589964088] INFO - Plex Media Server v1.32.6.7371-b6a09ad81 - Debian GNU/Linux PC x86_64 - build: linux-x86_64 debian - GMT 00:00
Aug 24, 2023 03:35:08.359 [139972589964088] INFO - Linux version: 12 (bookworm), language: en-US
Aug 24, 2023 03:35:08.359 [139972589964088] INFO - Processor: 8-core Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
Aug 24, 2023 03:35:08.359 [139972589964088] INFO - Compiler is - Clang 15.0.7 (https://plex.tv)
  1. HW transcoding devices - AMD Radeon and Intel QSV.
Aug 24, 2023 03:35:08.426 [139972585134904] DEBUG - [GPU] Got device: Polaris 22 XT [Radeon RX Vega M GH], amd@unknown, default true, best true, ID 1002:694c:8086:2073@0000:01:00.0, DevID [1002:694c:8086:2073], flags 0x30065
Aug 24, 2023 03:35:08.426 [139972585134904] DEBUG - [GPU] Got device: HD Graphics 630, intel@builtin, default false, best true, ID 8086:591b:8086:2073@0000:00:02.0, DevID [8086:591b:8086:2073], flags 0x38e7
  1. The FFMPEG invocation showing EAE with /tmp/pms-xxxxx directory
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode] [FFMPEG] - Created surface 0.
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode] [FFMPEG] - Direct mapping possible.
Aug 24, 2023 03:39:00.615 [139972511378232] INFO - [Req#4eb/Transcode] Preparing driver imd for GPU HD Graphics 630
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode/DriverDL/imd] Skipping download; already exists
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode/JobRunner] Job running: EAE_ROOT=/tmp/pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/8217c1c-4589-linux-x86_64/' LIBVA_DRIVERS_PATH="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64" X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 h264 -hwaccel:0 vaapi -hwaccel_fallback_threshold:0 10 -hwaccel_output_format:0 vaapi -hwaccel_device:0 vaapi -codec:1 eac3_eae -eae_prefix:1 z6t0q30mvhdpohyb83f19l6q_ -analyzeduration 20000000 -probesize 20000000 -i "/glock/media/uhd/6 Underground (2019)/6 Underground (2019).mkv" -filter_complex "[0:0]hwupload[0];[0]scale_vaapi=w=3840:h=1604:format=nv12[1];[1]hwupload[2]" -map "[2]" -metadata:s:0 language=eng -codec:0 h264_vaapi -b:0 14185k -maxrate:0 18914k -bufsize:0 37828k -r:0 23.975999999999999 -force_key_frames:0 "expr:gte(t,n_forced*1)" -filter_complex "[0:1] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[3]" -map "[3]" -metadata:s:1 language=eng -codec:1 aac -b:1 98k -f dash -seg_duration 1 -dash_segment_type mp4 -init_seg_name 'init-stream$RepresentationID$.m4s' -media_seg_name 'chunk-stream$RepresentationID$-$Number%05d$.m4s' -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name "http://127.0.0.1:32400/video/:/transcode/session/z6t0q30mvhdpohyb83f19l6q/d58f3d71-cf5b-4d9b-a39f-d30255247766/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -init_hw_device vaapi=vaapi:/dev/dri/renderD128 -filter_hw_device vaapi -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/z6t0q30mvhdpohyb83f19l6q/d58f3d71-cf5b-4d9b-a39f-d30255247766/progress
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode/JobRunner] In directory: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-z6t0q30mvhdpohyb83f19l6q-d58f3d71-cf5b-4d9b-a39f-d30255247766"
Aug 24, 2023 03:39:00.615 [139972511378232] DEBUG - [Req#4eb/Transcode/JobRunner] Jobs: Starting child process with pid 371
Aug 24, 2023 03:39:00.618 [139972541991736] DEBUG - Request: [127.0.0.1:35336 (Loopback)] PUT /video/:/transcode/session/z6t0q30mvhdpohyb83f19l6q/d58f3d71-cf5b-4d9b-a39f-d30255247766/progress?status=startup (7 live) #4e6 Signed-in Token (ChuckPA) (range: bytes=0-) 
Aug 24, 2023 03:39:00.618 [139972580916024] DEBUG - Completed: [127.0.0.1:35336] 204 PUT /video/:/transcode/session/z6t0q30mvhdpohyb83f19l6q/d58f3d71-cf5b-4d9b-a39f-d30255247766/progress?status=startup (7 live) #4e6 0ms 203 bytes (pipelined: 1) (range: bytes=0-) 
Aug 24, 2023 03:39:00.625 [139972541991736] DEBUG - Request: [127.0.0.1:35336 (Loopback)] PUT /video/:/transcode/session/z6t0q30mvhdpohyb83f19l6q/d58f3d71-cf5b-4d9b-a39f-d30255247766/progress?status=startup (7 live) #4ef Signed-in Token (ChuckPA) (range: bytes=0-) 
  1. The actual files
root@debian12:/tmp# ls -la
total 8
drwxrwxrwt  9 root root 4096 Aug 24 03:39 .
drwxr-xr-x 18 root root 4096 Aug 24 03:14 ..
drwxrwxrwt  2 root root    6 Aug 24 03:35 .ICE-unix
drwxrwxrwt  2 root root    6 Aug 24 03:35 .X11-unix
drwxrwxrwt  2 root root    6 Aug 24 03:35 .XIM-unix
drwxrwxrwt  2 root root    6 Aug 24 03:35 .font-unix
drwxr-xr-x  3 plex plex   30 Aug 24 03:39 pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199
drwx------  3 root root   17 Aug 24 03:35 systemd-private-59710e9ade9d4e1eac75e2f79a8fca04-systemd-logind.service-epIU30
drwx------  3 root root   17 Aug 24 03:35 systemd-private-59710e9ade9d4e1eac75e2f79a8fca04-systemd-resolved.service-Jv5I4S
root@debian12:/tmp# ls -la pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199/
total 8
drwxr-xr-x 3 plex plex   30 Aug 24 03:39 .
drwxrwxrwt 9 root root 4096 Aug 24 03:39 ..
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39 EasyAudioEncoder
root@debian12:/tmp# cd pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199/
root@debian12:/tmp/pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199# ls -la EasyAudioEncoder/
total 4
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39  .
drwxr-xr-x 3 plex plex   30 Aug 24 03:39  ..
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital (High Quality - 640 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital (Low Quality - 384 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital Plus (High Quality - 384 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital Plus (Max Quality - 1024 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to WAV (to 2ch or less)'
drwxr-xr-x 2 plex plex   98 Aug 24 03:45 'Convert to WAV (to 8ch or less)'
root@debian12:/tmp/pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199#  ls -la *
total 4
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39  .
drwxr-xr-x 3 plex plex   30 Aug 24 03:39  ..
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital (High Quality - 640 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital (Low Quality - 384 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital Plus (High Quality - 384 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital Plus (Max Quality - 1024 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to WAV (to 2ch or less)'
drwxr-xr-x 2 plex plex   98 Aug 24 03:47 'Convert to WAV (to 8ch or less)'
root@debian12:/tmp/pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199# ls -laR *
EasyAudioEncoder:
total 4
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39  .
drwxr-xr-x 3 plex plex   30 Aug 24 03:39  ..
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital (High Quality - 640 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital (Low Quality - 384 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital Plus (High Quality - 384 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to Dolby Digital Plus (Max Quality - 1024 kbps)'
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 'Convert to WAV (to 2ch or less)'
drwxr-xr-x 2 plex plex   98 Aug 24 03:47 'Convert to WAV (to 8ch or less)'

'EasyAudioEncoder/Convert to Dolby Digital (High Quality - 640 kbps)':
total 4
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 .
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39 ..

'EasyAudioEncoder/Convert to Dolby Digital (Low Quality - 384 kbps)':
total 4
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 .
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39 ..

'EasyAudioEncoder/Convert to Dolby Digital Plus (High Quality - 384 kbps)':
total 4
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 .
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39 ..

'EasyAudioEncoder/Convert to Dolby Digital Plus (Max Quality - 1024 kbps)':
total 4
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 .
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39 ..

'EasyAudioEncoder/Convert to WAV (to 2ch or less)':
total 4
drwxr-xr-x 2 plex plex    6 Aug 24 03:39 .
drwxr-xr-x 8 plex plex 4096 Aug 24 03:39 ..

'EasyAudioEncoder/Convert to WAV (to 8ch or less)':
total 788
drwxr-xr-x 2 plex plex     98 Aug 24 03:47 .
drwxr-xr-x 8 plex plex   4096 Aug 24 03:39 ..
-rw-r--r-- 1 plex plex  61440 Aug 24 03:47 npl1v5lzn5iuzucc71qthchj_439-0-469.ec3
-rw-r--r-- 1 plex plex 737348 Aug 24 03:47 npl1v5lzn5iuzucc71qthchj_439-0-469.wav
root@debian12:/tmp/pms-24e6bac2-be90-41a0-8bb0-f4ef6a13b199# 

I think you’re focusing on the transcoder VIDEO files.
You want to be focusing on the AUDIO files I show above.
“chunk” and “media” are all video. There is no audio there.

to understand well,
you want me to test only with audio files?
I’ll do that tonight, I’m going to work

Where is this path please?

Is /transcode in a docker container or a real path on your server ?

I recognize we are having language difficulties.

I don’t want you to focus on audio.

The problem you’re showing me is with the audio

Aug 23, 2023 19:38:44.426 [139715911052088] DEBUG - Completed: [192.168.1.80:59514] 200 GET /statistics/bandwidth?timespan=6 (11 live) #135 TLS GZIP 0ms 1056 bytes (pipelined: 16)
Aug 23, 2023 19:38:45.000 [139715863943992] ERROR - [Req#133/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] [truehd_eae @ 0x7f38c1fbc040] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-debf2b7c-4a3e-49bb-8f65-b90a45304e9d/EasyAudioEncoder/Convert to WAV (to 8ch or less)/4fwc3ojg3yrta3j1y3utqrzu_185409-0-6.wav'
Aug 23, 2023 19:38:45.000 [139715861834552] ERROR - [Req#137/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] [truehd_eae @ 0x7f38c1fbc040] error reading output: -5 (I/O error)
Aug 23, 2023 19:38:45.001 [139715855506232] ERROR - [Req#138/Transcode/4fwc3ojg3yrta3j1y3utqrzu/4ce71440-4fe5-446e-b042-1eae4b86d13c] Error while decoding stream #0:1: I/O error
Aug 23, 2023 19:38:45.415 [139715876809528] DEBUG - [HttpClient/HCl#37] HTTP simulating 408 after curl timeout
Aug 23, 2023 19:38:45.415 [139715868162872] DEBUG - SSDP departed after not being seen for 30.048715 seconds: 192.168.1

The Chunk files you show me

-rw-r–r-- 1 plex plex 1613416 23 août 23:29 media-00007.ts
-rw-r–r-- 1 plex plex 2230808 23 août 23:29 media-00008.ts
-rw-r–r-- 1 plex plex 909356 23 août 23:29 media-00009.ts
-rw-r–r-- 1 plex plex 433340 23 août 23:29 media-00010.ts
-rw-r–r-- 1 plex plex 238760 23 août 23:29 media-00011.ts

are video files. There is no audio in them.

We need to focus on why /tmp fails.

/transcoder is not in a container, it is a second ssd disk entirely dedicated to this task. it is mounted as directory in linux /transcode at the root

~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme2n1 259:0 0 931,5G 0 disk
└─nvme2n1p1 259:1 0 931,5G 0 part /transcode
nvme0n1 259:2 0 465,8G 0 disk
├─nvme0n1p1 259:3 0 476M 0 part /boot/efi
├─nvme0n1p2 259:4 0 461,9G 0 part
│ └─md0 9:0 0 461,8G 0 raid1 /
└─nvme0n1p3 259:5 0 2,8G 0 part
└─md1 9:1 0 2,8G 0 raid1 [SWAP]
nvme1n1 259:6 0 465,8G 0 disk
├─nvme1n1p1 259:7 0 476M 0 part
├─nvme1n1p2 259:8 0 461,9G 0 part
│ └─md0 9:0 0 461,8G 0 raid1 /
└─nvme1n1p3 259:9 0 2,8G 0 part
└─md1 9:1 0 2,8G 0 raid1 [SWAP]
~$

This is going to sound VERY strange.

  1. umount /transcode
  2. chmod 777 /transcode
  3. mount /transcode
  4. now set permissions to their normal plex:plex 755

If the base filesystem directory mount point doesn’t allow access correctly, mounting on top if it will behave very strangely. It is likely a Linux bug but has always been this way

1 Like

Wow!
It worked.

Great job, thanks for your help

I’m glad it’s solved.

I apologize for not spotting it sooner.

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