MP 1.16 MPAR Broken/Bug (1 Viewer)

Adam86

Portal Pro
April 19, 2012
99
6
37
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:
08-05-2017 16:58:44.557 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
   line repeated 319 times
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
08-05-2017 16:58:44.616 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
   line repeated 319 times
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
08-05-2017 16:58:44.676 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
   line repeated 319 times
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
08-05-2017 16:58:44.734 [ 2750] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
   line repeated 319 times

And similar in in the working AudioRenderer log, but you can see it then successfully creates the AC3 encoder:

Code:
08-05-2017 17:02:32.970 [ 1c8c] Unable to find selected audio device, using the default end point!
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
08-05-2017 17:02:32.971 [ 1c8c] WASAPIRenderFilter::CreateAudioClient success
08-05-2017 17:02:32.971 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.972 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.973 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.973 [ 1c8c] AC3  -          :  48000Hz 16i (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000
08-05-2017 17:02:32.973 [ 1c8c] BDA  -          :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
08-05-2017 17:02:32.973 [ 1c8c] TS   -          :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.974 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.975 [ 1c8c] CWASAPIRenderFilter::NegotiateFormat WASAPI client refused the format: (0x88890008)
08-05-2017 17:02:32.975 [ 1c8c] WASAPIRenderFilter::CreateAudioClient
08-05-2017 17:02:32.975 [ 1c8c] WASAPIRenderFilter::CreateAudioClient success
08-05-2017 17:02:32.975 [ 1c8c] WASAPIRenderFilter::InitAudioClient
08-05-2017 17:02:32.984 [ 1c8c] WASAPIRenderer::InitAudioClient service initialization success
08-05-2017 17:02:32.984 [ 1c8c] WASAPIRenderFilter::InitAudioClient device reported latency 50 ms - buffer based latency 50 ms
08-05-2017 17:02:32.984 [ 1c8c] AC3  - applying :  48000Hz 16i (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000
08-05-2017 17:02:32.984 [ 1c8c] OpenEncoder - Creating AC3 encoder - bitrate: 448000 sampleRate: 48000 channels: 6
08-05-2017 17:02:32.984 [ 1c8c] BDA  - applying :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
08-05-2017 17:02:32.984 [ 1c8c] CBitDepthAdapter::SetupConversion
08-05-2017 17:02:32.984 [ 1c8c] Input format    :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
08-05-2017 17:02:32.984 [ 1c8c] Output format   :  48000Hz 16i (16)bits  6ch -- ch mask: 1551 align: 12 avgbytes:   576000
08-05-2017 17:02:32.984 [ 1c8c] TS   - applying :  48000Hz 32f (32)bits  6ch -- ch mask: 1551 align: 24 avgbytes:  1152000
08-05-2017 17:02:32.984 [ 1c8c] ==[Downmix Matrix]==
08-05-2017 17:02:32.984 [ 1c8c] FL = FL(1)
08-05-2017 17:02:32.984 [ 1c8c] FC = FC(1)
08-05-2017 17:02:32.984 [ 1c8c] FR = FR(1)
08-05-2017 17:02:32.984 [ 1c8c] BL = BL(1)
08-05-2017 17:02:32.984 [ 1c8c] BR = BR(1)
08-05-2017 17:02:32.984 [ 1c8c] LFE = LFE(1)
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
 

Adam86

Portal Pro
April 19, 2012
99
6
37
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
 

richardc1983

Portal Pro
October 10, 2012
251
24
Leeds
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.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    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.
    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.
     

    Adam86

    Portal Pro
    April 19, 2012
    99
    6
    37
    Home Country
    United Kingdom United Kingdom
    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.

    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.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    @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
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    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.
     

    Adam86

    Portal Pro
    April 19, 2012
    99
    6
    37
    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.
     

    Attachments

    • 2016-08-13 12_32_00-Properties.png
      2016-08-13 12_32_00-Properties.png
      25.2 KB
    • 2016-08-13 12_32_08-Properties.png
      2016-08-13 12_32_08-Properties.png
      15.3 KB

    Users who are viewing this thread

    Top Bottom