karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

kh10 buffer progressively diminishes #229

Open cgrozev opened 6 years ago

cgrozev commented 6 years ago

Hi. I experience a diminishing burst buffer that seems to be present only in the kh10 version (or to be more precise - in comparison with version kh3, which does not have this issue). I am using mediaelementjs to measure the pre-buffered audio duration in real time, and I notice with the default 64kb burst setting, it gets depleted within about 10 minutes, and causes short stutters as the buffer is replenished with a couple of seconds of audio each time. If I double the burst setting, I get the depletion/artifacts in about double the time. I am using limit-rate on the mounts but that should not affect live streams, as it throttles only the read process, not the send threads, as far as I see. Any idea what might be causing this issue?

Regards Christo

cgrozev commented 6 years ago

Ok, I was wrong, limit-rate does throttle the live source reading process, not only file reads. I commented out the section from source_client_read to avoid live source rate-limiting. If rate-limit is not enabled in the settings file, there are no hiccups/ the buffer does not deplete. Strange, as I am monitoring the incoming stream and it is exactly 128k - as is the rate-limit. I have raised the rate-limit to 132k now to see if this will eliminate the buffer-depletion (seems to work for now)...but I don't understand why the exact rate limit does not work.

Yahav commented 3 years ago

@cgrozev have you figured a way to solve this? I'm experiencing the same issue with it, I rised the limit to 132Kbps but still getting those once in a while. Thing is, this only started with KH10' with KH9 everything works just fine.

Yahav commented 3 years ago

@cgrozev also, can you please provide your setup for the following: using mediaelementjs to measure the pre-buffered audio duration in real time,