ESP-32S with VS1003 does not play aac Stream

Hello everyone,
Im not experienced in programming with the ESP32, so excuse me if this question might be stupid.
Im trying to build a Webradio using ESP-32S with VS1003 an im trying to get the following stream to run:
https://digitalstreams.mediaworks.nz/rock_net_icy?Dist=TuneIn
Im using https://github.com/CelliesProjects/ESP32_VS1053_Stream,
but I also tried https://github.com/schreibfaul1/ESP32-vs1053_ext.
It seems to be an AAC stream, but everytime im trying to start it, it directly goes to end of Stream:

12:40:38.387 -> wifi connected - starting decoder
12:40:42.124 -> decoder running - starting stream
12:40:45.623 -> codec: AAC
12:40:45.666 -> bitrate: 194kbps
12:40:45.697 -> streamtitle: RK DIGITAL LINER C ROVA HD - 00:00:03.490
12:40:45.887 -> eof: https://digitalstreams.mediaworks.nz/rock_net_icy?Dist=TuneIn

There is also a m3u8 stream available, but this isnt working either:
https://digitalstreams.mediaworks.nz/rock_net/playlist.m3u8

Can anyone help me?
Other Streams (mp3) are working properly

Your device will probably play aac files your problem is most likely being unable to connect to the server, both the links you say won't play are hosted on the Amazon Cloudfront server.

That is the limit of my knowledge about servers so I can't say whether there is a way to connect or not.

I have a sketch that allows me to play various files from a SD card to a vs1053 using a Nano ESP32 and I know the aac format works in that situation.

1 Like

I moved your topic to a more appropriate forum category @xdrgizsdg.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

1 Like

Thank you for your answer!
This might be the case, if so theres nothing I can do.
But when I tried to play the m3u8 using https://github.com/schreibfaul1/ESP32-vs1053_ext,
I got the following error:

16:54:08.467 -> DEBUG:        Connect to new host: "http://stream.revma.ihrhls.com/zc5060/hls.m3u8"
16:54:10.464 -> DEBUG:        Song stopped incorrectly!
16:54:10.464 -> DEBUG:        after song stopped incorrectly
16:54:10.496 -> DEBUG:        REG            dec      bin               hex
16:54:10.496 -> DEBUG:        -----------  -------  ----------------  -------
16:54:10.496 -> DEBUG:        MODE          02056   0000100000001000   0808
16:54:10.496 -> DEBUG:        STATUS        00561   0000001000110001   0231
16:54:10.496 -> DEBUG:        BASS          00000   0000000000000000   0000
16:54:10.496 -> DEBUG:        CLOCKF        24576   0110000000000000   6000
16:54:10.528 -> DEBUG:        DECODE_TIME   00000   0000000000000000   0000
16:54:10.528 -> DEBUG:        AUDATA        08000   0001111101000000   1F40
16:54:10.528 -> DEBUG:        WRAM          00000   0000000000000000   FFFF
16:54:10.528 -> DEBUG:        WRAMADDR      22528   0101100000000000   5800
16:54:10.528 -> DEBUG:        HDAT0         00000   0000000000000000   0000
16:54:10.528 -> DEBUG:        HDAT1         00000   0000000000000000   0000
16:54:10.560 -> DEBUG:        AIADDR        00000   0000000000000000   0000
16:54:10.560 -> DEBUG:        VOL           03855   0000111100001111   0F0F
16:54:10.560 -> DEBUG:        AICTRL0       00000   0000000000000000   0000
16:54:10.560 -> DEBUG:        AICTRL1       00000   0000000000000000   0000
16:54:10.560 -> DEBUG:        AICTRL2       00000   0000000000000000   0000
16:54:10.560 -> DEBUG:        AICTRL3       00000   0000000000000000   0000
16:54:10.606 -> DEBUG:        PSRAM not found, inputBufferSize: 14399 bytes
16:54:10.886 -> DEBUG:        Request http://stream.revma.ihrhls.com/zc5060/hls.m3u8 failed!
16:54:10.886 -> STATION:      

I wonder if it has something to do with the missing PSRAM.
Because the station I tried to stream is in the actual example of the Git Repository, so it should work :thinking:

I have a channel list and looking at it all the url's link to mp3 streams, this is fine for me, the quality is very good especially listening through a wired headset or over BLE. Occasionally if the connection gets flaky at my end or the server end, packets will get dropped and I get a "click" every so often but usually I can listen for hours without an issue.

I've looked at PSRAM briefly but not implemented it with anything yet, maybe your example is using it for the stream buffer, I created my own ring buffer there was plenty of room for it on the nano.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.