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

Choppy playback, chunks 0 frequently. High latency, #132

Open
MrSirric opened this issue Dec 1, 2023 · 2 comments
Open

Choppy playback, chunks 0 frequently. High latency, #132

MrSirric opened this issue Dec 1, 2023 · 2 comments

Comments

@MrSirric
Copy link

MrSirric commented Dec 1, 2023

My playback is pretty choppy. Seems to be network related. When connecting to a station directly on my computer or phone its fine. However on the esp32 I'm getting some 0 chunks listed from time to time. Im very new to this platform and application. Would i expect network wise the connections to be of similar quality?

This issue is on all of my 5 esp32 devices, All radio stations. Bitrate ranged from ~200kbps to ~50kbps, and the chunks ranged from 300+ to 0. Ill get smooth playback on occasion for 20-40 seconds then choppy. I do some see errors in the console. I setup a hotspot with my phone, and have the same issue - but its also not that great of a connection ~20mbps

Let me know if you have any suggestions on possible problems, or if there is some "poor internet tweaks".

[137869][I][helixfuncs.h:124] playChunk(): [helixfuncs] Sync found at 0x003F
[137876][I][helixfuncs.h:170] playChunk(): [helixfuncs] MP3Decode error -9
[137882][I][helixfuncs.h:63] helixInit(): [helixfuncs] helixInit called for audi o/mpeg
[138146][I][helixfuncs.h:124] playChunk(): [helixfuncs] Sync found at 0x0047
[138159][I][helixfuncs.h:178] playChunk(): [helixfuncs] Bitrate is 128000
[138160][I][helixfuncs.h:179] playChunk(): [helixfuncs] Samprate is 44100
[138162][I][helixfuncs.h:180] playChunk(): [helixfuncs] Channels is 2
[138169][I][helixfuncs.h:181] playChunk(): [helixfuncs] Bitpersamp is 16
[138175][I][helixfuncs.h:182] playChunk(): [helixfuncs] Outputsamps is 2304
[138759][I][main.cpp:1277] showstreamtitle(): [main] Streamtitle found, 61 bytes
[138759][I][main.cpp:1278] showstreamtitle(): [main] StreamTitle='Elton John - S tep Into Christmas';StreamNext='';

@aly-fly
Copy link

aly-fly commented Dec 1, 2023

Already open: see here: #75 (comment)

  1. Use local station.
  2. Increase buffer size.

@Edzelf
Copy link
Owner

Edzelf commented Dec 5, 2023

The decode error is normal at the start of a new station (when using software mp3 decoder). I have no cure for the drop in the network input stream.

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