# Unstable transcoding and Linux file permissions

**URL:** <https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [August 23, 2023, 6:48am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304 "2023-08-23T06:48:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 23, 2023, 6:48am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/1 "2023-08-23T06:48:22Z")

</div>

Server Version#: 1.32.5.7349

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

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/23):
>
> Migration from another OS to Linux Cross OS migration is a multi-level process. Copy the PMS databases and metadata Update all the media locations to point to their new locations. Prerequisites - On the originating host Settings - Server - Library Turn off: Scan my library automatically Run a partial scan when changes are detected Include music libraries in automatic scans Scan library periodically Empty trash automatically after every scan Stop Plex ZIP up the “Plex Media Server”…

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?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 11:09am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/2 "2023-08-23T11:09:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 23, 2023, 1:07pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/3 "2023-08-23T13:07:07Z")

</div>

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](https://forums.plex.tv/uploads/short-url/7hhuufpdxRifJGN44ojz23678Hw.zip) (2,6 Mo)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 4:17pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/4 "2023-08-23T16:17:02Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 23, 2023, 6:08pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/5 "2023-08-23T18:08:05Z")

</div>

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](https://forums.plex.tv/uploads/short-url/19gAj46rEgYumLborJJLxGAfG0J.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

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 8:50pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/6 "2023-08-23T20:50:58Z")

</div>

> [@Arthuro-1er](#):
>
> I’ve just redone a transcoded playback of a movie with file rights at 644 (it doesn’t work) 19H38

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.

```auto
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

```

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 8:57pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/7 "2023-08-23T20:57:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 23, 2023, 9:16pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/8 "2023-08-23T21:16:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 9:25pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/9 "2023-08-23T21:25:23Z")

</div>

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)?

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 23, 2023, 9:43pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/10 "2023-08-23T21:43:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 9:45pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/11 "2023-08-23T21:45:37Z")

</div>

I will setup a Debian 12 VM to test this.

I have never seen this behavior before

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 24, 2023, 3:50am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/12 "2023-08-24T03:50:45Z")

</div>

I’ve setup a Debian 12.1 machine.

PMS 1.32.6.7371 (beta) on Debian 12.1

```auto
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.

```auto
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

```auto
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

```auto
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.

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 24, 2023, 5:37am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/13 "2023-08-24T05:37:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 24, 2023, 5:54am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/14 "2023-08-24T05:54:01Z")

</div>

> [@Arthuro-1er](#):
>
> arthuro@plex-serveur:/transcode/Transcode/Sessions/plex-transcode-77yjl7w4foesetmrza6ft3ff-4a795deb-efee-4ad9-be9d-ebf4f37d1723$ ls -la  
> total 82488

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

```auto
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

```auto
-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.

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 24, 2023, 6:34am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/15 "2023-08-24T06:34:20Z")

</div>

/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

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 24, 2023, 4:27pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/16 "2023-08-24T16:27:55Z")

</div>

> ~$ 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]  
> ~$

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 24, 2023, 8:00pm UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/17 "2023-08-24T20:00:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Arthuro-1er](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arthuro-1er/32/229843_2.png) [@Arthuro-1er](https://forums.plex.tv/u/Arthuro-1er)\
**Post date:** [August 25, 2023, 5:24am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/18 "2023-08-25T05:24:58Z")

</div>

Wow!  
It worked.

Great job, thanks for your help

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 25, 2023, 5:36am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/19 "2023-08-25T05:36:21Z")

</div>

I’m glad it’s solved.

I apologize for not spotting it sooner.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 23, 2023, 5:36am UTC](https://forums.plex.tv/t/unstable-transcoding-and-linux-file-permissions/851304/20 "2023-11-23T05:36:23Z")

</div>

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