Hi,

You can remove the mksafe in order to make the source unavailable when there is nothing to input and then add faillible=true to output.file in order to not to output to the file when the source is unavailable.

Cheers,

Samuel.


On Mon, Nov 19, 2012 at 7:58 AM, Daniel Schade <mail@deejay-dan.de> wrote:
Hello,

i have a next question about liquidsoap (stream blank).

If no DJ sending, then the stream is offline. I have configured a Aircheck. How can i prevent that the stream blank are record? Fallback ??

#!/usr/bin/liquidsoap

set("log.file.path","/tmp/liquidsoap.log")
set("log.stdout", true)

url="http://IP:PORT"
input=mksafe(input.http(url))

output.icecast(%aacplus(channels=2, samplerate=44100, bitrate=48),
       mount="/test",
       host="localhost",port=XXXX,
       password="PWHERE",
       input)

output.file(%aacplus(channels=2, samplerate=44100, bitrate=48),
       "/path/to/aircheck/%Y/%m/%d/%Y%m%d_%H%M%S.mp4",
       reopen_when={0m0s},
       input)

Many thanks to all!
I love liquidsoap!

Daniel
------------------------------------------------------------------------------
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
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users