The Audio Renderer has an issue with some hardware / reference clock generation

Discussion in 'Area 51 - Testing Area' started by tourettes, February 25, 2013.

Thread Status:
Not open for further replies.
  1. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    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: February 25, 2013
    • Like Like x 3
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Version 1
    Initial test build.
     

    Attached Files:

  4. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Are there any specific MPAR settings that should be used when testing this e.g. HWBasedRefClock = 1 ?
     
  5. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    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.
     
  6. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    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 ;) )
     
  7. davidf
    • Team MediaPortal

    davidf Development Group

    Joined:
    April 3, 2006
    Messages:
    796
    Likes Received:
    310
    Occupation:
    Application Architect
    Location:
    Scotland
    Ratings:
    +336 / 0
    Home Country:
    Scotland Scotland
    Show System Specs
    You shouldn't have to any more :)
     
  8. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Anyone got some results? There will be some new features available after this one has been verified to work.
     
  9. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    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:
    So i assume it should be disabled during normal use, but what advantages/disadvantages does it have if I enable it?
     
  10. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    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).

    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).
     
    • Like Like x 1
  11. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    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 :)
     
    • Like Like x 1
Loading...
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!