Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: fb2k not playing AAC stream (Read 984 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

fb2k not playing AAC stream

https://d10kxd8jv78zl6.cloudfront.net/main.m3u8

The above radio URL streams as AAC. Foobar2000 does not play the stream.

The console has this message repeatedly:

Code: [Select]
error decoding AAC frame #54: Unsupported format or corrupted file

AIMP & SMPlayer have no problems playing it.

Any suggestions on what I might check or what decoders I might be missing?


Added on edit:
I am using fb2k 1.6.16

Re: fb2k not playing AAC stream

Reply #1
Foobar 2.0 x64 doesn't play it by default, but I got it to play using FFMPEG and FFmpeg Decoder Wrapper:
https://www.foobar2000.org/components/view/foo_input_ffmpeg
https://github.com/GyanD/codexffmpeg/releases (use files fom "bin" folder. 64-bit only, so will not work on 32-bit OS)
I added *.AAC to the wrapper config. If your OS is 32-bit, you need to find 32-bit builds of FFMPEG.

Re: fb2k not playing AAC stream

Reply #2
Thank you for checking it.

After installing the FFmpeg Decoder Wrapper component the stream still does not play for me. Are there maybe additional changes I need to make in the properties section? (Please see the screenshots)

As a test I installed a 64-bit portable fb2k ver.2 and after installing the FFmpeg Decoder Wrapper component in it I tried the stream and it did not play.


Read out from the console of 64-bit portable fb2k ver.2:


Code: [Select]
[2023-05-02 12:30:53.831] Components loaded in: 0:00.015640
[2023-05-02 12:30:53.831] Configuration read in: 0:00.001411
[2023-05-02 12:30:53.831] foobar2000 v2.0 x64 [portable]
[2023-05-02 12:30:53.925] Playlist #1 loaded in 0:00.000308
[2023-05-02 12:30:53.956] User Interface initialized in: 0:00.115748
[2023-05-02 12:30:53.956] FFmpeg version: 6.0
[2023-05-02 12:30:53.956] Startup time : 0:00.156836
[2023-05-02 12:30:53.956] Library initialized after 0:00.157337
[2023-05-02 12:30:57.176] Opening track for playback: "https://d10kxd8jv78zl6.cloudfront.net/main.m3u8"
[2023-05-02 12:30:57.647] error decoding AAC frame #1: Unsupported format or corrupted file
[2023-05-02 12:30:57.647] error decoding AAC frame #2: Unsupported format or corrupted file
[2023-05-02 12:30:57.647] error decoding AAC frame #3: Unsupported format or corrupted file
[2023-05-02 12:30:57.647] error decoding AAC frame #4: Unsupported format or corrupted file
[2023-05-02 12:30:57.647] error decoding AAC frame #5: Unsupported format or corrupted file
[2023-05-02 12:30:57.647] error decoding AAC frame #6: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #7: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #8: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #9: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #10: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #11: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #12: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #13: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #14: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #15: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #16: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #17: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #18: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #19: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #20: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #21: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #22: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #23: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #24: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #25: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #26: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #27: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #28: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #29: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #30: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #31: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #32: Unsupported format or corrupted file
[2023-05-02 12:30:57.658] error decoding AAC frame #33: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #34: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #35: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #36: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #37: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #38: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #39: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #40: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #41: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #42: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #43: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #44: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #45: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #46: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #47: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #48: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #49: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #50: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #51: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #52: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #53: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #54: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #55: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #56: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #57: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #58: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #59: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #60: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #61: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #62: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #63: Unsupported format or corrupted file
[2023-05-02 12:30:57.663] error decoding AAC frame #64: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #1: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #2: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #3: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #4: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #5: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #6: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #7: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #8: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #9: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #10: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #11: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #12: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #13: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #14: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #15: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #16: Unsupported format or corrupted file
[2023-05-02 12:30:57.789] error decoding AAC frame #17: Unsupported format or corrupted file
[2023-05-02 12:31:22.598] Shutting down...


If it should matter somehow I am using Windows 11 64-bit

Re: fb2k not playing AAC stream

Reply #3
I checked all the boxes in the wrapper config (maybe it's HLS and RTMP?)
The obvious: 64-bit ffmpeg with 64-bit foobar.
I hear Spanish?
File name : main.m3u8
Folder name : https://d10kxd8jv78zl6.cloudfront.net
File path : https://d10kxd8jv78zl6.cloudfront.net/main.m3u8
File size : 214 B
Last modified : 2023-05-02 13:00:14
Attributes : remote
Sample rate : 44100 Hz
Channels : 2
Bitrate : 107 kbps
Codec : AAC
<CODEC_LONG_NAME> : AAC (Advanced Audio Coding)

I used ffmpeg 6.0

Re: fb2k not playing AAC stream

Reply #4
Components loaded in: 0:00.003887
Configuration read in: 0:00.000460
foobar2000 v2.0 x64 [portable]
Playlist #0 loaded in 0:00.000134
User Interface initialized in: 0:00.036627
FFmpeg version: 6.0
Startup time : 0:00.051248
Library initialized after 0:00.051374
Opening track for playback: "https://d10kxd8jv78zl6.cloudfront.net/main.m3u8"
Launching ffprobe:
"C:\Users\User\Downloads\foobar2000\ffprobe.exe" -of xml -show_format -show_streams -show_chapters -hide_banner "https://d10kxd8jv78zl6.cloudfront.net/stream-48.aac"
Launching ffmpeg:
"C:\Users\User\Downloads\foobar2000\ffmpeg.exe" -i "https://d10kxd8jv78zl6.cloudfront.net/stream-48.aac" -map 0:0 -f w64 -acodec pcm_f32le -

Re: fb2k not playing AAC stream

Reply #5
It is obviously something on my end that is faulty. I had a copy of ffmpeg and ffprobe on hand that I tried, but I also tried with the builds from the Github page you posted.

I also tried with moving those required ffmpeg and ffprobe exes to different places on the computer, not just off the c:/ drive root (I guess that is the way it is expressed?).

I am stumped so I am going to back off from it for awhile. When I want to play that particular stream I will use AIMP.

I greatly appreciate the help you gave.

I did get as far one time as to installing the FFmpeg Decoder Wrapper Component, but I did not know about having to add *.AAC to the list.

And I will add that that particular radio station does have a habit of perodically changing its stream URL.

Re: fb2k not playing AAC stream

Reply #6
Just to see what would happen. I put the below in a .bat file and ffplay.exe played the stream. I know that doesn't prove or fix  anything, except to perhaps show that part of the ffmpeg suite plays it.

Code: [Select]
ffplay https://d10kxd8jv78zl6.cloudfront.net/main.m3u8


Edit: fixed typo

 

Re: fb2k not playing AAC stream

Reply #7
It could be a misconfigured server/encoder at their end, or a splitter/source/demuxer filter bug in foobar?
Did you try checking all the boxes in the wrapper config?

Re: fb2k not playing AAC stream

Reply #8
Did you try checking all the boxes in the wrapper config?

Yes I tried it with all of the file formats selected

One time after I tried it after I said I was going to back off, the fb2k console had a line in it stating something about ffmpeg: Patch Welcome then the line after that just continued with the Unsupported format or corrupted file message.

Re: fb2k not playing AAC stream

Reply #9
Under Preferences, Playback, Decoding, I moved the wrapper to the top of the list.
It's still playing for me, in Spanish, which I don't understand.

Re: fb2k not playing AAC stream

Reply #10
Under Preferences, Playback, Decoding, I moved the wrapper to the top of the list.

YOU DID IT. Now I hear Spanish too. Thank you, again and again.

Re: fb2k not playing AAC stream

Reply #11
That's great! Glad it worked :D

Re: fb2k not playing AAC stream

Reply #12
Problem acknowledged, thanks for reporting.
The cause seems to be MPEG-TS stream disguised as .aac due to a server configuration error. Actual audio is served with wrong both extension and mime type.
It will be worked around in next foobar2000 update.
We are the bork. Your software bugs will be added to our own. Resistance is futile.

Re: fb2k not playing AAC stream

Reply #13
foobar2000 v2.1 preview 2023-05-09 clean portable install (nothing added or removed)
The stream now plays instantly.