MediaPortal Audio renderer - better video playback quality (1 Viewer)

Truri

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

    Ok, with this setting it works!
    I have sound on all channels.
    But my receiver didn't recognice AC3 even i had the option is set.

    Without ACEncode set I can't switch to AC3 channels.

    C:\Users\123\Documents\play-exclusive>play-exclusive.exe --file ac3.wav
    Opening .wav file "ac3.wav"...
    The default period for this device is 30000 hundred-nanoseconds, or 144 frames.
    IAudioClient::Initialize failed: hr = 0x80070057
    Thread returned failing HRESULT 0x80070057
    C:\Users\123\Documents\play-exclusive>
     

    Attachments

    • AC3 encode on.rar
      2.5 KB
    • No AC3 encode.rar
      7.4 KB

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Strange thing is that the v5 works, since it is as well using the event based mode (the same as play-exclusive.exe - that is failing as well).

    IIRC v5 did not check if event mode is supported by the driver, it simply tried to use it and would fail if the driver failed. So it is quite possible that the driver reports that event mode is not supported but succeeds when an app tries to use it.
     

    Truri

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

    Hi,

    I have made some tests with the latest version.

    The only way to get sound is using DirectSound but only on channels without AC3 Tracks.
    On AC3 channels I get only some cracks/hickups.

    DirectSound is currently not "actively" developed (not sure if arion still uses it :)) - AC3 tracks could cause some format negotiation issue, althou the log shows that PCM was used. I'll have a look on that whole DirectSound support at some later stage, currently I'm just focusing the more important WASAPI.

    Ok, I understand.
    I have no problem using WASAPI if it's working for me ;)
    I only have tested and with exlusive WASAPI I had no sound but with Direct sound.
    But with your hint, using non exclusiv mode, WASAPI works ;)
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Strange thing is that the v5 works, since it is as well using the event based mode (the same as play-exclusive.exe - that is failing as well).

    IIRC v5 did not check if event mode is supported by the driver, it simply tried to use it and would fail if the driver failed. So it is quite possible that the driver reports that event mode is not supported but succeeds when an app tries to use it.

    In v7 (or v6) it is just queried and logged on. No code path is different - event based mode is still tried to be used (and NVIDIA driver will fail in the initialization phase because of that flag).
     

    Truri

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

    And some further news:
    With the ATI HDMI driver in the Catalyst Package:

    C:\Users\123\Documents\play-exclusive>play-exclusive.exe --file ac3.wav
    Opening .wav file "ac3.wav"...
    The default period for this device is 30000 hundred-nanoseconds, or 144 frames.
    Buffer size not aligned - doing the alignment dance.
    Trying again with periodicity of 33333 hundred-nanoseconds, or 160 frames.
    We ended up with a period of 33333 hns or 160 frames.
    Successfully played all 460800 frames.

    C:\Users\123\Documents\play-exclusive>
    So with these drivers the WASAPI exclusive mode seems to work.

    <Edit>
    Now I have an AC3 signal recognized by my receiver.
    Logs attached
    </edit>
     

    tourettes

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

    And some further news:
    With the ATI HDMI driver in the Catalyst Package:

    C:\Users\123\Documents\play-exclusive>play-exclusive.exe --file ac3.wav
    Opening .wav file "ac3.wav"...
    The default period for this device is 30000 hundred-nanoseconds, or 144 frames.
    Buffer size not aligned - doing the alignment dance.
    Trying again with periodicity of 33333 hundred-nanoseconds, or 160 frames.
    We ended up with a period of 33333 hns or 160 frames.
    Successfully played all 460800 frames.

    C:\Users\123\Documents\play-exclusive>
    So with these drivers the WASAPI exclusive mode seems to work.

    How I love the sound of broken drivers... WASAPI seems to be even more broken than the GPU driver side. But good to know that the official ATI drivers are working.

    could you check that AC3 encoding works as well with the HDMI? No use case, but would be good to know (I cannot test such myself until NVIDIA provides new / working drivers).
     

    Truri

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

    Yes in my post above I added some logs and her are some more.
    Semms to work so far.
    AC3 2.0 and 5.1
     

    Truri

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

    Here is a log from an mkv with an 5.1 FLAC Track
    Even if there are errors reportet, I get an 5.1 Signal on my Onkyo.
    Sounds ok so far ;)
    Because of my 2.0 box set connected to my receiver, I can't really check if its an real 5.1 stream ^^

    Now it would be nice if the realtek drivers were working... Because the ATI drivers are making everytime a HDMI handshake if sound starts/stops... ^^
     

    tourettes

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

    Here is a log from an mkv with an 5.1 FLAC Track
    Even if there are errors reportet, I get an 5.1 Signal on my Onkyo.
    Sounds ok so far ;)
    Because of my 2.0 box set connected to my receiver, I can't really check if its an real 5.1 stream ^^

    Would be nice if you could test same file without the AC3 encoding. AMP should detect the audio correctly and play it from multiple speakers (it wont show any AC3 signal etc. since it is not packed audio).

    Now it would be nice if the realtek drivers were working... Because the ATI drivers are making everytime a HDMI handshake if sound starts/stops... ^^

    Unfortunately this is something only Realtek can do anything.
     

    Users who are viewing this thread

    Top Bottom