Author Topic: AAC Playback Problem  (Read 1006 times)

Tron04

  • Posts: 25
AAC Playback Problem
« on: 23 Feb '19 - 10:18 »
Hello,

I noticed that xmplay (current and "stuff" version)  does not correctly playback aac+ 64kbit streams without xmp-aac.dll.
Other bitrates play fine. Without the DLL, it will play the stream for exactly 5 seconds and then will freeze.
I tried several 64kbit streams from several stations and the behavior was consistent.
(Example: http://uk2-pn.mixstream.net:8414/ )

As mentioned a workaround is to use xmp-aac.dll which does not have this bug.
(My System: Windows 10 Pro 1809 64bit)
Is it possible to fix this?

sveakul

  • Posts: 80
Re: AAC Playback Problem
« Reply #1 on: 23 Feb '19 - 18:01 »
I tried the link you supplied with Windows 7 SP1 32-bit and the latest XMPlay:

With xmp-aac.dll:  plays fine, as you described

With xmp-aac.dll renamed/removed (using Microsoft AAC):  plays fine

As above, but with priority given to LAV Filters AAC vs. Microsoft AAC:  plays fine

So not sure why you should have an issue with it, however, could be Windows 10 update related.  The bitrate really shouldn't make any difference, only the sample rate (the Windows AAC codec doesn't support AAC sample rates over 48kHz), but the latter isn't relevant in this case.

Seems to me keeping xmp-aac.dll in place is an easy workaround.

Tron04

  • Posts: 25
Re: AAC Playback Problem
« Reply #2 on: 23 Feb '19 - 18:15 »
As strange as it sounds, the error is not there when trying a 32kbit or 128kbit aac+ stream. But for 64kbit aac+ I have consistent crashes/freezes of xmplay (not using xmp-aac.dll).

Ian @ un4seen

  • Administrator
  • Posts: 21948
Re: AAC Playback Problem
« Reply #3 on: 25 Feb '19 - 13:45 »
I noticed that xmplay (current and "stuff" version)  does not correctly playback aac+ 64kbit streams without xmp-aac.dll.
Other bitrates play fine. Without the DLL, it will play the stream for exactly 5 seconds and then will freeze.
I tried several 64kbit streams from several stations and the behavior was consistent.
(Example: http://uk2-pn.mixstream.net:8414/ )

That stream appears to be down currently (I get an "ICY 401 Service Unavailable" message), so I'm unable to try reproducing the problem with it. Do you have another affected stream URL to try?

Tron04

  • Posts: 25
Re: AAC Playback Problem
« Reply #4 on: 25 Feb '19 - 17:11 »
Please try with this alternative URL (also 64bit aac+ stream): http://somafm.com/deepspaceone64.pls

Ian @ un4seen

  • Administrator
  • Posts: 21948
Re: AAC Playback Problem
« Reply #5 on: 26 Feb '19 - 15:57 »
Oh yes, I am able to reproduce the problem with that URL on Win10. It's a download buffering issue when using a Media Foundation codec. Here's an update that should fix it:

   www.un4seen.com/stuff/xmplay.exe

Let me know if you still see the problem happen with that.

Tron04

  • Posts: 25
Re: AAC Playback Problem
« Reply #6 on: 26 Feb '19 - 17:32 »
Only did a quick test, but it played more than 5 seconds :-)
Seems to be fixed! Thanks so much!

sveakul

  • Posts: 80
Re: AAC Playback Problem
« Reply #7 on: 27 Feb '19 - 22:05 »
Great job Ian!  I'm still confused though as what 64kbs has to do with it when the OP said other rates had no issue??  Must be Windows 10-specific, as it doesn't happen on my Windows 7 SP1 as I mentioned earlier.

Ian @ un4seen

  • Administrator
  • Posts: 21948
Re: AAC Playback Problem
« Reply #8 on: 28 Feb '19 - 14:16 »
I wasn't able to reproduce the problem on Win7 either. It looks like Media Foundation has a bit different file reading/buffering on Win7 and Win10. I think it was just coincidence that the problem appeared to only happen with 64kb/s AAC streams (the bitrate probably affects the buffering).

sveakul

  • Posts: 80
Re: AAC Playback Problem
« Reply #9 on: 1 Mar '19 - 03:42 »
Thanks Ian, interesting.