[fixed] 4k HEVC DXVA2 not playing correctly in MP2 (1 Viewer)

JSchuricht

Test Group
  • Team MediaPortal
  • January 13, 2009
    238
    44
    Arizona
    United States of America United States of America
    Country flag
    MediaPortal 2 Version: 2.1.3

    Description
    With more videos coming out in 4k and using HEVC 10 bit I started looking into why MP2 couldn't play them smoothly on my clients while the same client could play the file in windows 10 media player or MPCHC. Anyways it comes down to the LAV codec not using QuickSync to decode the HEVC files and a i3-7100U in the NUC not having the power for software decoding. Using MPCHC and LAV 70.2 for testing, QuicksSync greys out HEVC but DXVA2 (native) shows HEVC and works great. Below is the task manager graph of the iGPU. Left half is DXVA2 which uses Video Decode, has low CPU usage and plays smoothly. The right half is using QuickSync which uses 100% CPU, no Video Decode and can be measured in frames per minute while counting by hand. The test file is 60.5 Mbps HEVC 10 bit.

    ScreenShot150.jpg

    The issue comes in with using MP2 on the DXVA2 (native) setting. MP2 either displays a blank screen or can't find the file when DXVA2 is turned on. Screenshot below is the change to the hardware decoder in LAV. Nothing else was changed. Logs are attached, whats the trick to getting DXVA2 working in MP2?

    ScreenShot152.jpg ScreenShot151.jpg

    Steps to Reproduce:
    1) Enable DXVA2 (native) in LAV
    2) Play HEVC 10 bit 4k video in MP2
    3) Watch it fail
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    Hi,

    I just verified the LAV behavior yesterday. LAV 0.72 (-15, I am using a nightly now) is using DXVA2 native without problems. Unfortunately I can't check HEVC as my hardware is not supporting 4k. While I can also use QuickSync on my old G3220 CPU, DXVA2 is giving me a lower CPU load than QuickSync.

    So I suggest that you upgrade your LAV codecs and take another look at the matter. Thank you for reporting back here.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    LAV 73.1 was published Oct 11 as an official release. Give it a try.
     

    JSchuricht

    Test Group
  • Team MediaPortal
  • January 13, 2009
    238
    44
    Arizona
    United States of America United States of America
    Country flag
    I had been running LAV 0.72 and just tried 0.73.1. Neither help the situation. x264 plays back fine with DXVA2 enabled its just the HEVC files that fail in Mediaportal. I can get some HEVC files to work if they are lower bitrate. 12 Mb/s works with occasional issues in complex scenes, 60 Mb/s files have no chance in Mediaportal but work perfect in MPCHC.

    I did change hardware from i3-7100U to i7-7700T but even that has issues with HEVC in Mediaportal.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    12 Mb/s works with occasional issues in complex scenes, 60 Mb/s files have no chance in Mediaportal but work perfect in MPCHC.
    I don't know enough about the process to be able to provide a qualified assessment. However, I thought that the signal processing is a function of the codec and the renderer (EVR in this case). How does the original Windows MediaPlayer behave in this situation?
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    By the way: the original starting question about DXVA2 seems resolved. I would like to mark this thread as resolved then and suggest that you open a new one in the General section that specifically deals with 4k playback.
     

    JSchuricht

    Test Group
  • Team MediaPortal
  • January 13, 2009
    238
    44
    Arizona
    United States of America United States of America
    Country flag
    Sorry, I didn't explain that well earlier. The lower bitrate HEVC files I am able to get to work with mediaportal are using quicksync with CPU decode. DXVA2 is still not functional for HEVC files under mediaportal. The media player in windows 10 works fine for playback, just mediaportal with the issue.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    The media player in windows 10 works fine for playback, just mediaportal with the issue.
    Ah, then there is indeed some kind of problem. We should maybe better rename the thread then to something like "4K not correctly playing"?

    We will need full logs in DEBUG mode to continue tracking down the root cause when playing 4K material. LAV + DXVA2 should (in theory) be able to play 4K. Unfortunately it is a bit difficult to work on as there aren't that many team members who have the necessary hardware.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    The first thing to verify is whether the correct codecs are actually used by MP. Are you familiar with using GraphEdit and could you then check the playbacks for the different kinds of video material?
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    I 1.25.0 Videos in HEVC UHD 2160p don't play good watch/edit Videos 8
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 8
    bta489 [solved] Stuttering playback of edited recordings watch/edit Videos 2
    M HEVC 10 bit washed out colours Codecs, External Players 3
    doskabouter 1.26.0 Codec question (unable to play video, lv50 codec) Codecs, External Players 20
    W 1.25.0 Blu-ray disks that used to play are no longer playing Watch / Listen Media 2
    joecrow [solved] DVD won't play properly. General Support 3
    M.Hulot MP plays in Internal Blu-ray-Player-mode always first audio stream not the one I chosen in settings General Support 1
    BrownGhost Mepo/MediaInfo takes 59 secunds to open library and start play :o( General Support 26
    CanadianEh MP TV server rebuild with Colossus 2 - Kodi clients receive PMT error when playing videos recoreded by Colossus 2 TV-Server 2
    M [solved] WTV Files does not play on client, MPEG files works well General 1
    A [solved] How to Play All Videos in a List watch/edit Videos 3
    horned_reaper [solved] When playing music Fanart does not shuffle Fanart Handler 20
    horned_reaper [solved] No Fanart when playing Fanart Handler 115
    horned_reaper [solved] When playing music Fanart does not appear immediately after downloading Fanart Handler 272
    B MP 2.2.3 Error playing videos from NAS Submit: Bug Reports 2
    N Play a TV recording needs a double selection - twice ok on remote Television (MyTV frontend and TV-Server) 2
    M MP 2.2.3 Unable to play .ts recordings and MediaPortal stops working for TV viewing General 31
    Z Error when attempting to play Blu Ray General 1
    Rob Hexenmeister Playing with hyperlinkParameter and List Control indexes General Support 2
    C Problem playing videos created on IPhone X and Samsung S9 General Support 2
    2BitSculptor MP 1.23.. music stops playing General Support 6
    C Attempt to play DVD locks up MediaPortal watch/edit Videos 0
    H Unable to play stream - again... Television (MyTV frontend and TV-Server) 2
    B Suddenly MP is unable to play anything Watch / Listen Media 6

    Similar threads

    Top Bottom