The Audio Renderer has an issue with some hardware / reference clock generation (1 Viewer)

Status
Not open for further replies.

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Here's a new MediaPortal Audio Renderer which contains rewritten time keeping code to fix following Mantis issue: http://mantis.team-mediaportal.com/view.php?id=4201

    Issues that can be rooted down to this error are:

    • Lost audio in DVD menus / movie (MS DVD navigator is not allowing big buffers on downstream)
    • A/V sync getting lost when clocks aren't in sync
    • A/V sync getting lost after resuming from paused state
    • Switching between audio streams
    • Dropped Frames on some systems

    What to test?

    Mainly A/V sync (pause, stream change, seeking etc.).

    What MediaPortal version to use?

    Following MediaPortal versions can be used for the testing:
    1. https://forum.team-mediaportal.com/...-changes-for-next-mediaportal-release.116508/ - which requires regression test on non-MPAR related things
    2. MediaPortal 1.3.0 RC
    3. MediaPortal 1.3.0 final after it is out
     
    Last edited by a moderator:

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Version 1
    Initial test build.
     

    Attachments

    • mpaudiorenderer_1.1.0.zip
      1.4 MB

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Are there any specific MPAR settings that should be used when testing this e.g. HWBasedRefClock = 1 ?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Are there any specific MPAR settings that should be used when testing this e.g. HWBasedRefClock = 1 ?

    HWBasedRefClock = 1
    EnableTimestretching = 1
    EnableSyncAdjustment = 1

    Which are all on by default, but indeed it is better to make sure they are on. For example if HWBasedRefClock is off then the system clock is used for the reference clock generation and in case it runs at a separate speed than the audio HW clock (in 99.999% cases it is different!) there will be issues with the A/V sync as reference clock gets generated from the system clock and audio is consumed at the audio HW clock rate.
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Actually, with my audio hardware and the current MPAR, setting HWBasedRefClock = 1 causes A/V sync drift so I have to run with HWBasedRefClock = 0 (that's why I asked the question ;) )
     

    davidf

    Retired Team Member
  • Premium Supporter
  • April 3, 2006
    796
    348
    Scotland
    Home Country
    Scotland Scotland
    Actually, with my audio hardware and the current MPAR, setting HWBasedRefClock = 1 causes A/V sync drift so I have to run with HWBasedRefClock = 0 (that's why I asked the question ;) )
    You shouldn't have to any more :)
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Anyone got some results? There will be some new features available after this one has been verified to work.
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,421
    Home Country
    Germany Germany
    just installed it and will use it today on a normal tv session :p
    Hadn't any issues before, but I will report back how it goes :)

    But one question: Is the registry the only place to change the options e.g HWBasedRefClock? Because I can't see such a option in the MPAR config inside the configuration.exe

    Here HWBasedRefClock is set to 1
    And one more question: What does the option "Enable v-sync adjustment" do? In the wiki I just found:
    Toggles between v-sync adjustments on / off. By default this is on. Use only for debugging purposes (like sync drifting).
    So i assume it should be disabled during normal use, but what advantages/disadvantages does it have if I enable it?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Here HWBasedRefClock is set to 1

    That is only a debug options - users shouldn't have to ever touch that as disabling it will cause drifting in A/V sync (amount depends how close audio HW clock and system ckock are running).

    Toggles between v-sync adjustments on / off. By default this is on. Use only for debugging purposes (like sync drifting).
    So i assume it should be disabled during normal use, but what advantages/disadvantages does it have if I enable it?

    It should be always on - actually it is something that is not needed even for debugging (haven't been used for a year at least :)). It would be probably wise to remove that completely (at least it should be removed from the config).
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Haven't had time to do a lot of testing, but it seems to have fixed my A/V sync drift problems when using HWBasedRefClock, so it's looking good :)
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Similar threads

    • Sticky
    Great work and release!! Contrats to all involved developers :):D I installed MP1 initially, but didn’t get along with it. Many things were not intuitive, too frumpy and the gui had hardcoded dependencies to plug-ins, some buttons didn’t work even without a note due to that. Same for player controls, why do I see always play and pause...
    Great work and release!! Contrats to all involved developers :):D I installed MP1 initially, but didn’t get along with it. Many...
    We are proud to present MediaPortal 2.4 MediaPortal 2.4 is a full-blown media center software that addresses most common user...
    Replies
    4
    Views
    570
    Sound stops working after first playback
    Sound stops working after first playback
    We have just released a Pre Release of MediaPortal 1.22. Happy testing! Pre Releases are provided as a way for the community to...
    Replies
    2
    Views
    2K
    Great improvements! The best MC in the world (very ergonomic despite so many features), behind is Kodi and far behind is MP2. It is a pity MP1 isn't on Android. Without Android/Linux (mini PC) support MP will be (is?) slowly dying :(
    Great improvements! The best MC in the world (very ergonomic despite so many features), behind is Kodi and far behind is MP2. It is...
    We have just released a Pre Release of MediaPortal 1.21. Happy testing! Pre Releases are provided as a way for the community to...
    Replies
    6
    Views
    3K
    Updated with the guide to install an Intel HDMI audio Device that can stream 192kHz/24bit. If you have any question, feel free to reply here.
    Updated with the guide to install an Intel HDMI audio Device that can stream 192kHz/24bit. If you have any question, feel free to...
    I switched to MePo 2 with the release of MePo 2.1.1, and in the last months I focused on learning the program and fine tuning it...
    Replies
    8
    Views
    2K
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on the implementation of new features and some fundamental changes in the core of MediaPortal 2. As a result, we proudly present the next major release of MediaPortal 2 in version 2.2. MediaPortal 2.2 is a...
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
    Replies
    0
    Views
    3K
    Top Bottom