Skip to content

Stuttering mp3 stream on ESP32 — how to optimize or increase buffer? #1930

Answered by pschatzmann
vladkorotnev asked this question in Q&A
Discussion options

You must be logged in to vote

I would suggest to check first with this simple sketch, if you can reproduce the issue with your url.

If this is playing fine, then the issue must be somewhere in your logic and e.g. your playback task is slowed down too much.

To address the issue with the metadata, I suggest that you filter it out e.g. with a MetaDataFilterDecoder or a MetaDataFilter in your chain. It would be interesting if you could debug this error, so that we can try to prevent this in the future: The findTag method currently has already some checks to prevent this and I am not sure what would be missing...

You can also try to use one of the Buffered URL Streams (which buffers the encoded data) that I initially imple…

Replies: 8 comments 24 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@hammerheaddown
Comment options

@vladkorotnev
Comment options

@hammerheaddown
Comment options

@vladkorotnev
Comment options

Comment options

You must be logged in to vote
7 replies
@pschatzmann
Comment options

@pschatzmann
Comment options

@vladkorotnev
Comment options

@pschatzmann
Comment options

@vladkorotnev
Comment options

Answer selected by vladkorotnev
Comment options

You must be logged in to vote
1 reply
@vladkorotnev
Comment options

Comment options

You must be logged in to vote
4 replies
@pschatzmann
Comment options

@vladkorotnev
Comment options

@pschatzmann
Comment options

@vladkorotnev
Comment options

Comment options

You must be logged in to vote
6 replies
@vladkorotnev
Comment options

@pschatzmann
Comment options

@vladkorotnev
Comment options

@pschatzmann
Comment options

@vladkorotnev
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vladkorotnev
Comment options

@vladkorotnev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants