Audio sync problems on LAV filters | Page 4

Discussion in '1.21 Pre Release' started by alexdepalma, December 28, 2018.

  1. mrstef

    mrstef Portal Pro

    Joined:
    March 15, 2007
    Messages:
    58
    Likes Received:
    6
    Ratings:
    +9 / 0
    Home Country:
    Sweden Sweden
    Yeah I realize that making a solution that works in all cases with all different renderers could be challenging. :)

    For me, if I could just set different audio delays (in ms) per frame rate row in the Dynamic Refresh Rate settings dialog, and just have the code that does the refresh rate change also update the current audio delay of LAV audio filter whenever a refresh rate occurs, that would be absolutely awesome! (y) Something like this mockup:

    MediaPortalDynamicAudioDelayMockupSmall.png



    Just as inspiration, I attached my old patch I used back in 2014 when I had this working automatically. It is very crude, it hard codes stuff directly in the code (instead of using a nice table like the mockup above), makes ugly hacks to get the _graphbuilder object and no longer applies to the current code base, but it worked fine for me for several years. :) You do not need the LAVFilters.cs it creates (I think I found most of that file from some other project which I can not remember), cause I guess you already have that part since you can adjust the audio delay of LAV audio filter manually now. Main code is in g_player.cs.
     

    Attached Files:

    Last edited: January 29, 2019
    • Like Like x 1
    • Great Idea! Great Idea! x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,227
    Likes Received:
    6,188
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,179 / 9
    Home Country:
    France France
    Show System Specs
    Hi :)
    The patch did apply on the current version, maybe you can do the rework and then if all is working we can include it in the next MP version?
    Can you post also the change done for MP config?

    Edit : Ok hardcoded value :)
     
    Last edited: January 30, 2019
Loading...

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!