Hello. 

I am from Russia. Apologize for my english, he is far from perfect, but i try.

I have written small program for liquidsoap. She solves following tasks:
 - play two playlists depending on time of the day
 - inserts jingle through each two track
 - adds one special jingle at the beginning of each hour
 - switch to a live show as soon as one is available

 Files of playlists is local, I have placed them in directory 
/home/syfer/radio/music/
 There is code of file new-radio.liq:

%include "config.liq"
 
day     = playlist.safe(mode = "normal", reload = 50, reload_mode = "seconds", 
"/home/syfer/radio/playlists/day.m3u")
night   = playlist.safe(mode = "normal", reload = 50, reload_mode = "seconds", 
"/home/syfer/radio/playlists/night.m3u")
jingles = playlist("/home/syfer/radio/playlists/jingles.m3u")
clock   = single("/home/syfer/radio/jingles/BEN SHERMAN.mp3")

radio = fallback([switch([({ 6h-22h }, day), ({ 22h-6h }, night)]), default])
radio = random(weights=[1,2],[ jingles, radio ])
radio = add([radio, switch([({0m0s},clock)])])

full = fallback(track_sensitive=false, 
[input.http("http://xx.xxx.xx.xxx:8000/live.m3u";), radio])

output.icecast.mp3(host = syshost, port = sysport, password = syspass, mount = 
"MyNewRadio", genre = "Just Music", description = "MyRadiostation", full)

On beginning all work well. After 25 - 30 minutes liquidsoap uses 100% of the 
CPU and I get much messages of the following contents:

2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play1.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play3.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play7.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play4.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play3.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play1.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play5.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play4.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play7.mp3"!

After this liquidsoap is destroyed.

Such problem appeared here 
http://www.mail-archive.com/savonet-users@lists.sourceforge.net/msg00017.html. 
I suppose, decision of this problem here 
http://www.mail-archive.com/savonet-users@lists.sourceforge.net/msg00034.html
I don`t understand how works add_protocol()

Please help me, probably, there is already ready decision. Explain please in 
detail, how solve this problem? In case of my example. I have little 
experiences.

Other way?

Thanks in advance.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to