[Savonet-users] Update a variable with the data of an external script

2014-04-09 Thread Senaka Amarakeerthi
Hi all, I am trying to dynamically change genre filed of the stream using an external script (should be changed at every new song). radio_genre = "xxx" def f() = result = get_process_output("php-cgi -q /var/www/requests/changingtext-new.php") end radio_genre = f() output.icecast(%mp3(stere

[Savonet-users] Error in running script

2010-10-14 Thread Senaka Amarakeerthi
Hi, I am trying to run this script in Ubuntu 10.4 Code: #!/usr/bin/liquidsoap # Log dir set("log.file.path","/tmp/basic-radio.log") # Music myplaylist = playlist("~/radio/music.m3u") # Some jingles jingles = playlist("~/radio/jingles.m3u") # If something goes wrong, we'll play this security = s

Re: [Savonet-users] Error in running script

2010-10-15 Thread Senaka Amarakeerthi
Hi, Thanks a lot. It works great. Thank you again for maintaining this wonderful script. I installed newest beta version. Sorry I didn't read whole documentation. But I would like to know whether we can reload songs from a directory without restarting (I don't have a play list). May be with a com

Re: [Savonet-users] Error in running script

2010-10-16 Thread Senaka Amarakeerthi
Hi, I have configured the server to run the service in background according to the instructions I found in documentation. Also I have placed the liquidsoup.liq in /etc/liquidsoap. Then I tried to start the server using /etc/init.d/liquidsoap start When i try with a normal user account I end up

Re: [Savonet-users] Error in running script

2010-10-16 Thread Senaka Amarakeerthi
Hi, Got the problem solved. Added following line to the liquidsoap.liq set("init.daemon.pidfile.path","/var/run/liquidsoap/

[Savonet-users] Change bitrate

2010-10-19 Thread Senaka Amarakeerthi
Hi, I am using lates beta version of liquidsoap. I tried to change bitrate as below: output.icecast(%mp3, host="localhost",port=8000,password="XXX", genre="Sinhala Mix",url="http://savanaradio.com";, description="Savana Internet Radio",mount="radio", name="Savana Radio",bitrat

[Savonet-users] Cry socket error: could not write data to host!

2010-10-20 Thread Senaka Amarakeerthi
Hi again, My webcast is breaking time to time. This is the log: 2010/10/21 07:40:10 [decoder.mp4:3] Invalid MIME type for "/var/songs/savana.mp3": audio/mpeg! 2010/10/21 07:40:10 [decoder:3] Method "MP3/LIBMAD" accepted "/var/songs/savana.mp3". 2010/10/21 07:40:20 [jingles(dot)pls:3] Finished wi

[Savonet-users] Error in running script

2010-10-21 Thread Senaka Amarakeerthi
Hi, I am trying to run this script in Ubuntu 10.4 Code: #!/usr/bin/liquidsoap # Log dir set("log.file.path","/tmp/basic-radio.log") # Music myplaylist = playlist("~/radio/music.m3u") # Some jingles jingles = playlist("~/radio/jingles.m3u") # If something goes wrong, we'll play this security = s

Re: [Savonet-users] Cry socket error: could not write data to host!

2010-10-21 Thread Senaka Amarakeerthi
? Thanks On Thu, Oct 21, 2010 at 11:42 PM, Romain Beauxis wrote: > Le mercredi 20 octobre 2010 21:40:32, Senaka Amarakeerthi a écrit : >> Hi again, > >        Hi ! > >> My  webcast is breaking time to time. This is the log: >> >> 2010/10/21 07:40:10 [dec

Re: [Savonet-users] Cry socket error: could not write data to host!

2010-10-21 Thread Senaka Amarakeerthi
? Thanks On Thu, Oct 21, 2010 at 11:42 PM, Romain Beauxis wrote: > Le mercredi 20 octobre 2010 21:40:32, Senaka Amarakeerthi a écrit : >> Hi again, > >        Hi ! > >> My  webcast is breaking time to time. This is the log: >> >> 2010/10/21 07:40:10 [dec

[Savonet-users] Transfer to another icecast for a particular duration

2010-10-25 Thread Senaka Amarakeerthi
Hi, I would like to transfer my webcast's source to a another webcast at the start of every hour for news. As an example; SRC = input.http("http://server.org:8000/stream";) Now I want to get the input 0m to 10m (10 min duration for news in every hour). System should get the stream from SRC on

Re: [Savonet-users] Transfer to another icecast for a particular duration

2010-10-26 Thread Senaka Amarakeerthi
Hi, Thank you for the reply. I think my question was not clear enough. Anyway I used fallback to transfer to news_src on specified time slots as follows. radio = (...) news_src = input.http("http://76.73.8.178/radio";) # fake_src for activate fallback after news fake_src =

Re: [Savonet-users] Transfer to another icecast for a particular duration

2010-10-28 Thread Senaka Amarakeerthi
5:11 PM, David Baelde wrote: > Hi, > > On Tue, Oct 26, 2010 at 8:33 AM, Senaka Amarakeerthi > wrote: >> news = fallback(transitions = [crossfade, crossfade], track_sensitive=false, >> [ >>                switch([ >>                        ({7h0m0s-7h15m0s},new

[Savonet-users] Log to console in daemon mode

2010-10-28 Thread Senaka Amarakeerthi
Hi, I want to get the log to console temporary while running in daemon mode. I tried this; liquidsoap set log.stdout = true This is the error I got; At line 1, char 11-10: unbound symbol log.stdout. What is the exact command work with beta version? Thanks

[Savonet-users] start Liquidsoap daemon mode

2011-12-31 Thread Senaka Amarakeerthi
Wishing you all a Happy New Year! My OS is Ubuntu 10.10 64bit (VPS) I started installing Liquidsoap 1.0.0 from source. And these are the location of installed files /usr/local/lib/liquidsoap /usr/local/etc/logrotate.d/liquidsoap /usr/local/etc/liquidsoap /usr/local/bin/liquidsoap I can start th

Re: [Savonet-users] start Liquidsoap daemon mode

2012-01-04 Thread Senaka Amarakeerthi
hout any problem. I appreciate you support and time. Senaka On Tue, Jan 3, 2012 at 11:54 AM, Romain Beauxis wrote: > Hi Senaka! > > Le 1 janvier 2012 01:15, Senaka Amarakeerthi a > écrit : > > Wishing you all a Happy New Year! > > Thanks! Happy new year to you as wel

Re: [Savonet-users] start Liquidsoap daemon mode

2012-01-08 Thread Senaka Amarakeerthi
Thank you a lot. *After make install, # cd liquidsoap # make service-install* solved the problem. Regards, Senaka On Tue, Jan 3, 2012 at 11:54 AM, Romain Beauxis wrote: > Hi Senaka! > > Le 1 janvier 2012 01:15, Senaka Amarakeerthi a > écrit : > > Wishing you al

[Savonet-users] Play a small voice clip before a dynamic request

2012-01-08 Thread Senaka Amarakeerthi
Dear All, I allow site visitors to request songs via a PHP script as follows. radio = def next() = file = list.hd(get_process_lines("php-cgi -q /var/www/requests/requests.php")) request.create(file) end r = request.dynamic(next) radio = fallback(track_sensitive = true, [r,radio]) I

Re: [Savonet-users] Play a small voice clip before a dynamic request

2012-01-15 Thread Senaka Amarakeerthi
Hi, Thank you. Everything goes smoothly now. Also dynamic request system up and running now. Rgds, Senaka On Wed, Jan 11, 2012 at 6:25 AM, Romain Beauxis wrote: > Le 9 janvier 2012 04:54, Senaka Amarakeerthi a > écrit : > > Dear All, > > Hi! > > > I allow site visi

[Savonet-users] Prevent repeating same song

2012-01-30 Thread Senaka Amarakeerthi
Hi, I load my playlist with following command, and I have about 1000 songs. But I feel that only a limited set of songs are played. Is there a way to see the content of created myplaylist? myplaylist = playlist(mode="randomize",reload=1,reload_mode="rounds","/var/songs/classic") Thanks, Senaka

Re: [Savonet-users] Prevent repeating same song

2012-02-11 Thread Senaka Amarakeerthi
Hi, Thank you for the reply. > This seems very surprising. The randomize mode shuffles the whole list > of songs, and then play it through until the end, at which point it > reshuffles it and plays it again etc.. I have noted that this is happening anyhow. > Have you checked that all files in t