HEVC/X265 - 100% cpu load (2 Viewers)

BigAlb

Portal Member
October 31, 2014
15
2
Home Country
Italy Italy
On My laptop:

Using MP 1.11
tears = Quite stable at ~20% CPU. No frames dropped.
tractor = ~30% CPU. No frames dropped.
bunny = 100% CPU. Frames dropped.
Which codecs, and what are the specs of your laptop?

  • LAV 0.64.0 (none, DXVA, QS and CUVID result the same cpu usage so it seems no gpu acceleration)
  • i5 4200H
  • inbuilt Intel HD4600 + Nvidia 840M
  • Windows 8.1

Thank you for the testing! Could you try the 3 sample files directly within GraphStudio and/or MPC-HC (latest version uses integrated LAV filters 0.63)?
Considering your setup, IMHO you should be able to have a decent playback also for the "bunny" video.
 

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Interesting results in different means:
    1) Working on Texture as callback doesn't lead to reduced CPU load (but improves GPU performance though, due to one copy step less)
    2) Decoding performance of Tears and Traktor is nearly same in VLC and MP2, while Bunny is quite higher
    3) Decoding inside GraphStudio using LAV is on same level here
    Code:
    Windows 8.1
    CPU: i5 2500K
    Graphics: AMD R7 240
    
    Bunny   VLC: 35-45%     MP2 (copy): 45-76%     MP2 (Texture): 45-75%   Graphstudio: 75%
    Tears   VLC: 12-14%     MP2 (copy): 12-14%     MP2 (Texture): 12-14%
    Traktor VLC:  8-11%     MP2 (copy): 15-20%     MP2 (Texture): 19-21%
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    • Intel Q6600
    • AMD HD5470
    • LAV 0.64 with HEVC & UHD selected for dxva
    MP CPU ( system CPU ) :
    Tears : 28% ( 50% )
    Tractor : 43% ( 65%)
    Bunny : 80% ( but system 100% ) Frammes dropped

    Ps : bunny is 4K stream and other are FullHD
     

    BigAlb

    Portal Member
    October 31, 2014
    15
    2
    Home Country
    Italy Italy
    I invite you to test other codecs too.

    I tried Strongene Lentoid HEVC decoder. After registering it (double checked with GraphStudio that it was the preferred codec), the point is the same: for some reason, the cpu load with Mediaportal is much higher than that of MPC-HC with the same codec, as it was for LAV filters[DOUBLEPOST=1428831510][/DOUBLEPOST]
    • Intel Q6600
    • AMD HD5470
    • LAV 0.64 with HEVC & UHD selected for dxva
    MP CPU ( system CPU ) :
    Tears : 28% ( 50% )
    Tractor : 43% ( 65%)
    Bunny : 80% ( but system 100% ) Frammes dropped

    Ps : bunny is 4K stream and other are FullHD

    Hi azzuro, could you try to play the videos in GraphStudio or MPCHC?
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    i can try, but i'm pretty sure my GPU is not abble to decode this file corectly.

    Please Guy use Dxva checked
    upload_2015-4-12_11-42-2.png

    My Gpu is only abble to decode H264 in FullHD.

    Edit ; for me it's normal if MP is more GPU usage, because we use it for rendering GUI.
    but maybe i'm wrong
     

    BigAlb

    Portal Member
    October 31, 2014
    15
    2
    Home Country
    Italy Italy
    i can try, but i'm pretty sure my GPU is not abble to decode this file corectly.

    Please Guy use Dxva checked
    My Gpu is only abble to decode H264 in FullHD.

    Edit ; for me it's normal if MP is more GPU usage, because we use it for rendering GUI.
    but maybe i'm wrong

    Here is my GPU, cannot find anything *265* or HEVC related...

    Anyway IMHO a little bit of overhead by Mediaportal is acceptable/reasonable, but on my setup:
    1) I do not experience any overhead with other content (e.g. h264) - or maybe it's so small that I cannot perceive it;
    2) with HEVC the overhead is really huge (like twice the cpu load or more) and this leads to frame dropping in all the real world files that I have (besides sample ones).


    dxva checker.jpg
    [DOUBLEPOST=1428833356][/DOUBLEPOST]
    i have try MPCHC,
    sure the stream is better than MP. but i have 100% cpu usage too.

    Besides bunny (indeed very cpu intensive), I have got:
    - Tears: 20% vs 50%
    - Traktor: 30% vs 80%

    Can you confirm this kind of cpu load on your setup using LAV filters?
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    MP use more GPU memory because of GUI related :)
    So in MP it will consume more GPU (maybe related to memory) but for sure i have the same with normal H264 HD channel on my old laptop, when i display some GUI, it stutter like hell even if i didn't display some GUI, it stutter but less and compared to a better GPU it's stable and like to decode H265/HEVC we need more power or recent GPU then i think it's normal.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    These are my GPU capabilities
    upload_2015-4-12_12-21-9.png


    AFAIK there are no hardware supported HEVC DXVA2 decoders yet, except some high level NVidia cards. This means decoding depends on pure CPU only.
    And as my numbers from above show, for my system the GUI overhead is not so much (<10% for 1080p, but ~30% for UHD) for MP2.
     

    Users who are viewing this thread

    Top Bottom