Hello,
I'd like to use liquidsoap and we prepare our first script that I past
just down, but first, reading the log, I receive this:
2014/10/28 09:34:57 [buffer_5532:3] Warning: #get called when not
#is_ready! This is normal if an operator using this source has been
unused while the source has gone unavailable. If unsure about this
warning, you are very welcome to report it and ask for clarifications.
What does it mean? I'm using liquidsoap 1.1.1 and all files are on my
local machine.
I thought that the problem was caused by owncloud, since we use woncloud
for uploading file and perhaps the 2 systems access files at same time,
but I copied all music outside from owncloud and the problem is still there.
For more security I paste our script below, thank you, and well... if
you think our script is wrong or malformed, please tell me!
***
#!/usr/bin/liquidsoap
set("log.file.path","/home/spaziouser/radio.log")
set ("harbor.bind_addr", "0.0.0.0")
# time = ref string_of(gettimeofday())
otto = single('/home/spaziouser/radio/timer/segnale_orario_ore_8.mp3')
nove = single('/home/spaziouser/radio/timer/segnale_orario_ore_9.mp3')
dieci = single('/home/spaziouser/radio/timer/segnale_orario_ore_10.mp3')
undici = single('/home/spaziouser/radio/timer/segnale_orario_ore_11.mp3')
dodici = single('/home/spaziouser/radio/timer/segnale_orario_ore_12.mp3')
tredici = single('/home/spaziouser/radio/timer/segnale_orario_ore_13.mp3')
quattordici =
single('/home/spaziouser/radio/timer/segnale_orario_ore_14.mp3')
quindici = single('/home/spaziouser/radio/timer/segnale_orario_ore_15.mp3')
sedici = single('/home/spaziouser/radio/timer/segnale_orario_ore_16.mp3')
diciassette =
single('/home/spaziouser/radio/timer/segnale_orario_ore_17.mp3')
diciotto = single('/home/spaziouser/radio/timer/segnale_orario_ore_18.mp3')
diciannove =
single('/home/spaziouser/radio/timer/segnale_orario_ore_19.mp3')
venti = single('/home/spaziouser/radio/timer/segnale_orario_ore_20.mp3')
ventuno = single('/home/spaziouser/radio/timer/segnale_orario_ore_20.mp3')
security = single("/var/www/nvapple.it/suono.mp3")
ITALIAN_MUSIC_PLS = playlist(mode='randomize',
"/home/spaziouser/radio/music/italiane")
HITS_PLS = playlist(mode='randomize', "/home/spaziouser/radio/music/gold")
ANNI90_PLS = playlist(mode='randomize',
"/home/spaziouser/radio/music/dance90s")
LIVE_EMOTION_PLS = playlist(mode='randomize',
"/home/spaziouser/radio/music/live")
TALENTONE_MUSIC_PLS = playlist(mode='randomize',
"/home/spaziouser/radio/music/talentone")
JINGLES_PLS = playlist(mode='randomize', "/home/spaziouser/radio/jingle")
#TIME_JINGLES = playlist(mode='normal', "/home/spaziouser/radio/timer")
live = input.harbor("live", port = 8001, password = "xxx")
no_stop = random(weights = [1, 1, 1, 1],
[ITALIAN_MUSIC_PLS,HITS_PLS,JINGLES_PLS,ANNI90_PLS])
ITALIAN_MUSIC = rotate(weights = [1, 2], [JINGLES_PLS,ITALIAN_MUSIC_PLS])
HITS = rotate(weights = [1, 2], [HITS_PLS,JINGLES_PLS])
ANNI90 = rotate(weights = [1, 2], [JINGLES_PLS,ANNI90_PLS])
LIVE_EMOTION = rotate(weights = [1, 2], [JINGLES_PLS,LIVE_EMOTION_PLS])
TALENTONE_MUSIC = rotate(weights = [1, 2],
[JINGLES_PLS,TALENTONE_MUSIC_PLS])
# time_signal = (fallback ([ switch ([({8h-21h},
delay(3600.,TIME_JINGLES))])]))
default=fallback([
switch([
({8h-12h}, ITALIAN_MUSIC),
({12h-14h}, HITS),
({14h-17h}, ANNI90),
({17h-20h}, no_stop),
({20h-21h}, LIVE_EMOTION),
({21h-22h},TALENTONE_MUSIC),
({22h-8h}, no_stop),
])
])
radio = fallback(track_sensitive=false, [live,mksafe(default),security])
radio = add([radio, switch([({8h0m0s}, otto),
({9h0m0s}, nove),
({10h0m0s}, dieci),
({11h0m0s}, undici),
({12h0m0s}, dodici),
({13h0m0s}, tredici),
({14h0m0s}, quattordici),
({15h0m0s}, quindici),
({16h0m0s}, sedici),
({17h0m0s}, diciassette),
({18h0m0s}, diciotto),
({19h0m0s}, diciannove),
({20h0m0s}, venti),
({21h0m0s}, ventuno)])])
radio = normalize(radio)
radio = smart_crossfade(start_next=3.,fade_out=2.,fade_in=1.,radio)
output.icecast(%mp3(
samplerate=44100,
stereo=true,
bitrate=128),
mount="/liq",
name="NvApple Radio",
host="127.0.0.1",
port=8000,
password="xxx",
genre="Mixed,Various,Other",
url="http://www.nvapple.it/",
description = "la radio di NvApple!!",
public=false,
radio)
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users