[Icecast] Statistics

Michael Smith mlrsmith at gmail.com
Sun Mar 6 01:55:35 PST 2005


On Sun, 06 Mar 2005 00:27:04 -0500, Brandon <bcasci at runbox.com> wrote:
> Hello
> 
> I've been experimenting with Icecast. Is there a way to obtain a
> timestamp of when a song was played, and how many seconds a listener was
> connected?

Icecast can (and does - in the access log file) log how many seconds a
listener has been connected for.

We don't log "when a song was played", though - because icecast
doesn't know anything much about the data being streamed at all. We
could consider any change in metadata to be a 'new song', but that's
not very accurate. The stats will show the current metadata, but we
don't log that in any permanent way.

Getting a list of songs (and timestamps to go with them) is something
much better done by the source client - because the source client
actually knows what the data being streamed is, and can easily log
this info (many already do). This would mean you'd have to combine
data from two places (source client for song info, icecast logs for
listener details), but that shouldn't be difficult.

You could modify icecast to log the metadata changes, but I wouldn't
really recommend that approach.

Mike


More information about the Icecast mailing list