[LAD] simple silence detection tool

Jeremy Hansen jeremy at skidrow.la
Sun Feb 10 13:36:16 UTC 2013



On Feb 10, 2013, at 4:11 AM, Adrian Knoth <adi at drcomp.erfurt.thur.de> wrote:

> On Sun, Feb 10, 2013 at 12:39:17PM +0100, Florian Paul Schmidt wrote:
> 
> 
>>> I'm looking for a simple tool where I can point it at an http audio
>>> stream, define a number of seconds to detect silence and exit with a
>>> non-zero status if silence is detected.  It seems like this should be
>>> easy but I've been search high and low for such a utility and nothing
>>> simple exists.  Unfortunately I'm not much of a developer, but this
>>> doesn't seem like it would be that difficult.  Maybe it's harder than
>>> I think, hence no tool that I can find.
> 
>> Probably noone needed this precice functionality yet.
> 
> The radio guys have this stuff to see if their streams are still alive.
> 
> Ah, here it is:
> 
>    http://www.aelius.com/njh/silentjack/
> 
> Use any player (mplayer, cvlc, gstreamer) with jackd support to decode
> your stream or use the usual anything-to-jackd magic to make your
> consumer applications work with jackd.
> 
> 
> Something like this:
> 
>   $ jackd -d dummy   (won't terminate and will not output anything)
> 
>   $ gst-launch uridecodebin uri=http://some.stream/ ! \
>        audioconvert ! audioresample ! jackaudiosink connect=none
> 
>   $ mplayer -ao jack,port=SilentJack http://some.stream/   
> 

I saw this but I was missing all the jack info. I rebuilt mplayer with jack support. I started jackd per your example:

JACK tmpdir identified as [/dev/shm]
[JACK] cannot open server
Failed to initialize audio driver 'jack'
Could not open/initialize audio device -> no sound.

Perhaps I'm missing a step?

Thanks

> 
>> 1] A tool that can read from an http stream and write it into a pipe
>> (maybe mplayer/mencoder)
> 
> mencoder is dead. mplayer, vlc, gstreamer and co are alive.
> 
> 
> 
> Cheers
> 
> -- 
> mail: adi at thur.de      http://adi.thur.de    PGP/GPG: key via keyserver
> 
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev


More information about the Linux-audio-dev mailing list