Re: [Savonet-users] refresh a playlist only if changed

2009-09-03 Thread David Baelde
In this case the simplest solution might be to inverse the control:
don't ask liquidsoap to check for changes, but tell liquidsoap when
you changed the playlist and you want it to reload. This can be done
using a queue, or even by keeping a playlist and using the ID.reload
(telnet) command. Mmm... did we add this command or is the ticket
still open? (I'm not on my own machine right now, it's annoying to
check.)
-- 
David

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Playing blank

2009-09-03 Thread Romain Beauxis
Le jeudi 3 septembre 2009 11:34:28, Jean-Francois Mauguit a écrit :
> Hello,

Hi !

> Here is my script. I'm using 0.9.1.

Ok, the script is quite small, so that should be suitable for a proper 
debugging.

Before proposing tests and patches, I would like to know: did you use this 
script with any previous version of liquidsoap ? If yes, did you experience 
this issue with any previous version ?

Thanks for your answers !


Romain

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Playing blank

2009-09-03 Thread Jean-Francois Mauguit
Hello,

Here is my script. I'm using 0.9.1.
--CODE ON--
#!/usr/local/bin/liquidsoap
# Logging!
set("scheduler.log",false)
set("log.level", 3)
fluxid = argv(1)
name = argv(2)
description = argv(3)
finaldesc = string.replace(pattern="_",(fun (s) -> " "),description)
genre = argv(4)
mountpoint = "flux-"^fluxid
cmd = "/mm/grabcf.php "^fluxid

# Our input is the output of a php-script..
input = request.dynamic(id=fluxid, fun () -> request(get_process_output 
(cmd)))

def our_crossfade(~start_next,~fade_in,~fade_out,s)
   s = fade.in(duration=fade_in,s)
   s = fade.out(duration=fade_out,s)
   fader = fun (a,b) -> add(normalize=false,[b,a])
   cross(conservative=true,duration=start_next,minimum = -1.0,fader, s)
end

# Crossfade
input2=our_crossfade(start_next=6.0,fade_in=3.0,fade_out=3.0, input)

# Compress/Normalize
input2 = nrj(input2)

input2 = rewrite_metadata([("artist",'$(if $(display_artist),"$ 
(display_artist)","$(artist)")'),("title", '$(if $(display_title),"$ 
(display_title)","$(title)")'),("album", '$(if $(display_id),"$ 
(display_id)","$(album)")')],input2)

input2 = on_metadata(fun (meta) -> system("curl http://url/script?string= 
"^fluxid^","^quote(meta["album"])^" &"),input2)

# Output to icecast
output.icecast.mp3(mount=mountpoint, host="localhost", port=8000,  
password="secret", genre=""^genre, url="http://www.radionomy.com";,  
name=""^name,description = ""^finaldesc, mksafe(input2))
--CODE OFF--

TIA,

Jef

On 03 Sep 2009, at 18:19, Romain Beauxis wrote:

>   Hi Jef !
>
> Le jeudi 3 septembre 2009 10:19:08, Jean-Francois Mauguit a écrit :
>> As you have a huge load, I can understand that something happened  
>> that
>> make liquidsoap switched to blank. But i don't see why it didn't come
>> back.
>
> Indeed. In order to understand the issue better it would be nice if  
> we can see
> the script also. If you do not want to disclose it here, you can  
> sent it as a
> private message.
>
> Also, what version of liquidsoap are you using ?
>
>
> Romain



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] refresh a playlist only if changed

2009-09-03 Thread Romain Beauxis
Le mercredi 2 septembre 2009 11:11:04, Romaric Petion a écrit :
> Hi,

Hi !

> I would like to use a playlist (from an URL) with randomize, reloaded every
> minutes.
>
> So I use: playlist(reload=60, "http://myserver/playlist.m3u";)
>
> But I would like liquidsoap refresh it's internal playlist only if my
> remote playlist have changed (to avoid that we never played some files of
> the playlist), and not refresh at each download.
>
> Is it possible?

Unfortunately I don't think this is possible yet. This would probably be 
possible by scripting your own playlist. However, this could be a bit more 
tricky, so let me know if you're interested :)


Romain

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] aac+ vs quality of sound

2009-09-03 Thread Romain Beauxis
Le mardi 1 septembre 2009 19:18:30, Artur Skupienski - DJ a écrit :
> Hi Guys

Hi !

> Im using aac+ on liquidsoap
>
> Bitrate on aac+ is variable, not static, is it right or it is because
> something wrong..

There a static parameter, but it could mean an average bitrate.

> also I got a question about quality, how can I improve quality of sound
> aac+, is it passible? I tested orban aac+ before, is it passible to get
> similar quality of sound as on orban aac+?

Have you tried raising the bitrate in aacplusenc ? Also, you may use different 
software for encoding AAC+, all you need is the capability to read from stdin 
and output to stdout. 

However, I don't know any other software for linux that is capable of doing 
that. The nero AAC+ encoder, which is very good, outputs data in mp4 format 
which is not streamable. I have, however, contacted one of the devs to request 
the possibility to output in a compatible format and he said thay can't do it 
for the next release but will surely consider it for the one after.

Romain

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Playing blank

2009-09-03 Thread Romain Beauxis
Hi Jef !

Le jeudi 3 septembre 2009 10:19:08, Jean-Francois Mauguit a écrit :
> As you have a huge load, I can understand that something happened that  
> make liquidsoap switched to blank. But i don't see why it didn't come  
> back.

Indeed. In order to understand the issue better it would be nice if we can see 
the script also. If you do not want to disclose it here, you can sent it as a 
private message.

Also, what version of liquidsoap are you using ?


Romain

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


[Savonet-users] Playing blank

2009-09-03 Thread Jean-Francois Mauguit
Hello,

I've from time to time some liquidsoap instance playing blank instead  
of song. I use dynamic request to say which song to play.

I don't know what happen but when the last song is played it switched  
to blank and never came back.

My concern is that at the same time the other 80 instances of  
liquidsoap are running perfectly. I's very hard to see something in  
the logs as there are many instances writing in it at the same time.

Here is my last annotate sent to liquidsoap
(DEBUG): annotate:display_title="W26 Radio 6",display_artist="W26Radio.com 
",display_id 
= 
"18415971 
",display_year 
="",liq_fade_in="0.00",liq_fade_out="0.80",liq_start_next="1.20":/mm/ 
fluxes/707/trackLHExBW_0.00.05_0.03.64.mp3

Here are the last lines found in the liquidsoap log concerning this  
radio id (707)
2009/09/04 00:13:08 [decoder:3] Decoder MP3 chosed for "/mm/fluxes/707/ 
trackLHExBW_0.00.05_0.03.64.mp3"
2009/09/04 00:17:13 [707:3] Finished with "/mm/fluxes/707/ 
trackuzs32r_0.00_4.06.16.mp3"
2009/09/04 00:17:13 [707:3] Prepared "/mm/fluxes/707/ 
trackLHExBW_0.00.05_0.03.64.mp3" -- RID 31
2009/09/04 00:17:17 [707:3] Finished with "/mm/fluxes/707/ 
trackLHExBW_0.00.05_0.03.64.mp3"

As you have a huge load, I can understand that something happened that  
make liquidsoap switched to blank. But i don't see why it didn't come  
back.

TIA,

Jef


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Liquidsoap daemon trouble

2009-09-03 Thread Mathijs Vos


Hello,

 

A little update regarding this problem.

I was reading the logs and it appeared I was still using Liquidsoap 0.3.8.1 
(the logs mentioned so) even though I had installed 0.9.1 (via configure, make 
and make install). So, I removed all Liquidsoap-related stuff and installed 
0.9.1 from scratch. Now, the pidfile in /var/run/liquidsoap seems to work fine, 
since it does not produce any errors any more.

However, currently, the daemon isn't starting at all. When booting the system, 
the message "Starting channels... muziek.liq ." appears, but according to the 
"top" command, Liquidsoap isn't running (Icecast tells me that there are no 
source clients).

Starting liquidsoap manually works fine.

There is no data written to the log file during the daemon startup. The logfile 
seems to be used only when starting liquidsoap manually.

 

I tried setting the pidfile manually again, however this doesn't work either.

Can someone help me getting the daemon to work?

 

Thanks in advance!

 

-Mathijs


From: mathijszijnspamad...@live.nl
To: savonet-users@lists.sourceforge.net
Date: Mon, 31 Aug 2009 08:19:24 +0200
Subject: Re: [Savonet-users] Liquidsoap daemon trouble



Hi,
 
Thanks in advance for solving the problem.
I temporarily solved it by setting the pidfile to /etc/liquidsoap/pidfile.pid. 
Previously, I tried to set the pidfile to somewhere in my /home/mathijs 
directory, which didn't work. Now I think about it, that is quite logical, 
sinds the liquidsoap daemon no longer runs on my username :)
 
Cheers,
 
Mathijs
 
> From: to...@rastageeks.org
> To: savonet-users@lists.sourceforge.net
> Date: Sun, 30 Aug 2009 16:38:36 -0500
> Subject: Re: [Savonet-users] Liquidsoap daemon trouble
> 
> Le samedi 29 août 2009 04:51:16, Mathijs Vos a écrit :
> > Hi,
> 
> Hi !
> 
> > I'm having trouble getting Liquidsoap to load on system startup.
> >
> > Everytime the system boots, the message "FATAL ERROR: pid directory
> > "/var/run/liquidsoap" does not exist." appears.
> >
> > I already tried setting a different directory, I made one in my homedir and
> > chmodded it to a+rwx, but I still get the same error. How do I get this
> > init.d script to work?
> 
> Hmmm. I would guess that the init.d script for liquidsoap is called too 
> early, 
> and that the file system is not entierly mounted at this time.
> 
> There was a similar issue reported on the debian package:
> http://bugs.debian.org/541635
> 
> I will try to fix this soon but in the mean time, you can try to delay the 
> script's execution at startup.
> 
> 
> Romain
> 
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> ___
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users



Lees je Het Net, KPN/Planet, Ziggo of XS4ALL-mail in Windows Live Hotmail
_
25GB gratis online harde schijf
http://skydrive.live.com--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users