× Warning! This forum is in archival status. New contributions may not work.
use of sox to monitor stream for dead air?
  • I stumble across this on stack exchange and got to thinking could this
    be used to monitor icecasts output on a stream and instead of looking
    for sound look for silence then if silence is longer than say 30 seconds
    restart all the airtime services, or even reboot  to restart the audio?
    https://stackoverflow.com/questions/2613163/monitoring-an-audio-line

    I
    see the liquidsoap has a db threshold as well but i do not know python
    coding at all. any feedback or help is appreciated or what do you use to
    solve the issue of dead air besides playlist fallbacks, thanks
  • 4 Comments sorted by
  • Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Thanks Voisses
    The dead air isnt the problem however its the service crashing or just playing nothing even tho airtime shows that it is playing something on schedule. The problem I'm having is icecast or playout is crashing I figured if i could run a shell script after the db threshold is too low to restart the services it would remedy the problem if it ever happened again
    Post edited by Design Pow at 2015-07-30 21:43:43
  • uninstall the Icecast and then reinstall it.

    For some reason some weird things are happening,depending on when(which day or month or week) you install Airtime now a days.It might be my mind.

    like my post here https://forum.sourcefabric.org/discussion/17596/another-nightmare-with-installing-airtime-on-ubuntu-14-04-gosh-its-cockamamie

    The next week its all ok

    don't know if its a mixed up with branches

    so just

    sudo apt-get purge icecast2

    then reinstall

    sudo apt-get install icecast2

    If not post some logs lets eee whats happen such as the icecast logs.

    The stable part works fine,I have a system setup which is working 267 days 24/7 no crash it must be something else also there is a watchdog script already in airtime,there should not be any need to create another.
    give me some logs
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Here is the icecast logs note around [2015-07-30  20:05:15] is where we had a drop during a show.

    Is there anything else that seems off with the logs.after that outage I tried restarting liquid soap rabbit etc a few time and after that didn't work we just rebooted till it came back online. 

    Is there a good diagnostic or order to reset services in to restore a dropped or non existent stream. Airtime still reports as working fine throughout. both on the web interface and command line airtime status.

    this is running on ubunto 12.04. 
    I also tried changing from ogg to mp3 to fix the issue can't seem to narrow down the main cause but will reinstall icecast to see if that helps as well

    thanks