Jump to content

HW Acceleration not using GPU


Recommended Posts

ITGuy1024
Posted (edited)

Hey all,

I built a new emby server and it doesn't seem to be using the GPUs for HWA. During playback I see ffmeg tax the CPU pretty heavily. 
Under the HWA settings > advanced both GPUs are selected for use.

CPU: Intel Xeon E5-1607
Memory: 64GB
GPU1: GeForce GTX 750 Ti
GPU2: GeForce GTX 750 Ti
OS: Server 2016
Nvidia Driver: 471.41
Emby Premier: Yes

embyserver.txt embyserver-63764972398.txt ffmpeg-transcode-8b77e8e7-e6b4-4a9e-8f99-e56217fcbfa9_1.txt ffmpeg-transcode-64cd6977-764c-43f6-a325-7c0204cc75ad_1.txt ffmpeg-transcode-f1967ffd-c5d6-4a12-a969-88dacf55dbb7_1.txt hardware_detection-63764972430.txt

Edited by ITGuy1024
rbjtech
Posted

I would start by removing/disabling one of the GTX cards.

I don't believe emby/ffmpeg can use more than one GPU anyway - so it might be confusing things - leading to neither of them working.

Also ensure the Nvidia driver is the one from Nvidia, not the Microsoft one.

ITGuy1024
Posted
6 minutes ago, rbjtech said:

I would start by removing/disabling one of the GTX cards.

I don't believe emby/ffmpeg can use more than one GPU anyway - so it might be confusing things - leading to neither of them working.

Also ensure the Nvidia driver is the one from Nvidia, not the Microsoft one.

Thanks. I had tried it with one and it had the same behavior.
The drive is also the one from Nvidia.

rbjtech
Posted

@softworkz is the expert on this - so hopefully he'll be along to advise.  

GrimReaper
Posted (edited)

I've gone through your logs, they are used when applicable, like your 1st log, AVC 1080p:

>>>>>>  User policy for Emby
        EnablePlaybackRemuxing: True
        EnableVideoPlaybackTranscoding: True
        EnableAudioPlaybackTranscoding: True

>>>>>>  Affected codecs
Encoder NVENC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)
        Adapter #0: 'NVIDIA GeForce GTX 750 Ti' ComputeCapability: 5.0
        Frame Sizes: max 4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)

Decoder NVDEC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)
        Adapter #0: 'NVIDIA GeForce GTX 750 Ti' ComputeCapability: 5.0
        Frame Sizes: 48x16...4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Profiles: Constrained Baseline Profile (Level 6), Baseline Profile (Level 6), Main Profile (Level 6), High Profile (Level 6), Constrained High Profile (Level 6), Progressive High Profile (Level 6)


>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Custom
Info    Checking: 'NVENC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)'
Info    Check successful - selecting 'NVENC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, Mode: Custom
Info    Checking: 'NVDEC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)'

>>>>>>  Processing Plan
Info    Name                                        CanDoInHardware      WillDoInHardware     Reason                                  
Info    NVDEC NVIDIA GeForce GTX 750 Ti - H.2... >> True                 True                 Hardware Codec                           
Info    VideoInput                               >> True                 False                Matching hardware context                
Info    SubtitleOverlay                          >> False                False                                                         
Info    VideoOutput                              >> True                 True                 Hardware encoder                         
Info    NVENC NVIDIA GeForce GTX 750 Ti - H.2... >> True                 True                 Hardware Codec                           

>>>>>>  Projected Processing Formats
Info    Previous                HW-Context   Format       SW-Format           Size   Next
Info    h264_cuvid           >> -            nv12         nv12           1920x1080 >> overlay
Info    overlay              >> -            nv12         nv12           1920x1080 >> 

However, looks like the only Maxwell that supports HEVC 4K 10-bit decode in hardware is GTX 960/950, so you're only getting HW encode in that case:

 
>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Custom
Info    Checking: 'NVENC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)'
Info    Check successful - selecting 'NVENC NVIDIA GeForce GTX 750 Ti - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: hevc, Mode: Custom
Info    Checking: 'DX11VA NVIDIA GeForce GTX 750 Ti - H.265 (HEVC)'
NoMatch Encoder is not compatible with 'D3d11va' decoders
Info    Checking: 'DX11VA NVIDIA GeForce GTX 750 Ti [1] - H.265 (HEVC)'
NoMatch Encoder is not compatible with 'D3d11va' decoders
Info    Checking: 'DX11VA NVIDIA GeForce GTX 750 Ti - H.265 (HEVC)'
NoMatch Encoder is not compatible with 'D3d11va' decoders
Info    Checking: 'DX11VA NVIDIA GeForce GTX 750 Ti [1] - H.265 (HEVC)'
NoMatch Encoder is not compatible with 'D3d11va' decoders
Info    Checking: 'Automatic software decoder'
Info    Check successful - selecting 'Automatic software decoder'
Info    Tone Mapping would be desired, but hardware tone mapping is disabled

>>>>>>  Processing Plan
Info    Name                                        CanDoInHardware      WillDoInHardware     Reason                                  
Info    Automatic software decoder               >> False                False                Software Codec                           
Info    VideoInput                               >> False                False                Not a hardware decoder                   
Info    ToneMapping (when possible)              >> True                 True                                                          
Info    VideoOutput                              >> True                 True                 Hardware encoder                         
Info    NVENC NVIDIA GeForce GTX 750 Ti - H.2... >> True                 True                 Hardware Codec                           

>>>>>>  Projected Processing Formats
Info    Previous                HW-Context   Format       SW-Format           Size   Next
Info    hevc                 >> -            yuv420p10    yuv420p10      3840x2160 >> hwupload_cuda
Info    hwupload_cuda        >> CUDA         cuda         yuv420p10      3840x2160 >> scale_cuda
Info    scale_cuda           >> CUDA         cuda         nv12           3840x2160 >> setsar
Info    setsar               >> CUDA         cuda         nv12           3840x2160 >> 

 

Edited by GrimReaper76
rbjtech
Posted

On the 1080 log - it does appear to be using the GPU ?

12:22:22.962 Stream mapping:
12:22:22.962   Stream #0:0 (h264_cuvid) -> overlay:main (graph 0)
12:22:22.962   Stream #0:3 (pgssub) -> scale (graph 0)
12:22:22.962   overlay (graph 0) -> Stream #0:0 (h264_nvenc)

Try swapping the priority on the decoder and putting CUVID at the bottom ?

Posted

The 750 TI is only going to decode mpeg2 and AVC streams in hardware so it won't decode HEVC if you have files using that.

ITGuy1024
Posted
2 minutes ago, cayars said:

The 750 TI is only going to decode mpeg2 and AVC streams in hardware so it won't decode HEVC if you have files using that.

Would a quadro k620 do hevc?

GrimReaper
Posted
2 minutes ago, cayars said:

The 750 TI is only going to decode mpeg2 and AVC streams in hardware so it won't decode HEVC if you have files using that.

He has, streams 2 and 3 are HEVC, no HW decode. 

  • Thanks 1
GrimReaper
Posted
1 minute ago, ITGuy1024 said:

Would a quadro k620 do hevc?

It's still Maxwell, so I'd guess nope. 

  • Like 1
Posted

Yes it's a Maxwell 1st gen chip so basically the same abilities for transcoding as the 750-TI

 

  • Like 1
Posted

@ITGuy1024 -  No way to get hw decoding for HEVC 10bit - BUT:

  • For the first ffmpeg log:
    You could try the Emby Server beta which supports hw accelerated subtitle overlay
  • For the other two logs:
    You could try to enable hw tone mapping. It might or might not be faster

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...