MP2-Setup-10th_AE_Update_1 LAV/DXVA2 performance problem (1 Viewer)

RonD

Test Group
  • Team MediaPortal
  • December 20, 2011
    911
    278
    SillyValley CA
    Home Country
    United States of America United States of America
    Tried a few more codec options on MePo2 Win8.1 system, same test video for all tests. I removed LAV since MePo1/2 would fail over to LAV.

    Added 2 pngs MePo1Snip/MePo2Snip snipping tool view showing TaskManager/LAV/ProcessExplorer running MePo1/2.

    Without LAV, system has 3 TV mpeg2 options
    CyberLink Video/SP Decoder (PDVD10)
    CyberLink Video Decoder (PDVD10)
    Microsoft DTV-DVD Video Decoder

    played with GraphStudio at get the following results building graphs by hand
    GraphStudio > CyberLink Video/SP Decoder (PDVD10) > VMR9 (works)
    GraphStudio > CyberLink Video/SP Decoder (PDVD10) > EVR (works)
    GraphStudio > CyberLink Video Decoder (PDVD10) > EVR (works)
    GraphStudio > CyberLink Video Decoder (PDVD10) > can't connect to VMR9
    GraphStudio > Microsoft DTV-DVD Video Decoder, can't connect in/out ports to anything

    MePo1 results
    MePo1, CyberLink Video Decoder (PDVD10) with EVR, app crash
    MePo1, CyberLink Video Decoder (PDVD10) with VMR9, audio, no video black screen
    MePo1, Microsoft DTV-DVD Video Decoder, EVR/VMR, can't play error popup, log file shows
    [2014-09-19 14:27:19,761] [Log ] [MPMain ] [DEBUG] - Check graph connections for: TsReader
    [2014-09-19 14:27:19,764] [Log ] [MPMain ] [WARN ] - VMR9: Pin: 0 not connected: 80040209
    [2014-09-19 14:27:19,764] [Log ] [MPMain ] [WARN ] - VMR9: Pin: 1 not connected: 80040209
    [2014-09-19 14:27:19,765] [Log ] [MPMain ] [WARN ] - VMR9: Pin: 2 not connected: 80040209
    [2014-09-19 14:27:19,766] [Error ] [MPMain ] [ERROR] - TSReaderPlayer: Failed vmr9 not connected

    MePo1, CyberLink Video/SP Decoder (PDVD10) (use DxVA = OFF or ON) with EVR
    CPU = 15-20%, GPUz = 60%

    MePo1, CyberLink Video/SP Decoder (PDVD10) (use DxVA = OFF or ON) with VMR9
    CPU = 25-30%, GPUz = 35%

    MePo2 results
    MePo2, CyberLink Video/SP Decoder (PDVD10), have audio, black screen, OSD controls/timeline show
    MePo2, CyberLink Video Decoder (PDVD10), have audio, black screen, OSD controls/timeline show
    MePo2, Microsoft DTV-DVD Video Decoder, have audio, black screen, OSD controls/timeline show

    reinstalled LAV and get the same performance results as 1st posting. MePo2 does not enable DxVA and has higher overhead.

    in MePo2/LAV, pressed F10 to "show stats", see MePo2F10.png. Also tried all 3 F11 options, same results. Does MePo2 have an option to switch between EVR and VMR9? I could not find a setting to switch. The MePo2 stats look like the MePo1 video stats when I was using VMR9.
     

    Attachments

    • MePo1Snip.PNG
      MePo1Snip.PNG
      108.5 KB
    • MePo2Snip.PNG
      MePo2Snip.PNG
      101 KB
    • MePo2F10.PNG
      MePo2F10.PNG
      763.1 KB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    This could be a dumb question, but I wondered whether the use of the CoreCC parser which I saw in your TsReader logs could have anything to do with it.
     

    RonD

    Test Group
  • Team MediaPortal
  • December 20, 2011
    911
    278
    SillyValley CA
    Home Country
    United States of America United States of America
    I removed CoreCC from both video/tv postprocessing, unregistered the CoreCC, rebooted to take that out of the mix.

    Also had to disable "Enable CC subtitles" in MePo Config > TV > Subtitle Settings. I kept seeing MePo1 log entries with CoreCC removed and "Enable CC subtitles" enabled.
     
    Last edited:

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I've just tested it on my DevPC, 720p50 live TV:

    CPU: i5-2500K @3.3 GHz
    Graphics: AMD R7 200

    MP2:
    LAV: "DXVA2 native" : Available, Active decoder: avcodec, CPU (MP2-Client.exe): ~20%
    LAV: "DXVA2 copyback" : Active, Active decoder: dxv2cb, CPU (MP2-Client.exe): ~6%

    GraphEdit:
    LAV: "DXVA2 native" : Available, Active decoder: dxva2n
    LAV: "DXVA2 copyback" : Active, Active decoder: dxv2cb

    Interesting finding in GraphEdit:
    if you have "VideoRenderer" in graph, LAV switches back to "avcodec".
    once you replace the renderer with "EVR", readd LAV, it shows "dxva2n" again.

    MP2 uses EVR with a "custom presenter" (CP) (which passes video frames back to MP2 for rendering). As LAV seems to detect renderer capabilities it could mean that our CP causes a fallback in decoding capability.

    For now users should select "DXVA2 copy back" as decoder until we found the reason for this behavior.

    I also can confirm the different LAV dialog appearance: when running from MP2, it looks like old visual style, graphedit gives "modern" look:
    MP2:
    01_Decoder_MP2.png

    GraphEdit
    02_Decoder_GraphStudio.png

    Maybe also the MP2 MainForm initialization leads to use of some kind of fallback rendering?
    @Developers any idea where this comes from?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Quick question for noob lol

    What is the KEY to control pause/play/skip/stop etc. from keyboard when watching fullscreen video (even non fullscreen lol). :p ?

    I hope MP2 will get better and better, on my side on each try that not a fully yes for now but i hope i will change my mind :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    So no way for now to use standard keyboard ? :)
    Sorry to be offtopic but i have made some compare test between MP1/MP2/XBMC so i was using keyboard etc. lol
    Thanks :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Still offtopic: at least MP2 is fully controllable with mouse, which is a big advantage over MP1. And since last release it is also TOUCHable :D With MCE remote support, who needs a keyboard?

    But back to topic, any ideas? I thought that maybe the custom EVR presenter might be a cause, or the defined input capabilities of the IN pin. But comparing the pin config of GraphStudio graph and MP2 gave same result.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Short answer why keyboard is important :)
    My Imon remote acts as a hid device and for some buttons it only sends e.g strg + e to open the epg ;)
    So for my htpc it would be important :p
     

    RonD

    Test Group
  • Team MediaPortal
  • December 20, 2011
    911
    278
    SillyValley CA
    Home Country
    United States of America United States of America
    Bottom line for my test system Laptop: CPU = IvyBridge, i3-3237U 1.90 GHz, 2 core 4 thread, Intel HD4000 GFx Win8.1. DXVA(copyback) is worse than no HW acceleration. Copyback is about CPU = 75-80%, AVCODEC is about CPU = 45-50%.

    Test video is 1080i 1920x1080 about 17 Mbps, My USA ATSC channels are between 17-7.4 Mbps 1080i or 720p. depending on network and number of ATSC subchannels.

    Discovered that Msft Process Explorer (google for download) can show a little more detail on GFx engine and shows 2 GFx engines on my HD4000 system. With Msft Process Explorer, View > System Information brings up performance charts. Select GPU then Engines to see per GFX Engine chart. Hover mouse over chart to see numbers. Attached png shows output for MePo1 LAV/DXVA(native) active.

    Not sure what GFx5 GFx6 really do. Looks like GFx5 handles MePo1/2 GUI activity and video. GFx6 is active when HW acceleration running.

    Just windows plus 3 perfmon tools, CPU = 5-10%, GPUz = 0%, ProcExpGFx Eng5 = 2-5%, Eng6 = 0%. Each perfmon tools uses 2-3% of CPU. TaskManager, ResourceMonitor, ProcessExplorer, GPUz.

    Start MePo1/2, fullscreen, idle GUI in videos window, LAV = not active, CPU = 10%, GPUz = 60-70%, ProcExpGFx Eng5 = 60-70%, Eng6 = 0%

    MePo1, CPU = 45-50%, GPUz = 64%, ProcExpGFx Eng5 = 65%, Eng6 = 0%, LAV = none/AVCODEC
    MePo1, CPU = 15-20%, GPUz = 60%, ProcExpGFx Eng5 = 60%, Eng6 = 20% LAV = DXVA2(native)
    MePo1, CPU = 50-55%, CPUz = 65%, ProcExpGFx Eng5 = 65%, Eng6 = 10%, LAV = DXVA2(copyback)
    MePo1, CPU = 45-50%, CPUz = 70%, ProcExpGFx Eng5 = 68%, Eng6 = 12%, LAV = DXVA2(quicksync)
    quicksync has Audio/Video sync problem

    MePo2, CPU = 55-60%, GPUz = 90%, ProcExpGFx Eng5 = 90%, Eng6 = 0%, LAV = none/AVCODEC,
    MePo2, CPU = 55-60%, GPUz = 90%, ProcExpGFx Eng5 = 90%, Eng6 = 0%, LAV = DXVA2(native), LAV shows AVCODEC
    MePo2, CPU = 75-80%, GPUz = 97%, ProcExpGFx Eng5 = 97%, Eng6 = 12%, LAV = DXVA2(copyback)
    MePo2, CPU = 55-60%, CPUz = 96%, ProcExpGFx Eng5 = 96%, Eng6 = 12%, LAV = DXVA2(quicksync)
    quicksync has Audio/Video sync problem
     

    Attachments

    • MePo1LAVDXA_ENG5_6.PNG
      MePo1LAVDXA_ENG5_6.PNG
      15.7 KB
    Last edited:

    Users who are viewing this thread

    Top Bottom