Hi guys! I've recently tried to setup a blank & noise detection for an input.http (Icecast streaming) to start & stop an output.icecast. The new great parameter "on_noise" works perfectly with bjack.
When testing : - first, an input1 (input.http) is fecthed with a sending higher than -40dB : -20dB (his is directly outputed at liq launch to an output.icecast) 2009/07/15 23:06:58 [src_4701:4] Connecting to <http://stream.radiowne.org:8000/kkwne>... 2009/07/15 23:06:58 [kkwne2:3] Connection setup was successful. 2009/07/15 23:06:58 [root:3] Broadcast starts up! 2009/07/15 23:06:58 [src_4707:3] Switch to src_4706. 2009/07/15 23:06:58 [src_4706:4] Activations changed: static=[src_4707:kkwne2:kkwne2], dynamic=[src_4707:kkwne2:kkwne2]. 2009/07/15 23:06:58 [src_4701:4] Trying playlist parser for mime audio/mpeg 2009/07/15 23:06:58 [src_4701:4] Content-type "audio/mpeg". 2009/07/15 23:06:58 [src_4701:3] Decoding... 2009/07/15 23:06:58 [src_4701:3] New metadata chunk "? -- Black Sun Empire - Dyneema" 2009/07/15 23:06:58 [src_4707:3] Switch to src_4705 with transition. 2009/07/15 23:06:58 [src_4706:4] Activations changed: static=[], dynamic=[src_4707:kkwne2:kkwne2]. 2009/07/15 23:06:58 [src_4705:4] Activations changed: static=[src_4707:kkwne2:kkwne2], dynamic=[src_4707:kkwne2:kkwne2]. 2009/07/15 23:06:58 [src_4701:4] End of track. 2009/07/15 23:06:58 [src_4701:4] End of track. 2009/07/15 23:06:58 [src_4701:4] End of track. - then, I lower the level under -40dB during more than 30sec : 2009/07/15 23:09:18 [lang:3] No sound ! 2009/07/15 23:09:18 [kkwne2:3] Connecting mount kkwne2 for sou...@stream.radiowne.org... 2009/07/15 23:09:18 [kkwne2:3] Connection setup was successful. on_blank works, but do the opposite command : the output mount is reconnected than disconnected, and the output.icecast stay up - ok, so I try to send more level on it : 2009/07/15 23:10:03 [lang:3] Sound ! 2009/07/15 23:10:09 [src_4701:3] New metadata chunk "? -- F-One & Kromestar - Grinding" 2009/07/15 23:10:13 [src_4701:4] End of track. noise detected, there's no change and output.icecast stay connected - I try to lower again the level, to see what's happen : 2009/07/15 23:10:44 [lang:3] No sound ! After this, the output.icecast is definitly stopped and won't never restart after noise detected. There's also no more logging after this. Here's a part of my .liq code : input1=input.http("http://stream.radiowne.org:8000/kkwne.m3u") def startit() log("Sound !") ignore(server.execute("kkwne2.start")) end def stopit() log("No sound !") ignore(server.execute("kkwne2.stop")) end input2 = fallback(track_sensitive=false,[on_blank(stopit,length=30.,threshold=-40.,on_noise=startit,input1), blank()]) What do you think ? Best, Thomas ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users