Jump to content

Newly installed Nvidia Quatro K2000 in a Dell R910 - hw transcoding


metalcated

Recommended Posts

metalcated

Sorry for the major delay. I did this today and it seems that the driver has been successfully installed but still is using the CPU to perform on the fly transcoding. When using the Emby apps, all is good. I don't see a major spike in CPU. When using a web browser, CPU spikes and does not use the GPU as far as I can tell? Or is it and the CPU spike is normal because of using web browser? 

# nvidia-smi
Mon Mar  7 08:34:00 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01   Driver Version: 470.103.01   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro K2000        Off  | 00000000:0B:00.0 Off |                  N/A |
| 33%   52C    P0    N/A /  N/A |    199MiB /  2000MiB |     37%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      3529      C   /opt/emby-server/bin/ffmpeg       196MiB |
+-----------------------------------------------------------------------------

 

Link to comment
Share on other sites

metalcated
# nvidia-smi --query-gpu=timestamp,name,pci.bus_id,driver_version,pstate,pcie.link.gen.max,pcie.link.gen.current,temperature.gpu,utilization.gpu,utilization.memory,memory.total,memory.free,memory.used --format=csv -l 5
timestamp, name, pci.bus_id, driver_version, pstate, pcie.link.gen.max, pcie.link.gen.current, temperature.gpu, utilization.gpu [%], utilization.memory [%], memory.total [MiB], memory.free [MiB], memory.used [MiB]
# this is the system idle
2022/03/07 09:28:21.103, Quadro K2000, 00000000:0B:00.0, 470.103.01, P8, 2, 1, 46, 0 %, 0 %, 2000 MiB, 2000 MiB, 0 MiB
2022/03/07 09:28:26.104, Quadro K2000, 00000000:0B:00.0, 470.103.01, P8, 2, 1, 46, 0 %, 0 %, 2000 MiB, 2000 MiB, 0 MiB
# this is playing various 4k videos 
# start video "4K HVEC" with "TrueHD 7.1" ### smooth playback ### 
### high CPU usage 300% ### 
2022/03/07 09:28:31.106, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 50, 30 %, 7 %, 2000 MiB, 1801 MiB, 199 MiB
2022/03/07 09:28:36.107, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 51, 35 %, 7 %, 2000 MiB, 1801 MiB, 199 MiB
2022/03/07 09:28:41.108, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 51, 30 %, 7 %, 2000 MiB, 1801 MiB, 199 MiB
2022/03/07 09:28:46.110, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 52, 26 %, 6 %, 2000 MiB, 1801 MiB, 199 MiB
2022/03/07 09:28:51.111, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 52, 34 %, 8 %, 2000 MiB, 1801 MiB, 199 MiB
2022/03/07 09:28:56.112, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 53, 35 %, 8 %, 2000 MiB, 1801 MiB, 199 MiB
2022/03/07 09:29:01.114, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 53, 35 %, 8 %, 2000 MiB, 1801 MiB, 199 MiB
# stop above video
2022/03/07 09:29:06.115, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 53, 7 %, 1 %, 2000 MiB, 2000 MiB, 0 MiB
2022/03/07 09:29:11.116, Quadro K2000, 00000000:0B:00.0, 470.103.01, P5, 2, 1, 52, 0 %, 0 %, 2000 MiB, 2000 MiB, 0 MiB
# start video "4K HVEC HDR10" with "DTS-HD MA 5.1" ### glitchy playback ###
### high CPU usage 300% ### 
2022/03/07 09:29:16.118, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 53, 10 %, 5 %, 2000 MiB, 1812 MiB, 188 MiB
2022/03/07 09:29:21.119, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 54, 6 %, 5 %, 2000 MiB, 1812 MiB, 188 MiB
2022/03/07 09:29:26.121, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 54, 9 %, 6 %, 2000 MiB, 1812 MiB, 188 MiB
2022/03/07 09:29:31.122, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 54, 8 %, 3 %, 2000 MiB, 1812 MiB, 188 MiB
2022/03/07 09:29:36.124, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 54, 8 %, 5 %, 2000 MiB, 1812 MiB, 188 MiB
2022/03/07 09:29:41.126, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 55, 9 %, 5 %, 2000 MiB, 1812 MiB, 188 MiB
2022/03/07 09:29:46.128, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 55, 14 %, 6 %, 2000 MiB, 1812 MiB, 188 MiB
# stop video
# start video "4K HVEC HDR10" with "TrueHD 7.1" ### glitchy playback ###
### high CPU usage 300% ### 
2022/03/07 09:37:07.714, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 50, 18 %, 4 %, 2000 MiB, 1776 MiB, 224 MiB
2022/03/07 09:37:12.716, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 51, 45 %, 9 %, 2000 MiB, 1776 MiB, 224 MiB
2022/03/07 09:37:17.717, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 52, 20 %, 6 %, 2000 MiB, 1776 MiB, 224 MiB
2022/03/07 09:37:22.719, Quadro K2000, 00000000:0B:00.0, 470.103.01, P0, 2, 2, 53, 30 %, 7 %, 2000 MiB, 1776 MiB, 224 MiB
# stop video
Edited by metalcated
Link to comment
Share on other sites

11 hours ago, metalcated said:

Sorry for the major delay. I did this today and it seems that the driver has been successfully installed but still is using the CPU to perform on the fly transcoding. When using the Emby apps, all is good. I don't see a major spike in CPU. When using a web browser, CPU spikes and does not use the GPU as far as I can tell? Or is it and the CPU spike is normal because of using web browser? 

# nvidia-smi
Mon Mar  7 08:34:00 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01   Driver Version: 470.103.01   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro K2000        Off  | 00000000:0B:00.0 Off |                  N/A |
| 33%   52C    P0    N/A /  N/A |    199MiB /  2000MiB |     37%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      3529      C   /opt/emby-server/bin/ffmpeg       196MiB |
+-----------------------------------------------------------------------------

 

Can we please see the ffmpeg log? There may have been some part of the transcode not supported by the GPU.

Link to comment
Share on other sites

On 3/9/2022 at 10:40 PM, metalcated said:

Actually this looks like it is succeeding but just not performing quickly enough to be playable. This is likely due to having to burn in subtitles. I have a pre-written answer for this as this comes up somewhat frequently. Please see the troubleshooting section at the bottom of this article:

https://support.emby.media/support/solutions/articles/44001160148-hardware-acceleration-overview

Please let me know if that helps. Thanks.

Link to comment
Share on other sites

@metalcated  - in your case it's not subtitles alone. It's the combination of subtitle burn-in and 4k output, which means that burn-in needs to operate on 4 times the data than with full hd. So either don't use graphic subs or reduce the resolution to full hd. Both of these options will most likely work well.

 

Link to comment
Share on other sites

metalcated
40 minutes ago, Luke said:

Actually this looks like it is succeeding but just not performing quickly enough to be playable. This is likely due to having to burn in subtitles. I have a pre-written answer for this as this comes up somewhat frequently. Please see the troubleshooting section at the bottom of this article:

https://support.emby.media/support/solutions/articles/44001160148-hardware-acceleration-overview

Please let me know if that helps. Thanks.

Well heck, I didn't know that at all! Good news is that I use the native apps as much as I can where applicable but I cannot control what others do who use my Emby server (My MOM! Who uses a web browser no matter how many times I have showed her the Windows App! Lol). Any way to completely disable transcoding on the fly? I see one settings --> 

image.png.bc19353a1e9315c416a6fc53f1e5012d.png

 

26 minutes ago, softworkz said:

@metalcated  - in your case it's not subtitles alone. It's the combination of subtitle burn-in and 4k output, which means that burn-in needs to operate on 4 times the data than with full hd. So either don't use graphic subs or reduce the resolution to full hd. Both of these options will most likely work well.

 

Yeah I believe that is happening for the HDR 10 videos only, the regular 4K HEVC don't transcode in a browser it seems or at least don't hit the CPU as much as the HDR 10 are doing. 

Overall selecting None for Subs seemed to make a big difference and I am no longer seeing choppy video in a web browser. That said, I am hoping there is or could be (feature req!) a way to have no embedded subs as a default and use .srt files via Addicted or something like that instead. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...