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

    Retired Team Member
  • Premium Supporter
  • 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

    Retired Team Member
  • Premium Supporter
  • 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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    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

    Retired Team Member
  • Premium Supporter
  • 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

    Top Bottom