Hi Alexander,

2012/11/15 Alexander Dal Farra <[email protected]>:
> We are having a request from a customer that needs a completely silent
> streaming-channel, only interrupted by announcments every now and then. I am
> planning to creat an infallible.liq instance for this and I am looking for a
> CPU friendly way to do. The target is that eventually there is a
> /icecast_mountpoint, where there is nothing but – silence –, but still an
> open connection possible from source-to-decoder. Of course I wouldn’t want
> to waste any encoding power on a source that has nothing to encode..
>
>
>
> What would be your suggestions to create a script? Pulling a .mp3 full of
> silence with an auto-repeat, or is there even a better way / alternative
> input method to do? We are using the Windows version of Liquidsoap.

Liquidsoap does not support heterogeneous encoded/raw audio streams so
you cannot use a slice of blank mp3 here. Besides, you need raw data
to make a good transition when non-blank signal kicks in.

Re: blank data, we warn about encoding blank because with most
encoding algorithms, blank data generates very small amounts of
encoded data, which is to be expected for a good compression algorithm
but is a problem when _streaming_ data. Indeed, listening clients will
connect to the source and possibly not receive any data for quite a
while, which can lead to disconnections by timeout etc.. See more
about this there:
  http://liquidsoap.fm/doc-1.0.1/faq.html

Creating a blank source which relays another source immediately when
available, however, is quite easy: you only have to use the mksafe()
operator. For instance, if s if a source that will be available
sometimes, you can do:

# Wrap s with mksafe() to output blank (silence) when it is not available:
s = mksafe(s)

Hope this helps,
Romain

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to