Hi,

My guess is that your soundcard constantly produces some noise, making
Liquidsoap think that there is no blank. I would tweak the "threshold"
parameter of "on_blank". Default value is -40. (in dB), try setting it
to something higher.

Cheers,

Samuel.

On Wed, Dec 18, 2013 at 1:20 PM, Yoann QUERET <[email protected]> wrote:
> Hi,
>
> I use a very simple script to test the on_blank function, but nothing
> is called when i have no sound on my source.
>
> def handler_blank()
>          ignore(http.get("http://localhost:80/blank.php";))
>          #system("wget --timeout=10 --tries=2 --quiet
> http://localhost:80/blank.php -O /dev/null")
> end
>
> source = input.alsa(
>          device = "hw:0,0"
> )
>
> source = on_blank(handler_blank,source)
>
> output.icecast(
> ....
> )
>
>
> I use a home made debian wheezy package of Liquidsoap 1.1.1
> Using: pcre=6.2.5 dtools=0.3.1 duppy=0.5.1 duppy.syntax=0.5.1 cry=0.2.2
> mm=0.2.1 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.5 vorbis=0.6.1
> speex=0.2.0 mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dynlink=[distributed
> with Ocaml] lame=0.3.2 aacplus=0.2.1 voaacenc=0.1.0 fdkaac=0.1.0
> theora=0.3.0 alsa=0.2.1 ao=0.2.0 samplerate=0.1.2 taglib=0.3.1
> camomile=0.8.4 faad=0.3.2 soundtouch=0.1.7 pulseaudio=0.1.2 ladspa=0.1.4
> dssi=0.1.1 lo=0.1.0
>
> Have you an idea why on_blank don't call the handler_blank ?
>
> THk
> Yoann
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to