-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
LS falling back to backup when it shouldn't #3912
Comments
Hi. Do you have logs around the time when the switch happens? |
Yes, what am I looking for? I can't post them in a public forum as there's loads of identifying info so I'd need sign off for GDPR etc... |
Actually looking at it, the most pertinent parts are postable.... does this help?
|
Updated with more. It seems to be doing it every 20 minutes, to the clock. |
Hey, any thoughts of this? |
Hi @voipster, live = input.harbor(...)
thread.run({log.important("Buffer length: #{live.buffer_length()}", label="live")}, every=0.5) You can choose to log this message to a file if you'd like to do so. |
@vitoyucepi suggestion is on point. If the sender's clock has a drift, this is what you would observe. |
Can you define "has a drift"? I've checked - host, docker container and sender are all in sync with NTP. The only difference between all three is that the container (running ls) is set to UTC. Would that have a bearing? |
So I can see straight away that it's (very slowly) counting down that 6s buffer over the course of the 20 minutes before it will drop it and start again. How do I fix it? |
I don't know what's causing your problem yet, but in an ideal world the streaming client should produce 1 second of content per 1 second. I like to call it a rate, and the ideal rate is 100%. As a quick fix, you can use
Can you verify that the Stereo Tool is (not) the cause of the problem by disabling it? |
Interesting, switched to using BUTT and the problem has gone. So it's some setting in ST I guess? |
I think so. If you're a paid customer of Stereo Tool, it's probably a good idea to contact their support. |
Debian running LS in a docker container
radio = mksafe(fallback( track_sensitive=false, [live, playlist] ))
Where
live
is a harbor input andplaylist
is a local file backupEvery half hour or so when
live
is going out (streaming from Stereo Tool), LS drops out to the backup for about ten seconds.I initially thought it was the silence detection I had set on the Harbor endpoint. So I dropped the threshold right down, and when that didn't fix it, took it off completely so it's just:
live = input.harbor( id="live", port=8000, password=HARBOR_PASS, buffer=6.,max=30.,"live.mp3" )
But the drop out is still happening. The Internet is a rock steady 1Gb/s, and the server is ok too... what am I looking for, in terms of logging etc?
The text was updated successfully, but these errors were encountered: