# Issues with transcoding

**URL:** <https://forums.plex.tv/t/issues-with-transcoding/750785>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [October 15, 2021, 2:47am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785 "2021-10-15T02:47:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 15, 2021, 2:47am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/1 "2021-10-15T02:47:12Z")

</div>

Server Version#:1.24.4.5081  
Player Version#:1.35.1.2632-c6783c78

[Transcode] [FFMPEG] - libva: vaGetDriverNameByIndex() failed with unknown libva error, driver\_name = (null)  
[Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).

These errors are spit out when using plexapp transcoding locally  
Chrome doesn’t work either  
![app3.PNG|690x245]  
(upload://sWgLLwAFD4E2VEMNy4aM4LYlQz.jpeg)  
 ![app2](https://global.discourse-cdn.com/plex/original/4X/b/b/f/bbfaa9c4ed82505c0c8d5296ded9648816126cdf.png)  
 ![app](https://global.discourse-cdn.com/plex/original/4X/a/b/a/aba076a63650638561c979189b29ac9f9c2260d0.png)  
 ![chrome](https://global.discourse-cdn.com/plex/original/4X/4/e/4/4e46787a1a4630191bca780754b2cfbed4b7952a.png)

All these issues are locally, no issues outside network

---

<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:** [October 15, 2021, 3:45am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/2 "2021-10-15T03:45:34Z")

</div>

May I see the rest of the DEBUG logs ZIP file please?

It’s important to see the MDE and decisions which preceded the transcode.

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 15, 2021, 4:03am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/3 "2021-10-15T04:03:56Z")

</div>

No idea how to do that?

---

<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:** [October 15, 2021, 4:20am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/4 "2021-10-15T04:20:26Z")

</div>

Download the logs from Plex

1. Recreate the problem
2. Wait about a minute
3. Settings - Server - Troubleshooting - Download Logs
4. Take the ZIP file it gives you
5. Drag it into the Reply window here
6. Let it upload (will convert to a URL when done)
7. Hit REPLY again to finish

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 15, 2021, 4:23am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/5 "2021-10-15T04:23:39Z")

</div>

[Plex Media Server Logs\_2021-10-15\_04-23-07.zip](https://forums.plex.tv/uploads/short-url/rcCnV3XhQibnGpRd7VLAvuAoVR2.zip) (5.4 MB)

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 15, 2021, 5:18am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/6 "2021-10-15T05:18:37Z")

</div>

Was this 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:** [October 15, 2021, 6:40am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/7 "2021-10-15T06:40:14Z")

</div>

Yes.

1. You don’t have a QSV (vaapi capable) CPU . That Xeon doesn’t have QSV

2. You do have an Nvidia GPU card which it’s trying to use.

```auto
Oct 15, 2021 03:59:38.261 [0x7f0e63ae5b38] DEBUG - [Transcode] [Universal] Using local file path instead of URL: /Starlink/Movies/Evil Eye (2020)/Evil Eye (2020) WEBDL-2160p.mkv
Oct 15, 2021 03:59:38.261 [0x7f0e63ae5b38] DEBUG - [Transcode] TPU: hardware transcoding: final decoder: nvdec, final encoder: nvenc
Oct 15, 2021 03:59:38.261 [0x7f0e63ae5b38] DEBUG - [Transcode/JobRunner] Job running: EAE_ROOT='/tmp/pms-814ae53d-de07-4fa3-ba4e-90b06246f7d6/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/be22e26-4019-linux-x86_64/' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:0' 'hevc' '-hwaccel:0' 'nvdec' '-hwaccel_fallback_threshold:0' '10' '-threads:0' '1' '-hwaccel_output_format:0' 'cuda' '-hwaccel_device:0' 'cuda' '-codec:1' 'eac3_eae' '-eae_prefix:1' 'nw3ao6arlc9whkjza6vun4e2_' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/Starlink/Movies/Evil Eye (2020)/Evil Eye (2020) WEBDL-2160p.mkv' '-filter_complex' '[0:0]hwupload[0];[0]scale_cuda=w=720:h=300:format=p010[1];[1]tonemap_cuda=mobius:nv12[2]' '-map' '[2]' '-metadata:s:0' 'language=eng' '-codec:0' 'h264_nvenc' '-b:0' '1265k' '-maxrate:0' '1687k' '-bufsize:0' '3374k' '-forced-idr:0' '1' '-r:0' '23.975999999999999' '-filter_complex' '[0:1] aresample=async=1:ocl='\''stereo'\'':rematrix_maxval=0.000000dB:osr=48000[3]' '-map' '[3]' '-metadata:s:1' 'language=eng' '-codec:1' 'libopus' '-b:1' '206k' '-map' '0:2' '-metadata:s:2' 'language=eng' '-codec:2' 'copy' '-map' '0:t?' '-codec:t' 'copy' '-f' 'segment' '-segment_format' 'matroska' '-segment_format_options' 'live=1' '-segment_time' '1' '-segment_header_filename' 'header' '-segment_start_number' '0' '-segment_list' 'http://127.0.0.1:32400/video/:/transcode/session/nw3ao6arlc9whkjza6vun4e2/887a8fee-1923-4749-b466-cea3ba673300/manifest?X-Plex-Http-Pipeline=infinite' '-segment_list_type' 'csv' '-segment_list_unfinished' '1' '-segment_list_size' '5' '-segment_list_separate_stream_times' '1' '-avoid_negative_ts' 'disabled' '-map_metadata:g' '-1' '-map_metadata:c' '-1' '-map_chapters' '-1' 'chunk-%05d' '-start_at_zero' '-copyts' '-init_hw_device' 'cuda=cuda:' '-filter_hw_device' 'cuda' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/nw3ao6arlc9whkjza6vun4e2/887a8fee-1923-4749-b466-cea3ba673300/progress'
Oct 15, 2021 03:59:38.262 [0x7f0e63ae5b38] DEBUG - [Transcode/JobRunner] Jobs: Starting child process with pid 13380

```

Playback starts, transcoding is sending blocks, then administratively terminated.

```auto
deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (11 live) TLS GZIP Signed-in Token (MrPl3x)
Oct 15, 2021 04:01:36.858 [0x7f0e645b9b38] DEBUG - Content-Length is -1 (of total: -1).
Oct 15, 2021 04:01:37.298 [0x7f0e624e5b38] DEBUG - [Transcode] Transcoder segment range: 0 - 40 (40)
Oct 15, 2021 04:01:37.298 [0x7f0e6207db38] DEBUG - [Transcode] Transcoder segment range: 0 - 41 (40)
Oct 15, 2021 04:01:37.533 [0x7f0e6400ab38] DEBUG - Request: [192.168.1.55:57574 (Subnet)] GET /statistics/bandwidth?timespan=6 (11 live) TLS GZIP Signed-in Token (MrPl3x)
Oct 15, 2021 04:01:37.536 [0x7f0e65516b38] DEBUG - Completed: [192.168.1.55:57574] 200 GET /statistics/bandwidth?timespan=6 (11 live) TLS GZIP 3ms 2161 bytes (pipelined: 7)
Oct 15, 2021 04:01:37.917 [0x7f0e63ae5b38] DEBUG - Request: [192.168.1.55:57574 (Subnet)] GET /status/sessions/terminate?sessionId=051talohvk2n531w6cdzonoy&reason= (11 live) TLS GZIP Signed-in Token (MrPl3x)
Oct 15, 2021 04:01:37.918 [0x7f0e63ae5b38] DEBUG - Streaming Resource: Terminating session 0x7f0e578b1358:051talohvk2n531w6cdzonoy which is using transcoder slot. Used slots is now 0
Oct 15, 2021 04:01:37.918 [0x7f0e64235b38] DEBUG - Killing job.
Oct 15, 2021 04:01:37.918 [0x7f0e64235b38] DEBUG - Signalling job ID 13779 with 9
Oct 15, 2021 04:01:37.918 [0x7f0e63ae5b38] DEBUG - Streaming Resource: Terminated session 0x7f0e578b1358:051talohvk2n531w6cdzonoy with reason "MrPl3x" asked to stop your playback from this server. The device might be busy, restarting, or under maintenance. Try again in a few minutes.
Oct 15, 2021 04:01:37.918 [0x7f0e64235b38] DEBUG - Job was already killed, not killing again.
Oct 15, 2021 04:01:37.918 [0x7f0e64235b38] DEBUG - Stopping transcode session eivxuvablcc74fvfry3kg5ov

```

I see no error here.

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 15, 2021, 12:24pm UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/8 "2021-10-15T12:24:56Z")

</div>

So QSV is enabled or something?

---

<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:** [October 16, 2021, 1:29am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/10 "2021-10-16T01:29:01Z")

</div>

yes, QSV is enabled.

By default, Plex will pick the first transcoding hardware it finds .

How is the machine configured? QSV CPU + GPU ?

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 19, 2021, 3:15pm UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/11 "2021-10-19T15:15:54Z")

</div>

Hi, sorry for late reply. I rebuilt my machine, I’m not sure if QSV was enabled, but the issue came back with even the new OS ‘Gentoo’ How to find this out?

gentoo ~ # nvidia-smi -L  
GPU 0: Quadro P2000 (UUID: GPU-648c5d1a-418f-51ab-d01e-bea3763fb9e9)  
gentoo ~ #

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 19, 2021, 3:48pm UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/12 "2021-10-19T15:48:25Z")

</div>

Also wanted to note this.

gentoo ~ # lspci -vnnn | perl -lne ‘print if /^\d+:.+([\S+:\S+])/’ | grep VGA  
07:03.0 VGA compatible controller [0300]: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 [102b:0532] (rev 0a) (prog-if 00 [VGA controller])  
84:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106GL [Quadro P2000] [10de:1c30] (rev a1) (prog-if 00 [VGA controller])

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 20, 2021, 3:41am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/13 "2021-10-20T03:41:15Z")

</div>

add to issue now

 ![image](https://global.discourse-cdn.com/plex/original/4X/8/d/3/8d38062d3c1e5a696fca60aa8ce5c7497b762d87.jpeg)

---

<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:** [October 20, 2021, 3:58am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/14 "2021-10-20T03:58:57Z")

</div>

@l33tster

I need to see the ZIP file… I can’t debug a screenshot.

The error I can see implies:

1. More than 65536 directories being monitored  
-or-
2. Transcoder temp directory is on a network share (where locking doesn’t work)

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 20, 2021, 4:03am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/15 "2021-10-20T04:03:18Z")

</div>

[Plex Media Server Logs\_2021-10-20\_04-02-45.zip](https://forums.plex.tv/uploads/short-url/eNz5jJqXCSC42JJB1ZRZEXbUlR0.zip) (4.9 MB)

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 20, 2021, 4:05am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/16 "2021-10-20T04:05:34Z")

</div>

No network shares

---

<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:** [October 20, 2021, 4:06am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/17 "2021-10-20T04:06:31Z")

</div>

Thanks.

How much media is indexed ? (how many directories)

```auto
Oct 20, 2021 01:25:42.945 [0x7f4350161b38] DEBUG - Statistics: (ej6dgoyy8uidqqnx7e7yxhzn) Reporting active playback in state 0 of type 1 (scrobble: 0) for account 1
Oct 20, 2021 01:25:42.948 [0x7f43514cdb38] DEBUG - Completed: [192.168.1.234:35392] 200 GET /:/timeline?key=%2Flibrary%2Fmetadata%2F72868&ratingKey=72868&state=playing&time=2975109&duration=8936188&playbackTime=2946038&playQueueItemID=252&context=home%3Ahub.continueWatching&row=0&col=1 (33 live) GZIP 5ms 828 bytes (pipelined: 303)
Oct 20, 2021 01:25:45.000 [0x7f434ece3b38] ERROR - [Transcoder] [eac3_eae @ 0x7f1c222c4dc0] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-de36f04c-0017-4bcb-af20-1e3a4d4ee84c/EasyAudioEncoder/Convert to Dolby Digital Plus (High Quality - 384 kbps)/87f5d902-e18c-4897-a465-8a18981f0da6-34_2634751-0-0.ec3'
Oct 20, 2021 01:25:45.002 [0x7f4350161b38] ERROR - [Transcoder] [eac3_eae @ 0x7f1c222c4dc0] error reading output
Oct 20, 2021 01:25:45.002 [0x7f434ece3b38] ERROR - [Transcoder] Audio encoding failed
Oct 20, 2021 01:25:47.257 [0x7f43514f0b38] DEBUG - Auth: authenticated user 95886580 as wrenna

```

either there are no slots left or `/tmp` is on a network share.

---

<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:** [October 20, 2021, 4:08am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/19 "2021-10-20T04:08:17Z")

</div>

```auto
sudo sysctl fs.inotify.max_user_watches=65536

```

Now restart PMS.

See if it goes away.

If it does, then set the value permanently in `/etc/sysctl.conf`.

(I don’t know what the Gentoo default is but some kernels have 8192 while newer kernels have 65536)

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 20, 2021, 4:13am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/20 "2021-10-20T04:13:37Z")

</div>

Yes it went away now that [Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error). is back But the movie is still transcoding

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 20, 2021, 4:14am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/21 "2021-10-20T04:14:53Z")

</div>

But on Windows plex app I get An unknown error occurred (4294967279)  
Error code: 4294967279

---

<div class="post-metadata">

**Author:** ![l33tster](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@l33tster](https://forums.plex.tv/u/l33tster)\
**Post date:** [October 20, 2021, 4:15am UTC](https://forums.plex.tv/t/issues-with-transcoding/750785/22 "2021-10-20T04:15:44Z")

</div>

[Plex Media Server Logs\_2021-10-20\_04-15-21.zip](https://forums.plex.tv/uploads/short-url/oYgtHgnXYsIVwMKAPTK7ImO9Ojr.zip) (4.5 MB)

[Next page](https://forums.plex.tv/t/issues-with-transcoding/750785.md?page=2)
