New build, Win10, stuttering mkv's (1 Viewer)

sclaws

MP Donator
  • Premium Supporter
  • February 7, 2009
    63
    4
    Chicago western suburbs
    Home Country
    United States of America United States of America
    Hoping for some troubleshooting guidance here, as I've been at it with really no change for awhile now.

    First some background: I've been using MP for several years...love it!
    I recently purchased an Intel NUC 5I5RYK to replace a failed build with an NVidia GTX460. At first the NUC system was on a fresh install of Windows 8.1 x64, but I moved all my computers to Win10 when it was released. Prior to the new build, my playback with LAV filters and Reclock was perfect for mkv's. I run HDMI out for video and audio from the NUC direct to a Marantz 1403 receiver. My display is a Vizio M801D-A3.

    The issue started with the NUC. Its minor, but repeatable and certainly distracting from enjoying content. Playback appears to drop a frame about every 2 minutes or so. Sometimes longer, and other times 2 or 3 drops in a short amount of time. I have tried several variations of settings with no improvements of note:
    - Configured MPAR. So far I'm surprisingly getting better results than Reclock now, but both still drop frames.
    - Changed LAV hardware rendering. Used DXVA native, copy-back, Intel QuickSync and none. No changes.
    - Monitoring playback via shift+1 does not indicate any dropped frames unless I use the default DirectSound device in the codec dropdown menu. Last time I used that it identified 7 dropped frames for a 22 minute program.
    - I never hear dropped audio.

    I'm quite open to suggestions or to provide additional info. I did also run a Mediaportal log...don't know how to read it, but its attached.

    Any help would be greatly appreciated!
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    - Monitoring playback via shift+1 does not indicate any dropped frames unless I use the default DirectSound device in the codec dropdown menu. Last time I used that it identified 7 dropped frames for a 22 minute program.

    The actual refresh rate of the display in the EVR log is:

    Display (from windows): 1920 x 1080 @ 24.000000 Hz | Measured refresh rate: 24.000099 Hz

    ...which would cause a few, regular, frame drops in that situation (as you were playing a 23.976 fps video). But MPAR or Reclock should fix that by speeding up playback to 24 fps to match the refresh rate.

    If you are seeing frame drops or pauses that are not showing up in the render stats screen i.e the lines do not have blips in them etc., then they might be happening downstream of MP in Windows itself or the GPU.

    If you are happy with changing settings in the registry, then you could experiment with tweaking EVR presenter/dshowhelper behaviour in MP to see if it improves things - see below.

    The possible registry settings in "HKEY_CURRENT_USER\Software\Team MediaPortal\EVR Presenter" (with their default settings) are :

    EnableDWMQueuedMode = 0
    EnableMMCSSforDWM = 0
    EnableMMCSSforSchedulerThread = 1
    NumDWMBuffers = 3
    EnableDWMAudioDelayComp = 0
    SampleQueueSize = 5
    WorkerThreadMmcssPriority = 1
    TimerThreadMmcssPriority = 0
    SchedulerThreadMmcssPriority = 2
    ForceFirstFrame = 0
    LowResVSyncCorrectionTiming = 0
    FPSLimitFrameRate = 0
    FPSLimitHeightThresh = 700
    FPSLimitWidthThresh = 1200
    EnableLateDWMInit = 0
    Enable24HzDWM = 1
    EnableDWMInitSleep = 1
    LogAllFrameDrops = 0

    I suggest trying EnableDWMQueuedMode = 1 and NumDWMBuffers = 4 and see if that helps.

    You don't need to restart MP after changes - just stop video playback and start it again to pick up the new settings. If you mess up the settings, just delete the whole lot and it will create a new default set next time you play something. Some of the settings are decidedly esoteric/for debug/basically obsolete, so don't just change things randomly in the hope it might get better - you'll just get lost and confused - even I don't remember what all of them do, and I put them in the code originally ;)

    The evr.log also lists out the current settings if you need to check things e.g. from your log:

    Code:
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --------------------------------------------------------------
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- v1.7.92 Unicode with DWM queue support --- instance 0x207c4b28
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- MP Audio Renderer control enabled
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --------------------------------------------------------------
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable DWM Queued mode
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable MMCS for DWM
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Enable MMCS for Scheduler Thread
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Number of DWM buffers = 3
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable DWM audio delay compensation
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Sample Queue size = 5
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Scheduler Thread MMCSS priority = 2
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Worker Thread MMCSS priority = 1
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Timer Thread MMCSS priority = 0
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable ForceFirstFrame
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable Low Resolution Timing
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- FPS Limiter disabled
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- FPS Limit height threshold = 700
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- FPS Limit width threshold = 1200
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable late DWM init
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Enable DWM init sleep
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Enable DWM init for 24Hz
    [2015-08-08 10:08:12,255] [207c4b28] [163c] - --- Disable LogAllFrameDrops
     
    Last edited:

    sclaws

    MP Donator
  • Premium Supporter
  • February 7, 2009
    63
    4
    Chicago western suburbs
    Home Country
    United States of America United States of America
    Here's an initial report from your suggestions, Owlsroost.
    Overall, I *think* the dropped frame situation is improved, but its not gone. I made your regedit changes and tried the following MP configurations with them:
    - All LAV video and audio selections active with MPAR
    - All LAV video and audio selections active with Reclock
    - Tested the following hardware decoders: Intel QuickSync; DXVA2-copy back; DXVA2-native; none
    - Toggled Intel vsync from 'application' control to 'driver' control, and back

    My findings have found a few things:
    - Using shift+1, I can only see dropped or repeated frames logged on-screen when using Reclock. MPAR, when exhibiting a drop, does not log the activity in the on-screen overlay.
    - There is no noticeable difference of drops when using Reclock or MPAR with any hardware decoder selection. Both still display occasional drops.
    - Using 'none' for hardware decoders and MPAR seems to yield the fewest drops. I wish I had evidence other than my perception, but thats the best I can do.

    Is there anything else you would suggest, or other details I can provide?
    Thx again!
     

    sclaws

    MP Donator
  • Premium Supporter
  • February 7, 2009
    63
    4
    Chicago western suburbs
    Home Country
    United States of America United States of America
    FWIW, figured I'd post my status with this. I *think* the issue is resolved, but not how I had expected. Short story is I had been trying to keep my display at 23.976/24 for movies to match the media sources. The CPU supports this, and every time I looked at MP, MPAR, ReClock or MPC stats and performance. Media appeared to render correctly, but I still experienced occasional drops. After countless attempts to fix, my solution has been to default to my display's native resolution 1080p60, use ReClock instead of MPAR, play with MPs internal player, select A/V sync in MP and not use auto refresh rate changing. So far I havent seen any further drops after about 3hrs of playback with different files and frame rates.

    Here's hoping this is my fix!
     

    Users who are viewing this thread

    Top Bottom