MediaPortal Audio renderer - better video playback quality (7 Viewers)

chefkoch

Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,635
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    AW: MediaPortal Audio renderer - better video playback quality

    Here are the results for my "htpc" ;)

    It's onboard sound from "ASUS A7N8X-E Deluxe" (NVIDIA nForce 2).

    Lautsprecher (Realtek AC'97 Audio)
    EXCLUSIVE: off EVENT DRIVEN: off
    -------------------------------------------------------------------------
    48000 16 1 96000 2 1 0 - Format works ok
    48000 16 1 96000 2 65534 22 16 4 - Format works ok
    48000 24 1 144000 3 1 0 - Format works ok
    48000 24 1 144000 3 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 1 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 32 1 192000 4 3 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 16 2 192000 4 1 0 - Format works ok
    48000 16 2 192000 4 65534 22 16 3 - Format works ok
    48000 24 2 288000 6 1 0 - Format works ok
    48000 24 2 288000 6 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 1 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 32 2 384000 8 3 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 16 4 384000 8 65534 22 16 51 - Format works ok
    48000 24 4 576000 12 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 16 6 576000 12 65534 22 16 1551 - Format works ok
    48000 16 6 576000 12 65534 22 16 63 - Format works ok
    48000 24 6 864000 18 65534 22 24 1551 - Format works ok
    48000 24 6 864000 18 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 24 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 16 8 768000 16 65534 22 16 1599 - Format works ok
    48000 16 8 768000 16 65534 22 16 255 - Format works ok
    48000 24 8 1152000 24 65534 22 24 1599 - Format works ok
    48000 24 8 1152000 24 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 24 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok

    EXCLUSIVE: on EVENT DRIVEN: off
    -------------------------------------------------------------------------
    48000 16 2 192000 4 1 0 - Format works ok
    48000 16 2 192000 4 65534 22 16 3 - Format works ok
    48000 16 4 384000 8 65534 22 16 51 - Format works ok
    48000 16 6 576000 12 65534 22 16 63 - Format works ok

    EXCLUSIVE: off EVENT DRIVEN: on
    -------------------------------------------------------------------------
    48000 16 1 96000 2 1 0 - Format works ok
    48000 16 1 96000 2 65534 22 16 4 - Format works ok
    48000 24 1 144000 3 1 0 - Format works ok
    48000 24 1 144000 3 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 1 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 32 1 192000 4 3 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 16 2 192000 4 1 0 - Format works ok
    48000 16 2 192000 4 65534 22 16 3 - Format works ok
    48000 24 2 288000 6 1 0 - Format works ok
    48000 24 2 288000 6 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 1 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 32 2 384000 8 3 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 16 4 384000 8 65534 22 16 51 - Format works ok
    48000 24 4 576000 12 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 16 6 576000 12 65534 22 16 1551 - Format works ok
    48000 16 6 576000 12 65534 22 16 63 - Format works ok
    48000 24 6 864000 18 65534 22 24 1551 - Format works ok
    48000 24 6 864000 18 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 24 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 16 8 768000 16 65534 22 16 1599 - Format works ok
    48000 16 8 768000 16 65534 22 16 255 - Format works ok
    48000 24 8 1152000 24 65534 22 24 1599 - Format works ok
    48000 24 8 1152000 24 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 24 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok

    EXCLUSIVE: on EVENT DRIVEN: on
    -------------------------------------------------------------------------
    48000 16 2 192000 4 1 0 - Format works ok
    48000 16 2 192000 4 65534 22 16 3 - Format works ok
    48000 16 4 384000 8 65534 22 16 51 - Format works ok
    48000 16 6 576000 12 65534 22 16 63 - Format works ok

    AC3 - EXCLUSIVE: on EVENT DRIVEN: off
    -------------------------------------------------------------------------

    AC3 - EXCLUSIVE: on EVENT DRIVEN: on
    -------------------------------------------------------------------------
    WASAPI-test.exe version: 3 tested: 2526 ok: 94


    Realtek Digital Output (Realtek AC'97 Audio)
    EXCLUSIVE: off EVENT DRIVEN: off
    -------------------------------------------------------------------------
    48000 16 1 96000 2 1 0 - Format works ok
    48000 16 1 96000 2 65534 22 16 4 - Format works ok
    48000 24 1 144000 3 1 0 - Format works ok
    48000 24 1 144000 3 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 1 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 32 1 192000 4 3 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 16 2 192000 4 1 0 - Format works ok
    48000 16 2 192000 4 65534 22 16 3 - Format works ok
    48000 24 2 288000 6 1 0 - Format works ok
    48000 24 2 288000 6 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 1 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 32 2 384000 8 3 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 16 4 384000 8 65534 22 16 51 - Format works ok
    48000 24 4 576000 12 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 16 6 576000 12 65534 22 16 1551 - Format works ok
    48000 16 6 576000 12 65534 22 16 63 - Format works ok
    48000 24 6 864000 18 65534 22 24 1551 - Format works ok
    48000 24 6 864000 18 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 24 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 16 8 768000 16 65534 22 16 1599 - Format works ok
    48000 16 8 768000 16 65534 22 16 255 - Format works ok
    48000 24 8 1152000 24 65534 22 24 1599 - Format works ok
    48000 24 8 1152000 24 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 24 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok

    EXCLUSIVE: on EVENT DRIVEN: off
    -------------------------------------------------------------------------
    48000 16 2 192000 4 65534 22 16 3 - Format works ok

    EXCLUSIVE: off EVENT DRIVEN: on
    -------------------------------------------------------------------------
    48000 16 1 96000 2 1 0 - Format works ok
    48000 16 1 96000 2 65534 22 16 4 - Format works ok
    48000 24 1 144000 3 1 0 - Format works ok
    48000 24 1 144000 3 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 65534 22 24 4 - Format works ok
    48000 32 1 192000 4 1 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 32 1 192000 4 3 0 - Format works ok
    48000 32 1 192000 4 65534 22 32 4 - Format works ok
    48000 16 2 192000 4 1 0 - Format works ok
    48000 16 2 192000 4 65534 22 16 3 - Format works ok
    48000 24 2 288000 6 1 0 - Format works ok
    48000 24 2 288000 6 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 65534 22 24 3 - Format works ok
    48000 32 2 384000 8 1 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 32 2 384000 8 3 0 - Format works ok
    48000 32 2 384000 8 65534 22 32 3 - Format works ok
    48000 16 4 384000 8 65534 22 16 51 - Format works ok
    48000 24 4 576000 12 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 24 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 32 4 768000 16 65534 22 32 51 - Format works ok
    48000 16 6 576000 12 65534 22 16 1551 - Format works ok
    48000 16 6 576000 12 65534 22 16 63 - Format works ok
    48000 24 6 864000 18 65534 22 24 1551 - Format works ok
    48000 24 6 864000 18 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 24 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 24 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 32 6 1152000 24 65534 22 32 1551 - Format works ok
    48000 32 6 1152000 24 65534 22 32 63 - Format works ok
    48000 16 8 768000 16 65534 22 16 1599 - Format works ok
    48000 16 8 768000 16 65534 22 16 255 - Format works ok
    48000 24 8 1152000 24 65534 22 24 1599 - Format works ok
    48000 24 8 1152000 24 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 24 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 24 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok
    48000 32 8 1536000 32 65534 22 32 1599 - Format works ok
    48000 32 8 1536000 32 65534 22 32 255 - Format works ok

    EXCLUSIVE: on EVENT DRIVEN: on
    -------------------------------------------------------------------------
    48000 16 2 192000 4 65534 22 16 3 - Format works ok

    AC3 - EXCLUSIVE: on EVENT DRIVEN: off
    -------------------------------------------------------------------------
    48000 16 2 192000 4 146 0 - Format works ok

    AC3 - EXCLUSIVE: on EVENT DRIVEN: on
    -------------------------------------------------------------------------
    48000 16 2 192000 4 146 0 - Format works ok
    WASAPI-test.exe version: 3 tested: 2526 ok: 90


    cheers
    Tommy
     

    mironicus

    Portal Pro
    March 9, 2008
    688
    44
    AW: MediaPortal Audio renderer - better video playback quality

    A little finding/note: If you use FFDShow audio decoder you should always disable the internal Jitter correction of the decoder (can be found in the decoder options) as it can cause stutter if you use it with the new dshowhelper/MPAudioRenderer. :)
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: MediaPortal Audio renderer - better video playback quality

    A little finding/note: If you use FFDShow audio decoder you should always disable the internal Jitter correction of the decoder (can be found in the decoder options) as it can cause stutter if you use it with the new dshowhelper/MPAudioRenderer. :)

    Could you post a log about that stuttering? I'm just wondering if the jitter correction is playing around with the sample presentation times. At least the renderer will consider some data to be dropped if the sample times are varying too much (after all the jitter correction has no effect on the MP audio renderer since it will render a constant stream of PCM samples. Timestamps cannot affect in anything else than the starting of a stream - after a play / pause / seek).

    Also a small smaple would be nice - since I'm sure lot of people have that option turned on so it would be nice to allow the ffdshow to think that it is correting possible jitter but still allow MP audio renderer to work correctly. Most likely we can finetune the dropped data detection to be a bit more forgiving (hopefully not too much :D).

    I seem to have that jitter correction enabled, but I guess I haven't seen a "correct" sample media file that would trigger the issue.
     

    Truri

    MP Donator
  • Premium Supporter
  • November 9, 2008
    192
    9
    Home Country
    Germany Germany
    AW: MediaPortal Audio renderer - better video playback quality

    Here the Results with Test 3 on my ATI 5670 (HDMI)

    WASAPI-test.exe version: 3 tested: 2526 ok: 148

    mironicus
    Mhm thats interesting. I use FFDShow and the jitter correction is activated. But I cannot confirm that yet... I deactivate it now and will see if there is any change...
     

    Attachments

    • WASAPI Test 3.txt
      9.6 KB

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Re: AW: MediaPortal Audio renderer - better video playback quality

    A little finding/note: If you use FFDShow audio decoder you should always disable the internal Jitter correction of the decoder (can be found in the decoder options) as it can cause stutter if you use it with the new dshowhelper/MPAudioRenderer. :)

    I cannot confirm that. I've the jitter correction because if a default for ffdshow. I've no problem with dshowhelper and reclock on my htpc (except in some test on the secondary monitor) I'll try to disable when I'll switch permanently to mpaudiorenderer
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    it works. Good shot :D

    Here's a test version that overrides the channel mask that the audio decoder is giving for 5.1. This should be only nescessary for Xonar - or any other audio card that shows following in the WASAPI_test.exe output. Mainly only the 1551 for 6 channel audio.

    96000 16 6 1152000 12 65534 22 16 1551 - Format works ok
    96000 24 6 1728000 18 65534 22 24 1551 - Format works ok

    Please don't try this for anything else than the 5.1 / 6 channel issue where format negotiation fails and the test tool log output shows the 1551 as channel mask!
     

    Attachments

    • mpaudiorenderer_Xonar_test.zip
      135.6 KB

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,635
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    AW: Re: AW: MediaPortal Audio renderer - better video playback quality

    It's onboard sound from "ASUS A7N8X-E Deluxe" (NVIDIA nForce 2).

    Odd that it supports only 48.0 Khz modes.
    It is really old, and so I used the driver provided by windows update, as these are simply working, which is enough for me with all those stone-age components these days.

    So I think it may be a driver "issue"?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Re: AW: MediaPortal Audio renderer - better video playback quality

    It's onboard sound from "ASUS A7N8X-E Deluxe" (NVIDIA nForce 2).

    Odd that it supports only 48.0 Khz modes.
    It is really old, and so I used the driver provided by windows update, as these are simply working, which is enough for me with all those stone-age components these days.

    The best WASAPI drivers that I have seen are coming from MS. They just work :)


    So I think it may be a driver "issue"?

    Could be driver or HW limitation. I wouldn't update the drivers if they work since:

    1) you can use ffdshow to resample the audio always to 48.0 Khz - this is most likely many times better in quality wise than the HW / driver resampling would be

    2) MP audio renderer will learn to handle the resampling automatically at some day (not too distant future I would say) - this will be on same quality level as ffdshow's resampling and will be done only when HW is incapable of playing the 1:1 stream format
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    it works. Good shot :D

    Here's a test version that overrides the channel mask that the audio decoder is giving for 5.1. This should be only nescessary for Xonar - or any other audio card that shows following in the WASAPI_test.exe output. Mainly only the 1551 for 6 channel audio.

    96000 16 6 1152000 12 65534 22 16 1551 - Format works ok
    96000 24 6 1728000 18 65534 22 24 1551 - Format works ok

    Please don't try this for anything else than the 5.1 / 6 channel issue where format negotiation fails and the test tool log output shows the 1551 as channel mask!

    It works :D The new audio renderer is in the chain now.

    But there are a lot of clicks . The sound is not good.
     

    Users who are viewing this thread

    Top Bottom