August 3, 20197 yr 9 minutes ago, MandalorePatriot said: And where would I create said topic that asks for help about a specific script that only applies to this plugin?
August 3, 20197 yr 1 minute ago, uldise said: Thank you, I'll post there. I do have to say the reason I didn't post there originally is because I couldn't find it, even doing forum/Google searches.
August 4, 20197 yr I tried to get an Nvidia P2000 installed and working today, but came up short. I switched to the linuxserver.io Plex app. I installed the P2000, installed the Nvidia plugin and the card was found and installed. I watched one of the youtube tutorials, and maybe that introduced a problem. I initially added the --runtime... line in the extra parameters, but reading this forum later, it looks like if I am using the Linuxserver.io Plex app, that was not necessary, so I deleted that line later. It took me a few unfortunate hours trying to figure out how to get the command window to work, turns out I think it is a Safari bug as it works find under Firefox, ... In that process I tried to redo security, etc, thinking it was some other issue. Complete waste of time. So after moving to FireFox, I thought I was all set. But no matter what I do, when I watch nvidia-smi, no process is running on the GPU card. Most everything I tried to play was direct stream, but downgraded the video quality on one of my players and it is transcoding, just not using the P2000. I am hoping when I finally figure it out that it will use the GPU for transcoding movies syncing to my iPad. So I am giving up for today. I have gone through the setup steps a few times, no good.
August 4, 20197 yr @Ross you added the variables with their values in your Plex docker settings in unraid webUI ? Also I suppose you checked the checkbox in the Plex server settings to use hardware transcoding if available?
August 4, 20197 yr I checked the Plex checkbox I added the GPU I’d from the nvidia plugin to the field in the plex docker setup. I initially also added the runtime ref in the extra spot, but reading the latest directions, because I am using the linuxserver.io Plex docker, it sounded like all I had to do was put in the GPU info in the one spot and restart. Do I need to do the other items even though I am using the linuxserver.io Plex docker? thanks for any suggestions Ross
August 4, 20197 yr 4 hours ago, Ross said: I checked the Plex checkbox I added the GPU I’d from the nvidia plugin to the field in the plex docker setup. I initially also added the runtime ref in the extra spot, but reading the latest directions, because I am using the linuxserver.io Plex docker, it sounded like all I had to do was put in the GPU info in the one spot and restart. Do I need to do the other items even though I am using the linuxserver.io Plex docker? thanks for any suggestions Ross You could start by reading the first posts of this thread. --runtime=nvidia must be used or else it's not working. It's the variables that you can drop if you are using our container.
August 4, 20197 yr But that’s not in the 4 steps (with two numbered as step 3) listed if you are using the linuxserver.io container. That’s part of the reason I posted this, is that step missing. ———————- from top of forum ” With new installs of any of these containers from LinuxServer.io we have simplified the process of getting this working. 1. Add the desired Application from CA. 2. Switch the template to advanced mode 3. Copy the GPU UUID to the existing NVIDIA_VISIBLE_DEVICES parameter 3. Start the container.” ———— I checked above that and it only discusses installing the Nvidia plugin. Is there a step missing? thanks Ross
August 4, 20197 yr 10 minutes ago, Ross said: But that’s not in the 4 steps (with two numbered as step 3) listed if you are using the linuxserver.io container. That’s part of the reason I posted this, is that step missing. ———————- from top of forum ” With new installs of any of these containers from LinuxServer.io we have simplified the process of getting this working. 1. Add the desired Application from CA. 2. Switch the template to advanced mode 3. Copy the GPU UUID to the existing NVIDIA_VISIBLE_DEVICES parameter 3. Start the container.” ———— I checked above that and it only discusses installing the Nvidia plugin. Is there a step missing? thanks Ross You always need to use the --runtime=nvidia if you want the drivers to be available to the container. So the one that wrote the steps in the first posts forgot that. And I also forgot that you need to add the GPU string for the GPU you want to pass through.
August 7, 20197 yr Installed an Nvidia P2000 tonight into my box and got this seemingly working after adding the --runtime=nvidia and gpu ID. I played a video through Plex app on my iphone and forced it to transcode by selecting a lower res (720p vs 1080p original movie). In the plex dashboard, I confirmed "(hw)" appears next to the transcode line, and running watch nvidia-smi on the unraid command line showed the plex transcoder process! One question I did have was that I had a pretty large spike in CPU utilization, presumably because of audio decoding. My CPU is a Xeon E3-1246 v3 3.5Ghz. In this screenshot, you'll see the first 40% spike when it was playing one 1080p movie (hw transcoding video to 720p) and audio was transcoding. The second spike to approx 80% was when I played a second 1080p movie on another device (again, hw transcoding video to 720p) and audio was also transcoding. After about 30s of each, the CPU utilization dropped back down to what appears to be ~5-10%. This was what the dashboard was showing while I was playing both movies: Is this CPU utilization spike expected? Is this because of the audio transcoding? If so, why does it spike then drop back down? I would've expected it to stay high if it was due to audio transcoding. Given it went as high as 80%, will this impact my ability to transcode more than 2 movies at once? My CPU supports QuickSync. Does enabling the flag --device=/dev/dri help audio decoding in any way or is that strictly for using the CPU's onboard GPU for video encoding (and won't help with my audio transcoding)? Lastly, unrelated, can someone explain why I see a mention of an NVDEC script? What does that actually do that is not already being done with the work I've done? (To be clear, I'm not asking to troubleshoot or get help with that script. Just trying to understand what is it). Edited August 7, 20197 yr by tmchow
August 7, 20197 yr 16 minutes ago, tmchow said: Lastly, unrelated, can someone explain why I see a mention of an NVDEC script? What does that actually do that is not already being done with the work I've done? (To be clear, I'm not asking to troubleshoot or get help with that script. Just trying to understand what is it). The current PLEX server doesn't use NVDEC for the decoding part. Even when you enable hardware transcoding in Plex settings, it only use the NVENC (encoding) and still decode using CPU. The NVDEC Script is a wrapper that tricks Plex Transcoder by passingthu the Decoding command in parameters so that ffmpeg underneath will use the NVDEC too. It's not perfect in the current state as the ffmpeg is very old in Plex. The newest ffmpeg support nvdec a lot better. Hopefully, PLEX will update it soon. When you use the NVDec script, that lower your CPU usage because if it can, it will decode also with the nvidia card.
August 9, 20197 yr On 4/4/2019 at 7:08 PM, Dazog said: Yes. I have submitted a request with telegraf to expand the api calls for use with Grafana. https://github.com/influxdata/telegraf/issues/5564 Is there any traction on this, i use my for .ts -> .mp4 x265 transcoding and would love to monitor the progress.
August 9, 20197 yr The current PLEX server doesn't use NVDEC for the decoding part. Even when you enable hardware transcoding in Plex settings, it only use the NVENC (encoding) and still decode using CPU. The NVDEC Script is a wrapper that tricks Plex Transcoder by passingthu the Decoding command in parameters so that ffmpeg underneath will use the NVDEC too. It's not perfect in the current state as the ffmpeg is very old in Plex. The newest ffmpeg support nvdec a lot better. Hopefully, PLEX will update it soon. When you use the NVDec script, that lower your CPU usage because if it can, it will decode also with the nvidia card.Thanks! I got this working with this setup using a user script dailyhttps://github.com/Xaero252/unraid-plex-nvdec
August 9, 20197 yr 8 hours ago, mihcox said: Is there any traction on this, i use my for .ts -> .mp4 x265 transcoding and would love to monitor the progress. Yes, alot of them got added into latest telegraf build.
August 20, 20197 yr I'm hoping someone here can help. I keep getting a error in Plex Version 3.108.2 Quote [FFMPEG] -No VA display found for device : /dev/dri/renderD128 I'm running unraid 6.7.2 Quote Nvidia Driver Version: 430.14 GPU 0 Model & Bus: GeForce GTX 1660 Ti 02:00.0 GPU 0 UUID: GPU-131d7e98-bc16-c9a1-d5f7-2e85a1eefa1e Quote plexinc/pms-docker by plexinc NVIDIA_DRIVER_CAPABILITIES: All NVIDIA_VISIBLE_DEVICES: GPU-131d7e98-bc16-c9a1-d5f7-2e85a1eefa1e VERSION: plexpass Extra Parameters: --runtime=nvidia watch nvidia-smi does show the transcoder working and video plays fine. Just the error is bothering me because i'm trying to watch for the malformed image error and when someone that doesn't know how to use direct play on my server comes on i get spammed with this error.
August 20, 20197 yr I'm trying to get this to work with UnRaid running in a VM in ProxMox. It works fine when I boot UnRaid bare metal, but it doesn't work when within a VM. I think I have the GPU shared properly as lspci -v between ProxMox VM and baremetal appear almost the same. The PCI number and IRQ are different. Maybe someone here can spot a difference. BareMetal: UnRaid 02:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1) (prog-if 00 [VGA controller]) Subsystem: Gigabyte Technology Co., Ltd GP106 [GeForce GTX 1060 3GB] Flags: bus master, fast devsel, latency 0, IRQ 26, NUMA node 0 Memory at ef000000 (32-bit, non-prefetchable) [size=16M] Memory at c0000000 (64-bit, prefetchable) [size=256M] Memory at d0000000 (64-bit, prefetchable) [size=32M] I/O ports at 5000 [size=128] [virtual] Expansion ROM at 000c0000 [disabled] [size=128K] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Legacy Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [250] Latency Tolerance Reporting Capabilities: [128] Power Budgeting <?> Capabilities: [420] Advanced Error Reporting Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?> Capabilities: [900] Secondary PCI Express <?> Kernel driver in use: nvidia Kernel modules: nvidia_drm, nvidia 02:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1) Subsystem: Gigabyte Technology Co., Ltd GP106 High Definition Audio Controller Flags: bus master, fast devsel, latency 0, IRQ 10, NUMA node 0 Memory at f0080000 (32-bit, non-prefetchable) [size=16K] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting ProxMox:UnRaid 01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1) (prog-if 00 [VGA controller]) Subsystem: Gigabyte Technology Co., Ltd GP106 [GeForce GTX 1060 3GB] Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at c0000000 (32-bit, non-prefetchable) [size=16M] [virtual] Memory at 800000000 (64-bit, prefetchable) [size=256M] Memory at 810000000 (64-bit, prefetchable) [size=32M] I/O ports at d000 [size=128] [virtual] Expansion ROM at c1020000 [disabled] [size=128K] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Legacy Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [250] Latency Tolerance Reporting Capabilities: [128] Power Budgeting <?> Capabilities: [420] Advanced Error Reporting Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?> Kernel driver in use: nvidia Kernel modules: nvidia_drm, nvidia 01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1) Subsystem: Gigabyte Technology Co., Ltd GP106 High Definition Audio Controller Flags: bus master, fast devsel, latency 0, IRQ 10 Memory at c1000000 (32-bit, non-prefetchable) [size=16K] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting The only thing I can find different is this biggie dmesg | grep GPU [ 271.949382] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x26:0xffff:1133) [ 271.949691] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0 From googling around it sounds like it is 1 of 2 things. Either the GPU is broken (which I know otherwise because it works baremetal), or the NVidia drivers are loaded wrong. Odd here because it is the same drivers, etc. Hoping someone may see something I missed. thanks david
August 21, 20197 yr I'm hoping someone here can help. I keep getting a error in Plex Version 3.108.2 [FFMPEG] -No VA display found for device : /dev/dri/renderD128 I'm running unraid 6.7.2 Nvidia Driver Version: 430.14 GPU 0 Model & Bus: GeForce GTX 1660 Ti 02:00.0 GPU 0 UUID: GPU-131d7e98-bc16-c9a1-d5f7-2e85a1eefa1e plexinc/pms-docker by plexinc NVIDIA_DRIVER_CAPABILITIES: All NVIDIA_VISIBLE_DEVICES: GPU-131d7e98-bc16-c9a1-d5f7-2e85a1eefa1e VERSION: plexpass Extra Parameters: --runtime=nvidia watch nvidia-smi does show the transcoder working and video plays fine. Just the error is bothering me because i'm trying to watch for the malformed image error and when someone that doesn't know how to use direct play on my server comes on i get spammed with this error.I had this error when I was mistakenly including a modprobe command in my go file which I think was exposing my quick sync cpu. I can’t remember which modprobe it was but as soon as I removed it and rebooted my plex logs no longer had the error. ..: or it could’ve been a coincidence and my reboot is the thing that solved it
August 21, 20197 yr 15 minutes ago, tmchow said: I'm running unraid 6.7.2 watch nvidia-smi does show the transcoder working and video plays fine. Just the error is bothering me because i'm trying to watch for the malformed image error and when someone that doesn't know how to use direct play on my server comes on i get spammed with this error. I had this error when I was mistakenly including a modprobe command in my go file which I think was exposing my quick sync cpu. I can’t remember which modprobe it was but as soon as I removed it and rebooted my plex logs no longer had the error. ..: or it could’ve been a coincidence and my reboot is the thing that solved it well i have no rebooted in a while... may have to give that a go.
August 21, 20197 yr I restarted my Plex server yesterday and now several services such as Docker, VMS, APPS won't start, the system will not shutdown cleanly, etc. See this thread where I have put more details here: This seems related to Unraid Nvidia 6.7.2 as if I back the system back to regular Unraid 6.7.2 everything seems fine but when I convert back to Unraid Nvidia 6.7.2 I get the odd behavior with no Docker, VMS, etc. and the system will not cleanly shutdown. Can someone please provide some guidance on how to troubleshoot this issue? I have been running Nvidia 6.7.2 since it was released without issues and multiple reboots. I use the Nvidia version to passthrough a P2000 to my Plex docker. My system is built on a Threadripper 2920x. Any help you can offer would be very much appreciated. My diagnostics file is attached in the thread linked above Thank you EDIT - As a test I also tried Unraid Nvidia 6.7.1 with the same experience. I have a monitor on my console now and when the system is shutdown it keeps waiting for Docker to die. Edited August 21, 20197 yr by Grimjack
August 21, 20197 yr More troubleshooting, I pulled my Nvidia P2000 card out (the one passed through to my Plex Docker) and my Nvidia 1050Ti passed to my Win10 VM and the system booted normally and services started (Unraid Nvidia 6.7.1). I shutdown (normally for a change) and reinstalled my P2000 and brought the system back up and docker and VM started normally. I upgraded back to Nvidia 6.7.2 and restarted (normally again) and everything is back up and running. I am going to leave the 1050Ti out of the system and test it in another PC I am building to see if there are any issues with that card. Has anyone experienced anything similar to this with Nvidia Unraid?
August 21, 20197 yr 29 minutes ago, Grimjack said: More troubleshooting, I pulled my Nvidia P2000 card out (the one passed through to my Plex Docker) and my Nvidia 1050Ti passed to my Win10 VM and the system booted normally and services started (Unraid Nvidia 6.7.1). I shutdown (normally for a change) and reinstalled my P2000 and brought the system back up and docker and VM started normally. I upgraded back to Nvidia 6.7.2 and restarted (normally again) and everything is back up and running. I am going to leave the 1050Ti out of the system and test it in another PC I am building to see if there are any issues with that card. Has anyone experienced anything similar to this with Nvidia Unraid? Yes, very similar issues. I have an RTX 2080 passed to a Windows VM and a P2000 for transcodes. Even with hardware acceleration disabled and the NVIDIA variables removed from the Plex docker, I'm getting random crashes that require a hard reboot. Haven't had much time to troubleshoot, but I was planning to start by reverting to vanilla unRAID to see if that was the issue. I'll continue following your progress and will report updates as well. Thanks!
August 21, 20197 yr 1 hour ago, JasonM said: Yes, very similar issues. I have an RTX 2080 passed to a Windows VM and a P2000 for transcodes. Even with hardware acceleration disabled and the NVIDIA variables removed from the Plex docker, I'm getting random crashes that require a hard reboot. Haven't had much time to troubleshoot, but I was planning to start by reverting to vanilla unRAID to see if that was the issue. I'll continue following your progress and will report updates as well. Thanks! Are you guys stubbing the card you pass through? If you are not, do try to stub the card passed through. The crashes might be caused by passing the card through when the nvidia driver controls the gpu.
August 21, 20197 yr 2 minutes ago, saarg said: Are you guys stubbing the card you pass through? If you are not, do try to stub the card passed through. The crashes might be caused by passing the card through when the nvidia driver controls the gpu. I am not currently, but I'll try that tonight. If I wake up in the morning to a functioning unRAID UI, that may be the fix.
August 22, 20197 yr I know in the Starting thread there was told ""DVB later" but: Do have already anyone running Unraid-Nvidia-Plugin/patch and Unraid-DVB-Plugin/patch both together?
August 23, 20197 yr On 8/21/2019 at 5:16 PM, saarg said: Are you guys stubbing the card you pass through? If you are not, do try to stub the card passed through. The crashes might be caused by passing the card through when the nvidia driver controls the gpu. Regrettably, this did not correct the problem. At least not for me. I'm going to leave it stubbed since that makes sense anyway, but I'm still chasing random crashes. It seems to happen over night, so I suspect it is a scheduled task that's making things freak out. I'll post diags to the main forum and see what we get.
August 24, 20197 yr i have noticed recently that Plex is stating that it is using HW transcoding but when i look at my cpu usage and watch nvidia-smi there is nothing using the GPU i have tried both Typing in the GPU and copying and pasting the UUID and nothing changes. has anyone else ran into this?
Archived
This topic is now archived and is closed to further replies.