| View previous topic :: View next topic |
| Author |
Message |
Kilmarac
Joined: 05 Jul 2009 Posts: 1
|
Posted: Sun Jul 05, 2009 8:10 pm Post subject: Installation Error & Question |
|
|
Ok I have two things going on.
The first and hopefully quickest is that I am trying to find out if there is a way for icecast to generate pages like a shoutcast server (index.html, played.html, etc)
Reason why is that swcast.net (JP License group) only supports shoutcast servers because of something along the lines of them being the defacto standard and not enough request for icecast. So basically I need to generate the pages for them to read for my statistics
Second problem is that I am having an error in the install that I cant seem to find a solution to.
| Code: |
/usr/local/lib/libvorbis.so /usr/local/lib/libogg.so -L/usr/lib -lxslt /usr/lib/libxml2.so -ldl -lz -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
format_vorbis.o: In function `process_vorbis_headers':
/home/<><>/icecast-2.3.2/src/format_vorbis.c:338: undefined reference to `vorbis_commentheader_out'
/home/<><>/icecast-2.3.2/src/format_vorbis.c:342: undefined reference to `ogg_packet_clear'
format_vorbis.o: In function `process_vorbis_audio':
/home/<><>/icecast-2.3.2/src/format_vorbis.c:252: undefined reference to `vorbis_packet_blocksize'
collect2: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/home/<><>/icecast-2.3.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/<><>/icecast-2.3.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/<><>/icecast-2.3.2'
make: *** [all] Error 2
|
Thanks for the help |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jul 05, 2009 9:08 pm Post subject: |
|
|
icecast can provide pages like a web server does, you can even use the xsl files to generate those pages (look at status.xsl). As icecast handles multiple streams at the same time then doing a exact lookalike of a shoutcast page is not going to work very well, but I suppose you could make something like it.
Regarding the linker errors, those functions are in the libvorbis and libogg libraries. It looks like the .so references are on the link line so that would indicate that those symlinks are broken in some way but it's not possible to say why at the moment.
karl. |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Mon Jul 06, 2009 3:13 pm Post subject: Re: Installation Error & Question |
|
|
| Kilmarac wrote: |
| So basically I need to generate the pages for them to read for my statistics |
If they read for the stats 7.html from Shoutcast, you could try to create a 7.xsl or something to simulate the same output on Icecast. Something like this:
7.xsl:
| Code: |
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output method="text" media-type="text/plain" indent="yes" encoding="iso-8859-3" />
<xsl:template match = "/icestats" >
<pre><xsl:for-each select="source">
.<xsl:value-of select="@mount" />|<xsl:value-of select="listeners" />|<xsl:value-of select="public" />|<xsl:value-of select="listener_peak" />|<xsl:value-of select="max_listeners" />|<xsl:value-of select="slow_listeners" />|<xsl:value-of select="bitrate" />|<xsl:value-of select="title" />
</xsl:for-each>
./MountPoint|Current Listeners|Public|Peak Listeners|Max Listeners|Slow Listeners|Bitrate|Current Title
Total Current Listeners: <xsl:value-of select="listeners" />
</pre>
</xsl:template>
</xsl:stylesheet>
|
I use the above code to feed data from Icecast to a php parser that was originally developed for Shoutcast. With this, I had to make only very little changes to the parser php
Of course this prints a new line for each mount. You could use one single mount on your server, and drop the mount name (<xsl:value-of select="@mount" />|) and the bottom stuff from the xsl above.
There is another thing, maybe an alias has to be added to the config xml, to make sure that if they request 7.html, the output of 7.xsl is fed instead
Other pages can be built too, to look similar, but there's a lot of mangling to do with the styles also. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|