Hi,

2012/2/19 John Paul Morrison <[email protected]>:
> Now I'm trying to optimize, and wondering if there's a way liquidsoap can
> disconnect the http source when there are no listeners, to save
> bandwidth/cpu etc. and restart the source when a listener connects.

If you really need input.http and output.icecast, then all you can do
is setup hooks in icecast (I believe this is possible) and control the
HTTP input from those hooks.

However, you may be able to use output.harbor() instead of
output.icecast(). It's not as robust, but good enough for simple
personal uses, or as an intermediate before going to icecast. Then you
get on_connect and on_disconnect hooks directly in liquidsoap.

There are also more advanced tricks where you create the harbor output
on demand, which could mean (re)creating the http input on demand as
well. But I don't have a reference in mind, and this is a too
experimental anyway.

> I'm also using liquidsoap with shairtunes to add Airplay support to the AVR.
>  input.external with dd (cat doesn't seem to work properly) reading from a
> named pipe is doing the trick. It would be great if there were a way to use
> single() to read from a named pipe instead of mksafe(input.external("dd
> if=/tmp/pcm")).

I'm sure this will be interesting for others. This might be worth a
snippet on the wiki?

I didn't know that dd worked better than cat, but it's probably a
buffering issue. Regarding using named pipes for single(), I have no
objection except that, if it works with input.external, that's good
enough for me, possibly with a wrapper in the standard library. What
doesn't work in your attempts with single()?

Cheers,
-- 
David

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to