MediaPortal Audio Renderer (2 Viewers)

Status
Not open for further replies.

edterbak

Portal Pro
March 4, 2008
2,114
1,176
Home Country
Netherlands Netherlands
Tourettes, I did some testing for you (us) :)

I did some variations for you. For all situations below, I created a log. They are attached. Maybe they were worth the time.

Xonar + Eventmode 1 + Stereo output selected (in MPAR)

xonar 21-48-00.png xonar 21-50-49.png
Here I observed a slight desync of audio/video. Watchable though

AMD HDMI + Eventmode 1 + Stereo output selected
AMD Audio_STEREO 22-06-59.png AMD Audio_STEREO 22-09-54.png

Here I observed a slight desync of audio/video. Watchable as well

AMD HDMI + Eventmode 1 + 5.1 output selected

Note that I do however have the 1551 channel mask still active in the registry.
AMD Audio_5.1 22-19-34.png AMD Audio_5.1 22-19-40.png AMD Audio_5.1 22-25-36.png

The video is watchable, although a slight desync of audio/video is still visible. same as above.
After pressing F11, a huge number of dropped frames came by. 70+ I made an extra screenshot to see what happend.

XONAR + Eventmode 1 + 5.1 output selected
Xonar_eventmode_1_5.1 22-30-42.png Xonar_eventmode_1_5.1 22-33-01.png
Observations are similar to what Red5 is reporting. Audio is stuttering and very very unwatchable. Video seems fine though.

I tried with Eventmode 0 but the results are the same. Because the result is identical, I did not add a log of that.

[edit]
I just de-installed SAF 6.10 and installed SAF 6.11. I now notice the lipsync is a lot less when using LAV audio + video decoder. Just an observation. I hope the LAV filter didnt introduce what were seeing. Ill test some more.

[edit 2]
I still see/hear that hickup every now and then. To be sure, I added the log anyways.
Lipsync does seem better to me.
 
Last edited:

red5goahead

MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Tourettes, I did some testing too.

    I 've activate again the audio card embedded into Asus P5K. the Realtek ACL 883. Connected the coaxial digital output to dig-4 of my Marantz and I 'm ready to go with two sound card. Xonar is still connected on dig-2 through optical cable.

    I choose to setup a Reclock based system reference too. That sound card do not have a Dolby digital live feaure so I've to check the ac3 encoding. everything is fine with Reclock.

    Thus I set 5.1 for MPAR, AC3 encoding in "auto" and set the Realtek audio entry

    I've no sound and no display information on a/v receiver, the video is fine.

    I put the log in attach.
     
    Last edited:

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Tourettes, I did some testing too.

    I 've activate again the audio card embedded into Asus P5K. the Realtek ACL 883. Connected the coaxial digital output to dig-4 of my Marantz and I 'm ready to go with two sound card. Xonar is still connected on dig-2 through optical cable.

    I choose to setup a Reclock based system reference too. That sound card do not have a Dolby digital live feaure so I've to check the ac3 encoding. everything is fine with Reclock.

    Thus I set 5.1 for MPAR, AC3 encoding in "auto" and set the Realtek audio entry

    I've no sound and no display information on a/v receiver, the video is fine.

    I put the log in attach.

    21-05-2012 22:58:41.377 [ 11b0] WASAPIRenderFilter::InitAudioClient using device period from driver 10 ms
    21-05-2012 22:58:41.389 [ 11b0] WASAPIRenderFilter::InitAudioClient Initialize failed (0x80070057)

    0x80070057 E_INVALIDARG

    Try using different DevicePeriod settings for example the default 50 ms (500000).

    Also try using non-event based mode, at least the driver reports it wont support event based mode (supports pull mode: 0) - but those aren't never to be trusted. I have seen many drivers that falsely report that they support/don support the event based mode and in the end it is the opposite what they actually support.

    I have no problems with Realtek (SPDIF) on my dev PC. Actually it has been the HW that has had always working drivers (not like Nvidia or ATI GPUs).
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Tourettes.

    I've updated the Realtek hd high definition driver only. Now It work fine. With the same previous registry entries. :)

    I think it will be usefull to have an audio device configuration into MP . For the future It would be nice to have the Realtek High Definition Audio (the analog one) as default device for Windows and the Realtek Digital Output as default for MP. I mean not only for MPAR but for the entire application to use that device for music or even for the internal sound and so on.

    I thing I'll keep using Xonar / Asio with Foobar through its fantastic headphones output but It think I'll come back to embedded audio for MP. too much trouble... (y)
     
    Last edited:

    SciDoctor

    Retired Team Member
  • Premium Supporter
  • February 2, 2005
    1,465
    139
    England
    I think I may have found an instal problem, did a quick scan of this thread and couldn't find it mentioned.

    The mpaudiorenderer will not register on non SSE2 chips. VISTA32 AMD XP in use on a test pc.

    A similar problem has occured in the past with some new MP files and was found to be a problem with the compiler used; could this be the same?
     

    Attachments

    • mpaudiorenderer can't reg on non SSE2 systems.JPG
      mpaudiorenderer can't reg on non SSE2 systems.JPG
      91.9 KB

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Tourettes

    I told you some day ago that I've switched to Realtek and there are good news.

    on April 14, 2011
    https://forum.team-mediaportal.com/...o-playback-quality.84441/page-122#post-733067

    I talked about quality sound of MP v.1. This issues seems gone with V2. I don't know if were related to Xonar card or other. The timestrecthing sound now seems better than before.

    During a 40-41 minutes tv-series episode sometimes , maybe 1-2 times, there are some kind of audio distorsion and video stuttering for few seconds. I had 0 for device period . I'll try to increase to 500000 at least. I'll keep you posted
     
    Last edited:

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I think I may have found an instal problem, did a quick scan of this thread and couldn't find it mentioned.

    The mpaudiorenderer will not register on non SSE2 chips. VISTA32 AMD XP in use on a test pc.

    A similar problem has occured in the past with some new MP files and was found to be a problem with the compiler used; could this be the same?

    MPAR requires SSE2 to be present in CPU. 1.3.0 Alpha instaler has now patched to not to install MPAR on system that have XP or CPU with no SSE2 support. Yes, MPAR will be part of the next major MP release - 1.3.0 unles something odd happens. MPAR wont be enabled by default - user needs to explicitly want to use MPAR as audio renderer for video / DVD / live tv / Blu-ray.

    For 1.3.0 beta the MPAR .ax will be fixed so it wont crash when it is tried to install on system that has no SSE2 support.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I told you some day ago that I've switched to Realtek and there are good news.

    I would still like to fix teh Xonar format negotiation with the MPAR. Are you willing to do some testing with Xonar? :)

    on April 14, 2011
    https://forum.team-mediaportal.com/...o-playback-quality.84441/page-122#post-733067

    I talked about quality sound of MP v.1. This issues seems gone with V2. I don't know if were related to Xonar card or other. The timestrecthing sound now seems better than before.

    There shouldn't be any difference in the timestretch sound quality (no actual changes were done on that area) - so it could be the Xonar (and eventless mode probably). See for more details in the next paragraph.

    During a 40-41 minutes tv-series episode sometimes , maybe 1-2 times, there are some kind of audio distorsion and video stuttering for few seconds. I had 0 for device period . I'll try to increase to 500000 at least. I'll keep you posted

    Could you post a log in case it happens with the 500000 as well? Also make sure that event mode is used with RealTek since it should support it - that mode is far more robust for multiple reasons:

    • I didn't test that eventless mode while developing the new MPAR (at all - it is just the old code and refactored to meet the new changes) - I'm pressy suprised that it works as good as it works :)
    • HW / driver based events are a bit more reliable than the ones MPAR is able to generate
    • MPAR just makes an assumption when the audio buffer would be empty and then schedules a buffer filling operatio to happen on that time. That logic might require some improvement (I did notice few dropped samples during 2h movie while the same movie plays nicely with HW based events)
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Could you post a log in case it happens with the 500000 as well? Also make sure that event mode is used with RealTek since it should support it - that mode is far more robust for multiple reasons:

    With 500000 value I've not any problem . I watched two episodes with no issues.
    The eventmode was on.

    Don't forget the option Auto for speaker... :) based on operating system audio driver settings when avaiable or based on source channels when not (for example with the Realtek digital output )



    Uploaded with ImageShack.us
     
    Last edited:
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom