#!/usr/bin/liquidsoap set("log.file.path","___/ls.log") mypl = mksafe(playlist(mode="random","./generalPlaylist.lst")) output.icecast.vorbis(host = "___", port=___, password="___", mount="__", mypl)
#!/usr/local/bin/liquidsoap # Configuration set("log.file.path", "/home/music/data/logs/broadcast.log") set("server.telnet", true) set("server.telnet.port", 12381) set("init.daemon", true) set("init.daemon.pidfile", false) # Music's playlists crazy_music = mksafe(playlist(reload = 600, "/home/music/data/public_html/music/crazy/")) club_music = mksafe(playlist(reload = 600, "/home/music/data/public_html/music/club/")) rap_music = mksafe(playlist(reload = 600, "/home/music/data/public_html/music/rap/")) rock_music = mksafe(playlist(reload = 600, "/home/music/data/public_html/music/rock/")) # Jingles' playlist jingles = mksafe(playlist(reload = 3600, "/home/music/data/public_html/jingles/Jingles/")) #jingles2 = mksafe(playlist(reload = 3600, "/home/music/data/public_html/jingles/Jingles/")) #jingles3 = mksafe(playlist(reload = 3600, "/home/music/data/public_html/jingles/Jingles/")) #jingles4 = mksafe(playlist(reload = 3600, "/home/music/data/public_html/jingles/Jingles/")) # Mixing music and jingles crazy_broadcast = smart_crossfade(rotate(weights = [3, 1], [crazy_music, jingles])) #club_broadcast = smart_crossfade(rotate(weights = [3, 1], [club_music, jingles2])) #rap_broadcast = smart_crossfade(rotate(weights = [3, 1], [rap_music, jingles3])) #rock_broadcast = smart_crossfade(rotate(weights = [3, 1], [rock_music, jingles4])) # Adding requests, "hour open" jingles and normalizing crazy_broadcast = fallback([request.queue(id = "crazy_request"), request.queue(id = "hour_open"), crazy_broadcast]) #club_broadcast = fallback([request.queue(id = "crazy_request"), request.queue(id = "hour_open"), club_broadcast]) #rap_broadcast = fallback([request.queue(id = "crazy_request"), request.queue(id = "hour_open"), rap_broadcast]) #rock_broadcast = fallback([request.queue(id = "crazy_request"), request.queue(id = "hour_open"), rock_broadcast]) # Outputing #################################################################################################### output.icecast(%mp3(bitrate = 128), host = "localhost", port = 8000, password = "***", mount = "crazy128", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Pop/Dance", url = "http://www.crazyradio.net/", encoding = "UTF-8", crazy_broadcast) output.icecast(%mp3(bitrate = 96), host = "localhost", port = 8000, password = "***", mount = "crazy96", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Pop/Dance", url = "-", encoding = "UTF-8", crazy_broadcast) output.icecast(%mp3(bitrate = 24), host = "localhost", port = 8000, password = "***", mount = "crazy24", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Pop/Dance", url = "-", encoding = "UTF-8", crazy_broadcast) #################################################################################################### output.icecast(%mp3(bitrate = 128), host = "localhost", port = 8000, password = "***", mount = "club128", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Club", url = "-", encoding = "UTF-8", club_broadcast) #output.icecast(%mp3(bitrate = 96), host = "localhost", port = 8000, password = "***", mount = "club96", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Club", url = "-", encoding = "UTF-8", club_broadcast) #output.icecast(%mp3(bitrate = 24), host = "localhost", port = 8000, password = "***", mount = "club24", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Club", url = "-", encoding = "UTF-8", club_broadcast) #################################################################################################### output.icecast(%mp3(bitrate = 128), host = "localhost", port = 8000, password = "***", mount = "rap128", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Rap", url = "-", encoding = "UTF-8", rap_broadcast) #output.icecast(%mp3(bitrate = 96), host = "localhost", port = 8000, password = "***", mount = "rap96", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Rap", url = "-", encoding = "UTF-8", rap_broadcast) #output.icecast(%mp3(bitrate = 24), host = "localhost", port = 8000, password = "***", mount = "rap24", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Rap", url = "-", encoding = "UTF-8", rap_broadcast) #################################################################################################### output.icecast(%mp3(bitrate = 128), host = "localhost", port = 8000, password = "***", mount = "rock128", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Rock", url = "-", encoding = "UTF-8", rock_broadcast) #output.icecast(%mp3(bitrate = 96), host = "localhost", port = 8000, password = "***", mount = "rock96", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Rock", url = "-", encoding = "UTF-8", rock_broadcast) #output.icecast(%mp3(bitrate = 24), host = "localhost", port = 8000, password = "***", mount = "rock24", name = "Crazy Radio", description = "Crazy Radio - мы заставим зажигать вместе с нами вселенную!", genre = "Rock", url = "-", encoding = "UTF-8", rock_broadcast)