[Icecast] Re: Question about HTTP headers and Icecast stream status

Rob McDonald rob.mcdonald.icecast at nzpages.net
Wed Apr 18 01:27:00 UTC 2007


As far as live streaming goes.

404 = mount point down.
200 = mount point up.

Its up to your application to analyze the audio data and decide if there
is enough "sound" for you or not. What if there is meant to be a 5
second pause?

I just use the 404/200 method in my scripts which monitor mount points,
It's never failed me yet.

Cheers

Rob

On Tue, 2007-04-17 at 19:19 -0400, Chris Nighswonger wrote:
> Can anyone verify this for me?
> 
> Thanks
> 
> On 4/13/07, Chris Nighswonger wrote:
> > Hi all,
> >  I'm working on a script to check the status of streams from multiple
> > streaming sources (ie. icecast, shoutcast, wms, etc.). With Icecast I
> > am looking at the HTTP header returned by the server when I do a GET
> > on the mountpoint I want the status of. It appears that a HTTP/1.0 200
> > indicates that the mountpoint is up while a HTTP/1.0 404 indicates
> > that it is down.
> >  Two questions:
> >
> > 1. Is this correct?
> > 2. Does Icecast return a different value when the mountpoint is up,
> > but has no audio (data)?
> >
> >  If the answer to #2 is 'no' then how hard would it be to hack the
> > code to do this?
> >
> >  I want to be able to indicate three conditions concerning the stream
> > status: up with audio, up w/o audio, and down (no source).
> >
> > Thanks,
> > Chris
> >
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast




More information about the Icecast mailing list