MediaPortal Audio renderer - better video playback quality (1 Viewer)

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I got exactly the same problems as Truri but without SAF installed.. i noticed it is only on HD stuff and only if the FPS does not match. For example my Laptop only can do 60Hz -> stutter. TV which change the refresh rate to 24p -> no stutter. Maybe Haali Splitter causes this problem but i dont know.

    Isn't that a completely different issue? 60 Hz with 24 (23.976) fps material will always stutter since it wont fit into the bias max / min values (default 10% speed up or slow down).

    Please post exact steps to reproduce the issue and evr, audio renderer and mediaportal logs for the case. Source fps and display device refresh rate capabilities included.

    Truri's issue is random failure with refresh rate changer but from your' description it is a limit instead.

    I tested your video renderer and get this results (screen below). I used v17 without the audio renderer connected yet. I registered the renderer once with an older version.. can i only replace this older renderer with the new one without register it again?

    It is always safer to re-register the one that is wanted to be used:

    1) to make sure wrong file is not loaded by directshow
    2) to make sure no interface changes between different versions are causing crahes

    Is it really possible to get 3 flat lines? =)

    Those are alreafy flat enough to have stutter free playback. Onlt teh frame paint time varies a bit, but it seems to vary only few ms max so it will always be
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    Well, its not stutter.. there are major framedrops. Logs attached. First thought was that I.F.C. caused the drops. No mediaportal audio renderer connected. Instead Default DirectSound is used. Logs are captured while this Mediafile was playing:

    MediaFileInfo:
    General
    Complete name : C:\...
    Format : Matroska
    File size : 2.15 GiB
    Duration : 43mn 8s
    Overall bit rate : 7 128 Kbps
    Encoded date : UTC 2009-12-26 01:24:56
    Writing application : mkvmerge v2.9.8 ('C'est le bon') built on Aug 13 2009 12:49:06
    Writing library : libebml v0.7.7 + libmatroska v0.8.1
    Video #1
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 3 frames
    Muxing mode : Container profile=Unknown@4.1
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 43mn 6s
    Bit rate : 5 028 Kbps
    Nominal bit rate : 5 169 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Resolution : 24 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.228
    Stream size : 1.51 GiB (70%)
    Writing library : x264 core 78 r1318kMod fe83a90
    Encoding settings : cabac=1 / ref=3 / deblock=1:-1:-2 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.0:0.3 / mixed_ref=1 / me_range=12 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=6,6 / chroma_qp_offset=-4 / threads=6 / nr=0 / decimate=0 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5169 / ratetol=1.0 / qcomp=0.80 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=9000 / ip_ratio=1.10 / aq=2:0.50
    Audio #2
    ID : 2
    Format : DTS
    Format/Info : Digital Theater Systems
    Codec ID : A_DTS
    Duration : 43mn 8s
    Bit rate mode : Constant
    Bit rate : 1 510 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Surround: L R, LFE
    Sampling rate : 48.0 KHz
    Resolution : 24 bits
    Stream size : 466 MiB (21%)
    Language : German
    Audio #3
    ID : 3
    Format : AC-3
    Format/Info : Audio Coding 3
    Codec ID : A_AC3
    Duration : 43mn 8s
    Bit rate mode : Constant
    Bit rate : 448 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Surround: L R, LFE
    Sampling rate : 48.0 KHz
    Stream size : 138 MiB (6%)
    Language : English

    Display Refreshrate: 60HZ only! - But Refreshrate Changer is enabled!

    The framedrops don't happen all time though.. if u start the PC -> start Mediaportal -> start the video (HD; it dont happen on one specific file only) -> no framedrops - stop the video -> start the video again -> framedrops CAN happen. It's more like random.. If there appear framedrops -> stop the video -> start it again -> framedrops CAN be gone.. sometimes u have to start - stop - restart the video more than one time till you have no framedrops. So this is really strange behaviour..
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Well, its not stutter.. there are major framedrops. Logs attached. First thought was that I.F.C. caused the drops. No mediaportal audio renderer connected. Instead Default DirectSound is used. Logs are captured while this Mediafile was playing:

    First when troubleshooting stuttering, disable every single 3rd party plugin (there are lot of cases where the 3rd party plugins are affecting the playback quality). Even revert to B3W default skin since many skins have their own plugins that can reduce the playback quality.

    2010-10-21 20:21:19.198311 [Info.][MPMain(1)]: DirectShowUtils: First try to insert new audio renderer Default DirectSound Device
    2010-10-21 20:21:19.199311 [Info.][MPMain(1)]: DirectShowUtils: Found audio renderer
    2010-10-21 20:21:19.312323 [Debug][MPMain(1)]: DirectShowUtils: added filter:Default DirectSound Device to graph

    MP audio renderer is not even tried to add the graph. Are you sure it is configured to be used? First you need to find the reason why it is not added to the graph, then we should check how the playback is working at that point.


    The framedrops don't happen all time though.. if u start the PC -> start Mediaportal -> start the video (HD; it dont happen on one specific file only) -> no framedrops - stop the video -> start the video again -> framedrops CAN happen. It's more like random.. If there appear framedrops -> stop the video -> start it again -> framedrops CAN be gone.. sometimes u have to start - stop - restart the video more than one time till you have no framedrops. So this is really strange behaviour..

    One reason for such random behavior is that the MP audio renderer is not used. EVR mixer "picks up" a random v-sync position (or actually it wont pick, it just takes some ramdom point of time as the frame target...).

    Other one could be that the refresh rate changer fails to correctly change the refresh rate.
     

    doornjoostje

    Portal Pro
    December 6, 2007
    432
    14
    Home Country
    Netherlands Netherlands
    I found wat was wrong with the missing voices. The middle speaker didn't work at all.
    I disabled it in the settings and now all is well!

    WOW! Happy.

    Thanks for your time and developing this great audio renderer.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Re: AW: MediaPortal Audio renderer - better video playback quality

    Does the issue happen without the audio delay set? What is heavy drifting? Please be a bit more descriptive - like 1 second in 15 minutes or 50 ms in 2 hours. That kind of information would be helping. Just telling that A/V sync drifts wont help that much (after all here it works again with ver 17 + AC3 encoding, no drifting is happening during 2 hour movie).

    Ver 17 + audio delay + AC3 encoding enabled -> drifting.

    Actually it doesn't even work with the non-AC3 encoding case :) Could you test if putting 10 (as decimal) in audio delay creates correct 100 ms delay?

    Code:
    m_pClock->SetAudioDelay(m_Settings.m_lAudioDelay * 100000); // setting in registry is in ms

    should be:

    Code:
    m_pClock->SetAudioDelay(m_Settings.m_lAudioDelay * 10000); // setting in registry is in ms

    works now fine with v18 - thanks!
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I found wat was wrong with the missing voices. The middle speaker didn't work at all.
    I disabled it in the settings and now all is well!

    WOW! Happy.

    Thanks for your time and developing this great audio renderer.

    Sometimes the bug(s) aren't in the free software after all :p
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: MediaPortal Audio renderer - better video playback quality

    not shure whether this is related to MP Audio Rendere - but could you perhaps have a look at this? (https://forum.team-mediaportal.com/...s-endless-loop-after-switching-channel-89028/) the rerendering is rerequested due to an audio change and running in a loop.

    Nothing points into the audio renderer direction in the logs (in general the audio renderer is a dummy part when it comes to graph building - it doesn't initiate any rebuild etc.).

    Since you can reproduce the issue please try without the MP audio renderer - that is the easiest and lest effort requiring way (I cannot access multiseat configuration as a test environment).

    In any case the specific issue should be handled in the already existing thread - unless it is MP audio renderer that triggers it.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: MediaPortal Audio renderer - better video playback quality

    thanks tourettes - switched away from rtsp now everything working fine.

    Today i had a problem with the mpaudiorenderer getting buffer underruns on one channel. All other channels were working fine and also the picture is still running fine. Any idea?

    Code:
    09-11-2010 00:06:13.929 [ 534] MP Audio Renderer - v0.992
    09-11-2010 00:06:13.929 [ 534] Loading settings from registry
    09-11-2010 00:06:13.929 [ 534] ForceDirectSound: 0
    09-11-2010 00:06:13.929 [ 534] EnableTimestrecthing: 1
    09-11-2010 00:06:13.929 [ 534] WASAPIExclusive: 0
    09-11-2010 00:06:13.929 [ 534] WASAPIUseEventMode: 1
    09-11-2010 00:06:13.929 [ 534] EnableAC3Encoding: 0
    09-11-2010 00:06:13.929 [ 534] AC3bitrate: 448
    09-11-2010 00:06:13.929 [ 534] MaxBias: 11000
    09-11-2010 00:06:13.929 [ 534] MinBias: 9000
    09-11-2010 00:06:13.929 [ 534] AudioDelay: 0
    09-11-2010 00:06:13.929 [ 534] ChannelMaskOverride_5_1: 0
    09-11-2010 00:06:13.929 [ 534] ChannelMaskOverride_7_1: 0
    09-11-2010 00:06:13.929 [ 534] LogSampleTimes: 0
    09-11-2010 00:06:13.929 [ 534] HWBasedRefClock: 1
    09-11-2010 00:06:13.929 [ 534] EnableSyncAdjustment: 1
    09-11-2010 00:06:13.929 [ 534] DevicePeriod: 500000 (1 == minimal, 0 == driver default, other user defined)
    09-11-2010 00:06:13.929 [ 534] WASAPIPreferredDevice: 
    09-11-2010 00:06:13.930 [ 534] CMPAudioRenderer - instance 0x1579a4a8
    09-11-2010 00:06:13.930 [ 534] SynchCorrection::Reset
    09-11-2010 00:06:13.930 [ 534] WASAPIRenderer::ResetClockData
    09-11-2010 00:06:13.930 [ 534] WASAPIRenderer::GetAvailableAudioDevices
    09-11-2010 00:06:13.931 [ 534] 
    09-11-2010 00:06:13.931 [ 534] Audio endpoint 0:
    09-11-2010 00:06:13.931 [ 534] ATI HDMI Output (ATI High Definition Audio Device)
    09-11-2010 00:06:13.931 [ 534] {0.0.0.00000000}.{ed05d1cf-bb34-40cf-b468-df4f6fb5cd7a}
    09-11-2010 00:06:13.931 [ 534] supports pull mode: 1
    09-11-2010 00:06:13.931 [ 534] speaker mask: 0
    09-11-2010 00:06:13.931 [ 534] 
    c
    09-11-2010 00:06:45.833 [ c0] DROP sample rtTime: 28941.897 ms rtSampleTime: 28516.000 ms
    09-11-2010 00:06:45.833 [ c0] DROP sample rtTime: 28942.173 ms rtSampleTime: 28548.000 ms
    09-11-2010 00:06:45.895 [ c0] DROP sample rtTime: 29004.314 ms rtSampleTime: 28580.000 ms
    09-11-2010 00:06:45.895 [ c0] DROP sample rtTime: 29004.508 ms rtSampleTime: 28612.000 ms
    09-11-2010 00:06:45.944 [ c0] DROP sample rtTime: 29053.347 ms rtSampleTime: 28644.000 ms
    09-11-2010 00:06:45.945 [ c0] DROP sample rtTime: 29054.116 ms rtSampleTime: 28676.000 ms
    09-11-2010 00:06:46.048 [ c0] DROP sample rtTime: 29157.549 ms rtSampleTime: 28708.000 ms
    09-11-2010 00:06:46.048 [ c0] DROP sample rtTime: 29157.772 ms rtSampleTime: 28740.000 ms
     

    Users who are viewing this thread

    Top Bottom