Roger Wilco said:Friend! You're attacking the problem the wrong way. Use the fallback capabilities of Icecast to keep listeners on the server in the event of intermittent source disconnects!
Roger Wilco said:Hello Cesar!
Don't take this the wrong way, but why bother with Airtime at all if you're bypassing the GUI with autoDJ hack scripts?Second, if your remote DJs do not have access to stable Internet, no amount of buffering will ultimately help. Truer still, it makes much more sense to have ALL music on a single central Airtime server rather than trying to do it on-the-fly and expecting a perfect result anyway.Thoughts?
This task could not be achieve with Airtime Alone as it stands or Liquidsoap (it does not carry a scheduler).
The greater thing about the autodj hack script,if you look above is that you would require about 3 to 4 hours to achieve the said task.
So its wise to use the script it makes a whole lot of difference.
I recently installed Airtime in a church with a sermon broadcast to two local station,I code the script with silence detection .When the technican gets there he just switch on the whole system,the Airtime machine comes on an ready to stream live.I there is silence it plays a backup music.
The technican can leave go home and if the pastor calls and ask for some special songs,he just build a show and put some sort of schedule from the Airtime library.
So its worth it.
César Araújo said:Roger wilco, thanks for the comment, but unless you program 24/7 audio in airtime wich im not doint, an autodj is more than needed to fill the gap, or your stream goes down. Even if for a split second and i come very easy from 200 listeners to only 10 in a few seconds if the stream goes down.
Voisses tech thanks for the very big help.
I made a fresh install of airtime to see if the problems go away, i hope so. My ls script is now like this
.....
default = amplify(id="silence_src", 0.00001, noise())
ref_off_air_meta = ref off_air_meta
if !ref_off_air_meta == "" then
ref_off_air_meta := "Airtime - offline"
end
default = rewrite_metadata([("title", !ref_off_air_meta)], default)
ignore(output.dummy(default, fallible=true))
# Modification Starts here
musicDay = playlist(mode='randomize',reload=1,reload_mode="rounds", "/home/autodj/dia/musica/")
jinglesDay = playlist(mode='randomize',reload=1,reload_mode="rounds", "/home/autodj/dia/jingles/")
musicNight = playlist(mode='randomize',reload=1,reload_mode="rounds", "/home/autodj/noite/musica/")
jinglesNight = playlist(mode='randomize',reload=1,reload_mode="rounds", "/home/autodj/noite/jingles/")
default = rotate(weights=[1,3], [switch([({ 6h-22h }, jinglesDay),({ 22h-6h }, jinglesNight)]), switch([({ 6h-22h }, musicDay),({ 22h-6h }, musicNight)])])
#default = rotate(weights=[1,3], [jinglesDay, musicDay])
#Modification ends here
ignore(output.dummy(default, fallible=true))
master_dj_enabled = ref false
live_dj_enabled = ref false
scheduled_play_enabled = ref false
......
For now it is ok i dont have many djs working today (vacations) so i could not test it correctly. Hope to do a more intensive test tomorrow or tonight.
Thanks for the input
It looks like you're new here. If you want to get involved, click one of these buttons!