Selur's Little Message Board
GPU decoding only at 2% utilization - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: GPU decoding only at 2% utilization (/thread-3846.html)



GPU decoding only at 2% utilization - Donny - 02.09.2024

Hello.

I have an Nvidia 4000 card I'm trying to get the most out of in Hybrid. I encode to x264 mp4. Deinterlacing and usually run four filters. Can I get more from the GPU or will I have to move to NCEnc. Thanks in advance. 

Don


RE: GPU decoding only at 2% utilization - Donny - 03.09.2024

Testing a bit more, this is due to vapursynth. If I turn off all filters the GPU is at 100%. Is this normal behaviour?


RE: GPU decoding only at 2% utilization - Selur - 03.09.2024

Yes, since if you use Vapoursynth, without enabling gpu hardware decoding or when your source can't be decoded by the gpu decoder chip the hardware decoding can't be used.
Using NVEnc© as encoder + enabling "NVEnc->Hardware->Only use encoder" will be the fastest. Then no Vapoursynth&Avisynth can be used, since everything is done through NVEnc. (having decoding, filtering and encoding directly on graphic board is the fastest)
When Using NVEnc© and using Synth, enabling "NVEnc->Misc->Misc->DirectSynthLoading" (and depending on the input 'MT'), might also speed things up. This way, the Vapoursynth/Avisynth scripts will be directly loaded by NVEnc©.

For decoding, when using NoSynth, enabling "Config->Input->Decoding->Use gpu for decoding" might speed things up, assuming the input can be decoded by the decoder chip of your gpu.

Using NVEnc as encoder and Vapoursynth, and your source can be decoded through the decoder chip, depending on the used SourceFilter, decoding can get faster if that source filter supports gpu decoding and that is enabled. "Filtering->Vapoursynth->Misc->Source", 'Use DGDecNV when available', 'Prefer BestSource' with 'gpu' and' configuring 'Libav hardware decoding mode' can help there.

Also, using gpu based filters might help.
When using Vapoursynth or Avisynth, depending on the filters, it's normal that the gpu isn't full utilized since:
a. cpu based filters might bottleneck the gpu filters
b. copying data between cpu and gpu will slow stuff down.

Cu Selur


RE: GPU decoding only at 2% utilization - Donny - 03.09.2024

Hello Selur

I appreciate your help. The filters being used are QTGMC, DegrainMedian, DFTTest, YAHR, and aWarpSharp2

When enabling DirectSynthLoading the fps tanks <10 - and 'best source for file input' 'cuda' crashes.

the source file is Huffyuv 32bit AVI.

Don


RE: GPU decoding only at 2% utilization - Selur - 03.09.2024

Huffyuv is not supported by the decoder chip, it can only be decoded by the CPU, so:
1. so leave Bestsource set to CPU.
2. there is probably nothing you can do aside from trying to tweak your settings or use other filters.

Cu Selur