MP 1.16 MPAR Broken/Bug (1 Viewer)

Adam86

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

Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    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
    33
    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,447
    10,273
    France
    France France
    Country flag
    @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

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    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
    33
    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

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    C Grabbers broken General Support 24
    Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
    A Help! MP2 - DVB-T Not recognised (DRIVERS?) General 12
    M [solved] IMDB script broken again General Support 67
    R Bug: Video Folders disappear General Support 11
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    framug [Approved] Fix Irtrans config bug Submit: code patches (MediaPortal/TV-Server/etc.) 4
    ge2301 Bugs and Improvements Nereus 6
    N [Finished] Focus problems - I think I've found the bug MediaPortal 2 30
    Scheibes [solved] Kategorisierung der Genres (Bug?) Allgemeines Support- und Diskussionsforum 13
    joecrow 3 Bugs in MP 1.21 1.21 5
    dcapslock TV Server xmltv IWakeupHandler Bug Television (MyTV frontend and TV-Server) 6
    rsbrux Various bugs, some Zombies ;-) 1.20 6
    J [solved] Mp 2.2 future bugs General 7
    S [MP2-768] Installation Setup Failed - Error 0x80070666 - VC++ 2015/2017 Redist bug 2.2 Archive 19
    D MP2.2: Possible bugs 2.2 Archive 20
    R Jira bug exposed private server keys at major companies Developer Discussions 1
    R Minor bug in recorded TV list Watch / Listen Media 0
    P MP2 - V2.1 Bug - Onlinevideos U.S. Amazon Prime Fails to Connect Older releases 5
    Top Bottom