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

micko

Portal Pro
May 27, 2006
258
51
Home Country
Finland Finland
It might be that your PCs system clock is running on a different speed that the audio clock. That would explain the small drifting since currently the audio HW clock / sample comsumption is not used to generate the reference clock. There is currently some developent effort spent on that (not by me) and hopefully we can have a "real" audio HW based reference clock at some point.
I'm not really familiar with different clocks there. You mean that my mb's (or ATIs) audio chip clock might not be genereted from the system clock?

Audio HW clock is not ever (at least I think it is not) generated by the system clock - audio HW has it's own clock source that is used to time the audio renderering.

What I ment was that the audio renderer itself is not currently generating the reference clock (used by rest of the directshow graph - liek EVR presenter) based on the audio HW clock. This is something that needs to be fixed at some point in the development. There should be currently one non-MP developer looking into this "feature".
Ok, I messed up HW(audio&system) "real" clocks and SW(renderer) generated clocks. Thanks for the explanation. If I think more that HW point of view there sure is different oscillator for audio.

So with that PC I really can only wait until MP audio renderer is based its clock on the audio HW clock.
 

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Re: AW: MediaPortal Audio renderer - better video playback quality

    Is this for anybody working with multiseat and rstp? Tourettes is this Wirkung for you? I see only massive stuttering.
    When speeding up A/V material, RTSP will have issues. The reason is simple: TsReader and all other filters in the graph are synchronized to AudioRenderer's clock and will try to provide data at a higher rate. But the StreamingServer knows nothing about the DShow graph clock on the client. It uses the server's clock and the stream's timestamps to determine the rate at which to send the data. In RTSP there is no flow control between client and server, so server does not know if client consumes data at a higher rate.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: MediaPortal Audio renderer - better video playback quality

    that's correct but i don't speedup anything. Will have a look at it tonight. Perhaps a totally different issue - who knows :)

    [
    16-09-2010 09:52:34.556 [ 3ac] WASAPIRenderer::confused:tartAudioClient
    16-09-2010 09:52:34.556 [ 3ac] start failed (0x88890001)

    For some reason the audio client was not initialized (AUDCLNT_E_NOT_INITIALIZED == 0x88890001) please upload a sample file so I can try to reproduce that issue, althou it is not related to the no video visible, which might be MediaPortal issue.

    Same for me on my livingroom htpc. Happens there with EVERY .ts file or livetv. Doesn't matter if 5.1 or 2.0 is broadcasted. mkv and avi Files are working fine.

    Any idea what to check?
     

    sukceso

    Portal Pro
    November 6, 2008
    181
    31
    Herrenberg
    Home Country
    Germany Germany
    I gave the mpaudiorenderer a try on my system today. I'm running an Asus Xonar D1 with (analog) 5.1 speakers. I have set ChannelMaskOverride_5_1 to (decimal) 1551, but I was not able to get any sound with this setting. When setting WASAPIUseEventMode to 0, I'm getting sound and mpaudiorenderer is in use.

    Is this normal behaviour for this sound card and "just" a problem of the Asus sound card driver (I'm running Win7 x64), or can I adjust something different to get event mode running with my setup?
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    I gave the mpaudiorenderer a try on my system today. I'm running an Asus Xonar D1 with (analog) 5.1 speakers. I have set ChannelMaskOverride_5_1 to (decimal) 1551, but I was not able to get any sound with this setting. When setting WASAPIUseEventMode to 0, I'm getting sound and mpaudiorenderer is in use.

    Is this normal behaviour for this sound card and "just" a problem of the Asus sound card driver (I'm running Win7 x64), or can I adjust something different to get event mode running with my setup?

    Yes, it seems have the same DX issue . Please read some posts ago (mine) and also try play-exclusive test to confirm the event driven issue.
    (https://forum.team-mediaportal.com/...layback-quality-84441/index63.html#post657118)
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    version 12 - based on SVN revision 26348

    Minor fix release.

    • Refactored A/V sync / sample scheduling - hopefully this will sort out few A/V sync related issues, for example the one that Xonar has with big buffers
    • Fixed sample handling with the time strecthing disabled - madFlac was not working at all. ffdshow could have lots of dropped audio data.
    • Fixed format negotiation when EnableTimestretching was set to disabled
    • Added logging for device reported latency.

    https://forum.team-mediaportal.com/637138-post3.html
     

    sukceso

    Portal Pro
    November 6, 2008
    181
    31
    Herrenberg
    Home Country
    Germany Germany
    As my Asus Xonar D1 does not work correctly (WASAPI exclusive mode), I either have to wait for an updated driver and response form Asus developers or think about another audio card.

    What are current recommendations (I need a PCI card)? Creative, Auzentech, ...?
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Re: AW: MediaPortal Audio renderer - better video playback quality

    Any idea what to check?

    A sample .ts file (althou seems it would be system specific somehow) - or check with the next available build if it changes anything.

    New version doesnt help. Same ts is working in 2nd htpc - still the need for providing a .ts file?
     

    Users who are viewing this thread

    Top Bottom