MP 1.16 MPAR Broken/Bug

Discussion in 'General Support' started by Adam86, May 8, 2017.

  1. Adam86

    Adam86 Portal Pro

    Joined:
    April 19, 2012
    Messages:
    99
    Likes Received:
    4
    Gender:
    Male
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Afternoon,

    Just upgraded our MediaPortal installations from 1.15 to 1.16 now that @Brownard has kindly built the Custom Data Grabber version for us.

    Now I know you do say you don't provide support on custom builds but I don't think the Custom Data would have any effect on MPAR.

    Basically none of the machines will now output 5.1 sound on any content with 5.1. I was also told by my wife this morning (although didn't see it for myself) that the audio starts going out of sync until playback comes to a complete stop. I've come home and done some testing and straight away noticed the amp was only outputting very quietly in Pro Logic. No settings have been changed within Windows or MPAR or MediaPortals Codec Settings since upgrading.

    Luckily I still have a machine running MP 1.15 so took the liberty of taking the mpaudiorenderer.ax from that installation and replacing it with the 1.16 version which I can see is a slightly different file size so there does appear to have been some modifications made between the two releases. As soon as I've done that, 5.1 sound is working again and I am currently testing to see if playback remains in sync and doesn't lock up.

    I've also just found the same issue occurring on the PC down at my Dad's which both happen to be setup in the same way using Intel Display Audio over ARC on the TV encoding anything into Dolby Digital. Both PC's have the Intel HD 4600 graphics - as I say no other changes have been made to these machines so I think drivers can be ruled out.

    I've just clarified with my brother and he says his setup is still working OK but he is still using an optical connection from a USB sound card into his AMP.

    I've attached logs from using the stock 1.16 mpaudiorenderer.ax and then the mpaudiorenderer.ax from 1.15 where everything is working OK again.

    From what I can see in the log for AudioRenderer when it isn't working is:

    Code (Text):
    1. 08-05-2017 16:58:44.557 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    2.    line repeated 319 times
    3. 08-05-2017 16:58:44.616 [ 2750] CheckMediaType  :  48000Hz 16 (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000 type: PCM tag: 65534
    4. 08-05-2017 16:58:44.616 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    5.    line repeated 319 times
    6. 08-05-2017 16:58:44.676 [ 2750] CheckMediaType  :  48000Hz 32 (32)bits  6ch -- ch mask:   63 align: 24 avgbytes:  1152000 type: Float tag: 65534
    7. 08-05-2017 16:58:44.676 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    8.    line repeated 319 times
    9. 08-05-2017 16:58:44.734 [ 2750] CheckMediaType  :  48000Hz 16 (16)bits  6ch -- ch mask:   63 align: 12 avgbytes:   576000 type: PCM tag: 65534
    10. 08-05-2017 16:58:44.734 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    11.    line repeated 319 times
    And similar in in the working AudioRenderer log, but you can see it then successfully creates the AC3 encoder:

    Code (Text):
    1. 08-05-2017 17:02:32.970 [ 1c8c] Unable to find selected audio device, using the default end point!
    2. 08-05-2017 17:02:32.971 [ 1c8c] Default audio endpoint: "SAMSUNG (Intel(R) Display Audio)" ({0.0.0.00000000}.{c760fe74-e9d2-4e8a-a57e-1df104e77d4e}) - pull mode: 1 sprk mask: 3
    3. 08-05-2017 17:02:32.971 [ 1c8c] WASAPIRenderFilter::CreateAudioClient success
    4. 08-05-2017 17:02:32.971 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    5. 08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    6. 08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    7. 08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    8. 08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    9. 08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    10. 08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    11. 08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    12. 08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    13. 08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    14. 08-05-2017 17:02:32.973 [ 1c8c] AC3  -          :  48000Hz 16i (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000
    15. 08-05-2017 17:02:32.973 [ 1c8c] BDA  -          :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
    16. 08-05-2017 17:02:32.973 [ 1c8c] TS   -          :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
    17. 08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    18. 08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    19. 08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    20. 08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    21. 08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    22. 08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    23. 08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    24. 08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    25. 08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    26. 08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
    27. 08-05-2017 17:02:32.975 [ 1c8c] WASAPIRenderFilter::CreateAudioClient
    28. 08-05-2017 17:02:32.975 [ 1c8c] WASAPIRenderFilter::CreateAudioClient success
    29. 08-05-2017 17:02:32.975 [ 1c8c] WASAPIRenderFilter::InitAudioClient
    30. 08-05-2017 17:02:32.984 [ 1c8c] WASAPIRenderer::InitAudioClient service initialization success
    31. 08-05-2017 17:02:32.984 [ 1c8c] WASAPIRenderFilter::InitAudioClient device reported latency 50 ms - buffer based latency 50 ms
    32. 08-05-2017 17:02:32.984 [ 1c8c] AC3  - applying :  48000Hz 16i (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000
    33. 08-05-2017 17:02:32.984 [ 1c8c] OpenEncoder - Creating AC3 encoder - bitrate: 448000 sampleRate: 48000 channels: 6
    34. 08-05-2017 17:02:32.984 [ 1c8c] BDA  - applying :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
    35. 08-05-2017 17:02:32.984 [ 1c8c] CBitDepthAdapter::SetupConversion
    36. 08-05-2017 17:02:32.984 [ 1c8c] Input format    :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
    37. 08-05-2017 17:02:32.984 [ 1c8c] Output format   :  48000Hz 16i (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000
    38. 08-05-2017 17:02:32.984 [ 1c8c] TS   - applying :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
    39. 08-05-2017 17:02:32.984 [ 1c8c] ==[Downmix Matrix]==
    40. 08-05-2017 17:02:32.984 [ 1c8c] FL = FL(1)
    41. 08-05-2017 17:02:32.984 [ 1c8c] FC = FC(1)
    42. 08-05-2017 17:02:32.984 [ 1c8c] FR = FR(1)
    43. 08-05-2017 17:02:32.984 [ 1c8c] BL = BL(1)
    44. 08-05-2017 17:02:32.984 [ 1c8c] BR = BR(1)
    45. 08-05-2017 17:02:32.984 [ 1c8c] LFE = LFE(1)
    46. 08-05-2017 17:02:32.984 [ 1c8c] ====================
    Hopefully the attached logs will be enough to see what is occurring and resolve this.



    Thanks
    Adam
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Adam86

    Adam86 Portal Pro

    Joined:
    April 19, 2012
    Messages:
    99
    Likes Received:
    4
    Gender:
    Male
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Evening, I just wanted to advise that my brother @richardc1983 has tonight faced the same problems on his setup.

    He said that TV playback became really choppy and gradually got worse. I've replaced the mpaudiorender.ax with the 1.15 version just as I did for myself and he has tested this and he is now working OK again.

    I've attached the logs from one of his clients.
    Thanks
     
  4. richardc1983

    richardc1983 Portal Pro

    Joined:
    October 10, 2012
    Messages:
    251
    Likes Received:
    18
    Gender:
    Male
    Location:
    Leeds
    Ratings:
    +25 / 3
    Home Country:
    United Kingdom United Kingdom
    Yes that's correct @Adam86 within 5 mins of starting playback on the machines the sound was out of sync, then if the same channel left on for any considerable time the playback is all stuttering and choppy. Skip back 15s and it brings it back into line for 5/10 minutes. Been fine since you replaced that file with the one from 1.15.

    I thought changes had been made in 1.16 to playback - this pasted from the homepage:
    • Live TV playback performs smooth matching of broadcast and PC stream rates, to reduce playback 'pauses' in some circumstances.
     
  5. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    Sure... but that refers to changes in TsReader not MPAR.

    Guys, please be aware that MPAR is not intended for use with live TV. At least, it can't perform it's audio resampling fully/properly for live TV. The reason for this should be obvious: speeding up the audio to match video would require access to future audio that hasn't been broadcast/received yet.
     
    • Informative Informative x 1
  6. Adam86

    Adam86 Portal Pro

    Joined:
    April 19, 2012
    Messages:
    99
    Likes Received:
    4
    Gender:
    Male
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Understandable reason why it shouldn't be used with Live TV - however in the few years I've had MPAR configured, it has always worked without issue but the reason does make sense.

    This issue isn't just happening on TV though, it is happening on locally stored content too I'm afraid.
     
  7. 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
  8. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    Hi,
    Like this i have no idea :( need to look deeper :p
     
  9. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    @Adam86 @richardc1983 did you try to use dsound instead of MPAR to see if there is a different ?
    LAV Audio set as bitstream can work with DirectSound audio renderer.

    But still we need to figure out why latest MPAR doesn't show up the version number :p
     
  10. 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
    Seb - in the 'broken' logs (using the MP 1.16 MPAR version) MP is falling back to DirectSound renderer, presumably because MPAR won't connect.
     
    • Thank You! Thank You! x 1
  11. Adam86

    Adam86 Portal Pro

    Joined:
    April 19, 2012
    Messages:
    99
    Likes Received:
    4
    Gender:
    Male
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Last night I was actually messing with playback using DirectSound with LAV for TV and AC3Filter for anything else (I use ARC via the TV and the good thing about MPAR is it can encode to AC3, my TV you either have to change bitstream to AC3 or DTS manually - AC3Filter can encode to AC3 as well so I thought I'd try it).

    Playback wasn't great on TV playback and local content, went out of sync within minutes and then suddenly sounded like a broken record repeating itself, so I'd say it was pretty much the same as before, so perhaps there is an issue with DirectSound as well as MPAR as if it is failing back to DirectSound using the 1.16 renderer. The 1.15 version definitely appears work fine however.

    Have also attached the logs as you may see something else.
     

    Attached Files:

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!