schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
332 stars 83 forks source link

Intermittent station playback. #542

Open hevet opened 3 weeks ago

hevet commented 3 weeks ago

I have a problem playing this stream. It stops every few seconds, some time ago it worked fine, after some update there are such problems. The stream works without interruption on the computer. Other streams also work without interruption. Below is the log from the terminal.

13:16:30 StationName: Meloradio 13:16:30 icy-url: .. https://www.meloradio.pl 13:16:30 bitRate: 64Kbit/s 13:16:30 AUDIO_info: AACDecoder has been initialized, free Heap: 138843 bytes , free stack 5316 DWORDs 13:16:30 lastURL: .. http://27943.live.streamtheworld.com/MELORADIOAAC.aac 13:16:30 AUDIO_info: stream ready 13:16:30 AUDIO_info: syncword found at pos 0 13:16:30 AUDIO_info: slow stream, dropouts are possible 13:16:30 StreamTitle: HOT'N'JUICY / MOUSSE T. - HORNY 13:16:30 AUDIO_info: Channels: 2 13:16:30 AUDIO_info: SampleRate: 44100 13:16:30 AUDIO_info: BitsPerSample: 16 13:16:30 AUDIO_info: BitRate: 64427 13:16:30 AUDIO_info: AAC HeaderFormat: ADTS 13:16:30 AUDIO_info: Spectral band replication: upsampled SBR 13:16:34 AUDIO_info: slow stream, dropouts are possible 13:16:35 AUDIO_info: slow stream, dropouts are possible 13:16:36 AUDIO_info: slow stream, dropouts are possible 13:16:37 AUDIO_info: slow stream, dropouts are possible 13:16:38 AUDIO_info: Stream lost -> try new connection 13:16:38 AUDIO_info: buffers freed, free Heap: 140427 bytes 13:16:38 AUDIO_info: connect to: "27943.live.streamtheworld.com" on port 80 path "/MELORADIOAAC.aac" 13:16:38 AUDIO_info: Connection has been established in 48 ms, free Heap: 140267 bytes

hevet commented 2 weeks ago

@schreibfaul1 hi, Have you checked anything, maybe what about the stream?

https://22353.live.streamtheworld.com:443/TLPSTR21AAC.aac another stream played intermittently

schreibfaul1 commented 2 weeks ago

The bit rate is certainly not the problem. There are stations that run perfectly with a much higher BR. I know of several other streams that also do not provide sufficient input. I don't have a solution for this. Perhaps someone who is familiar with WiFi+LWIP knows the cause.

hevet commented 2 weeks ago

Ok, thanks for answer.

schreibfaul1 commented 2 weeks ago

A stream that runs fluently e.g. 0n-70s.radionetz.de has a ping < 20ms streamtheworld.com has a ping > 100ms Maybe this is already too much?

hevet commented 2 weeks ago

Hmm. I checked on another radio and these streams work without interruption.

schreibfaul1 commented 2 weeks ago

Yes, that image

hevet commented 2 weeks ago

Yes, I know there is another stream, but I care about what interrupts it, because here information about the song and artist is broadcast, and in what you provided, unfortunately it is not broadcast.

hevet commented 2 weeks ago

@schreibfaul1 After starting the I2S source distribution, the problem disappeared, the channels play continuously.