**Describe the bug**
Hi everyone! I've seen some similar issues here but still cannot fix this. I'm
using Liquidsoap in order to relay a stream through the audio driver.
Everything works good until after 24 hours more or less the audio stops. The
process still runs and log doesn't show any error and continues loading new
songs metadata from Icecast. I've been trying this on another Raspberry Pi 3 B+
using repository's LS 1.1.1 and the same problem happens but failing after
around 6 hours.
If I restart the service, it works again normally for another period of time.
**To Reproduce**
Attached my script: set it up to run it at startup using liquidsoap-daemon.
Besides a Behringer UCA202 USB soundcard, I have also tested this using the
built-in RPi 3.5mm jack output, both with same result.
`
set("log.level",5)
main_url = "xxx"
emergency_audio =
playlist(mode="randomize",reload=1,reload_mode="rounds","/home/pi/Music")
def crossfadeEmergency(t,a,b)
add(normalize=false,
[ sequence([ blank(duration=t/2.),
fade.initial(duration=t,b) ]),
fade.final(duration=t,a) ])
end
def crossfade(t,a,b)
system("/home/pi/notify.py &")
add(normalize=false,
[ sequence([ blank(duration=t/2.),
fade.initial(duration=t,b) ]),
fade.final(duration=t,a) ])
end
radio_stream = input.http(main_url)
emergency_audio = mksafe(emergency_audio)
radio_stream = fallback(track_sensitive=false,
transitions=[crossfade(.4),crossfadeEmergency(.3)],
[strip_blank(max_blank=60.,radio_stream), emergency_audio])
output.alsa(device="hw:CARD=CODEC", radio_stream)
`
**Version details**
- OS: Raspbian GNU/Linux 9.8 (stretch)
- Version: Liquidsoap 1.3.6
**Install method**
Installed it via opam 2.0.3.
Thanks a lot for your help!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/755
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users