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)
All these issues are locally, no issues outside network
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.
Download the logs from Plex
Recreate the problem
Wait about a minute
Settings - Server - Troubleshooting - Download Logs
Take the ZIP file it gives you
Drag it into the Reply window here
Let it upload (will convert to a URL when done)
Hit REPLY again to finish
Yes.
You don’t have a QSV (vaapi capable) CPU . That Xeon doesn’t have QSV
You do have an Nvidia GPU card which it’s trying to use.
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.
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.
So QSV is enabled or something?
ChuckPa
October 16, 2021, 1:29am
10
yes, QSV is enabled.
By default, Plex will pick the first transcoding hardware it finds .
How is the machine configured? QSV CPU + GPU ?
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 ~ #
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])
ChuckPa
October 20, 2021, 3:58am
14
@l33tster
I need to see the ZIP file… I can’t debug a screenshot.
The error I can see implies:
More than 65536 directories being monitored
-or-
Transcoder temp directory is on a network share (where locking doesn’t work)
ChuckPa
October 20, 2021, 4:06am
17
Thanks.
How much media is indexed ? (how many directories)
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.
ChuckPa
October 20, 2021, 4:08am
19
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)
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
But on Windows plex app I get An unknown error occurred (4294967279)
Error code: 4294967279