MediaPortal Audio renderer - better video playback quality | Page 16

Discussion in 'General Development (no feature request here!)' started by tourettes, July 12, 2010.

  1. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Re: AW: MediaPortal Audio renderer - better video playback quality

    Looks like the audio indeed is drifting away. At the end the samples are already arriving 9+ seconds earlier than the current presentation time is (it is normal that the samples are a bit less than 1 second early since if they would arrive just in the time they would be rendered always late).

    I think what happens is that the media speedup is not working. Since the display is 50Hz and source material's fps is 23.976 the bias shouldn't be 1.0.

    Could you upload one small sample of such file that I could check why the EVR presenter is failing to calculate the correct bias value. Also please check if the A/V sync issue is present on 25 fps material on 50 Hz.


     
  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
    Re: AW: MediaPortal Audio renderer - better video playback quality

    Oh, just noticed that if it 60Hz not 50Hz. JPEG artefacts was causing my brain to fart. So, I would say that it is completely expected behavior currently since 23.976 would require more than 6% speedup. One thing that can be done is to reduce the drifting (hopefully removing it completely) is to disable the sync correction when bias is 1.0 and refresh rate and source materials fps dont match, since now the EVR presenter is telling to audio renderet that it should adjust the audio resampling a bit, but those are just not working since the major (bias) is not even near the correct speed.
     
  4. mironicus

    mironicus Portal Pro

    Joined:
    March 9, 2008
    Messages:
    687
    Likes Received:
    43
    Ratings:
    +46 / 1
    AW: MediaPortal Audio renderer - better video playback quality

    tourettes

    The log I posted above is from my Desktop system which runs indeed with 60 Hz. My HTPC that is connected with the TV runs with the native refreshrates that the videofile have (23,976 fps videofile/23,976 Hz TV) and shows the same issue.
     
  5. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Re: AW: MediaPortal Audio renderer - better video playback quality

    Tehn the issue is even more weird since two completely different setups are affected (and the other one I have already an explanation :O). Dunno what is going on.

    Could you copy the logs and screen shot frpm the HTPC as well?
     
  6. mironicus

    mironicus Portal Pro

    Joined:
    March 9, 2008
    Messages:
    687
    Likes Received:
    43
    Ratings:
    +46 / 1
    AW: MediaPortal Audio renderer - better video playback quality

    Perhaps the problem lies in the video file as it uses uncompressed audio? I saw in the log that Mediaportal disposes the MPA audio decoder if this file is played.

    Look at the attached picture. Graphstudio shows that there is NO directshow audio filter involved as Windows sends the audio directly to the Directsound Device. So maybe the current Mediaportal Audio renderer needs a working audio directshowfilter in the filter chain to work correctly...?
     

    Attached Files:

  7. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Re: AW: MediaPortal Audio renderer - better video playback quality

    I assume that the screen shot was taken only when building the graph manually in graphedit (since there was audiorenderer.log available even when it is not in the graph :))

    It is still odd that missing audio decoder would cause A/V sync drifting (audio HW cannot consume any more samples than the audio sampling rate allows). One possibility is that the resampling is done, please disable the resampling feature in registry. Other possibility is that the source filter / splitter is pushing data too quickly and audio renderer drops some samples (this should be reproducable on my end, and quite easy to write some trotthling code when samples are arriving (blick the stream so our queues aren't filling up).
     
  8. mironicus

    mironicus Portal Pro

    Joined:
    March 9, 2008
    Messages:
    687
    Likes Received:
    43
    Ratings:
    +46 / 1
    AW: MediaPortal Audio renderer - better video playback quality

    You mean "EnableTimestretching"? I set this to 0, no change.

    I also enabled FFDShow audio decoder to process uncompressed sound, so it did go into the filter chain. The same happens, the sounds goes away. Video and Audio is in synch the whole time. It just does not play the last 9-10 seconds audio. You can test it yourself now.
     
  9. Seeco

    Seeco Portal Pro

    Joined:
    October 15, 2007
    Messages:
    241
    Likes Received:
    7
    Location:
    Linköping
    Ratings:
    +7 / 0
    Home Country:
    Sweden Sweden
    I'm getting some error message when trying to register the .ax file. I put the file at C: root, and typed regsvr32 mpaudiorenderer.ax at command prompt. Then I get the message (roughly):

    The module was read, but the call to DllRegisterServer failed with the error code 0x80070005

    I am using Win 7 btw. Any ideas?
     
  10. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    HRESULT: 0x80070005 (2147942405)
    Name: E_ACCESSDENIED

    You need to have administrator level rights. Opening commend promt with "run as administrator" should solve it.
     
  11. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Re: AW: MediaPortal Audio renderer - better video playback quality

    I can reproduce the issue on my dev PC. In exlcusive mode audio is stopped approx 9 seconds before the end of the video file (no audio / video sync drifting is happening, sounds like the audio just stops). Something weird going on...
     
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!