Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound skipping on just one radio. #116

Closed
CBx86 opened this issue Feb 11, 2025 · 6 comments
Closed

Sound skipping on just one radio. #116

CBx86 opened this issue Feb 11, 2025 · 6 comments

Comments

@CBx86
Copy link

CBx86 commented Feb 11, 2025

Hey guys!

Using WebRadioDemo;
i try this online radio: http://5.135.220.118/320 The sound keeps skipping; i thought it might be the bitrate.
So I changed the bitrate to 128: http://5.135.220.118/128 And Keeps skipping.

Only with this one does this happen.
Try increase/decrease buffer, nothing.
I the board ESP32, CPU uses very low about 20% core 1.
VS1053 v4 using patch.

Some hint?

Many Thanks!

@CBx86
Copy link
Author

CBx86 commented Feb 11, 2025

It's not really skipping, it looks like it's buffering, but it's not. It looks like something every 500ms.
Sorry for the not-so-precise explanation.

Many Thanks.

@Dr-Dawg
Copy link

Dr-Dawg commented Feb 12, 2025

maybe chunked encoding?
Have you tried replacing HTTP/1.1 with HTTP/1.0 in the client.print command?

Also see
A way to suppress the glitches and other streaming troubles #52
and
Defining host and path are not clear
#92

@CBx86
Copy link
Author

CBx86 commented Feb 12, 2025

Hey! Thanks for answer.

The problem is not the glitches, the web radio plays (for 500ms), no sound (for 500ms), (and then plays again for 500ms) as if it were buffering. Or maybe it is..

In reading the issue. And try the RingBufferDemo.cpp.
Strangely, this radio gives a lot of 0 buffering.
Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 6%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer: 0%Buffer:

Maybe even with strong radio signal, something is coming in slowly.

I will make a code to bench this.
This webradio needs: 124.72 Kbps average.
This ESP32 bench: 2759.45 Kbps.
It's not wonderful but it's ok.

Thanks!

Any other suggestions?

@CBx86
Copy link
Author

CBx86 commented Feb 12, 2025

More data:
Bytes AvailToRead: 43 Free Heap: 235744 Decode time: 5
Bytes AvailToRead: 107 Free Heap: 239776 Decode time: 6
Bytes AvailToRead: 7 Free Heap: 241332 Decode time: 6
Bytes AvailToRead: 107 Free Heap: 240352 Decode time: 7
Bytes AvailToRead: 4011 Free Heap: 235924 Decode time: 7
Bytes AvailToRead: 71 Free Heap: 241332 Decode time: 7
Bytes AvailToRead: 43 Free Heap: 240352 Decode time: 8
Bytes AvailToRead: 123 Free Heap: 239920 Decode time: 8
Bytes AvailToRead: 3223 Free Heap: 237980 Decode time: 9
Bytes AvailToRead: 55 Free Heap: 240396 Decode time: 9
Bytes AvailToRead: 7 Free Heap: 241332 Decode time: 10
Bytes AvailToRead: 119 Free Heap: 241332 Decode time: 10
Bytes AvailToRead: 2939 Free Heap: 236776 Decode time: 11
Bytes AvailToRead: 75 Free Heap: 239984 Decode time: 11
Bytes AvailToRead: 55 Free Heap: 241332 Decode time: 11
Bytes AvailToRead: 79 Free Heap: 240548 Decode time: 12
Bytes AvailToRead: 911 Free Heap: 239980 Decode time: 12

@CBx86
Copy link
Author

CBx86 commented Feb 14, 2025

After a lot of thought and testing, increased the wifi speed a lot, buffers, etc, nothing worked. Decided to read the datasheet:

Image

When i use http://5.135.220.118/128 works fine. I made some mistake in not being able to run at 128 in the beginning.

Many Thanks!

@baldram
Copy link
Owner

baldram commented Feb 15, 2025

Hey @CBx86 Thanks for the update! Thank you @Dr-Dawg for your support. Glad to hear the solution seems to work. If any issues come up, feel free to reopen. Closing this as resolved.

@baldram baldram closed this as completed Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants