Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

config option: Intro
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Wed Mar 29, 2006 8:04 pm    Post subject: config option: Intro Reply with quote

It doesn't work? I've read the help doc but wasted hours configuring this option for intros whenever a listener connects. I run an own server so I also tried the web default folder but nothing helps.

Somewhere on the web I've read it's not supported by icecast?

Cheers
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Mar 29, 2006 9:26 pm    Post subject: Reply with quote

An intro file for a mountpoint works in 2.3 so make sure you are running the latest version first. Other reasons could prevent an intro file not being played eg wrong format, incorrect path, access error. Obviously without the logs/xml we can't be specific.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Mar 30, 2006 10:08 am    Post subject: Reply with quote

why does it need a username / pw?
it's mount-specific - can it work for every mp?

Code:
<mount>
        <mount-name>/stream.ogg</mount-name>

        <username>source</username>
        <password>***</password>

        <max-listeners>100</max-listeners>
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/example2.ogg</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
       <intro>C:\Program Files\Icecast2 Win32\intro.ogg</intro>
        <hidden>1</hidden>
        <no-yp>1</no-yp>
        <authentication type="htpasswd">
                <option name="filename" value="myauth"/>
                <option name="allow_duplicate_users" value="0"/>
        </authentication>
        <on-connect>/home/icecast/bin/stream-start</on-connect>
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
    </mount>


and how to enter the mp3 intro version? i sometimes use ogg or mp3.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 30, 2006 1:10 pm    Post subject: Reply with quote

It requires a username password because you have specified that authentication is required, these tags do actually mean something. Intro file options are mount specific as there are many differences even between different mp3 streams eg samplerate, so a single intro file for all mp3 streams is not suitable. There is no format limitation with the intro file except for the fact that it has to match the stream it relates to, eg mp3 intro for mp3 stream.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Mar 30, 2006 6:37 pm    Post subject: Reply with quote

ok thanks for the quick reply but it's still not working
- path is ok. changed \ to / hope that's correct
- same format is clear, will mind the kHz versions
-i have the correct mountpoint password filled but i don't understand what a user is in this case. a listener has no user name / password and the client doesn't need an intro. :confused: Smile
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 30, 2006 7:10 pm    Post subject: Reply with quote

The description of "not working" doesn't help us to say what the problem is, As it is unclear what exactly you are having trouble with. If your listeners do not issue usernames/passwords to connect to your stream then the question is why do you have an authentication type=htpasswd within the mount settings. If you have <password> within the <mount> set then that is for the source client authentication.

As always check your error log as well.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Mar 30, 2006 8:32 pm    Post subject: Reply with quote

cos i dunno shit about coding xml and am afraid of deleting things when i dunno what they mean/cause Smile
ok cheers will try harder

<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>*pw1*</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>*pw1*</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>*pw2*</admin-password>
</authentication>

<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>*serverIP*</hostname>

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->

<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>

<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->

<mount>
<mount-name>/stream.ogg</mount-name>

<burst-size>65536</burst-size>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>C:/intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>

<mount-name>/stream.mp3</mount-name>

<burst-size>65536</burst-size>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>C:/intro.mp3</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>
-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>./</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<!-- <pidfile>./icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>

<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 30, 2006 8:45 pm    Post subject: Reply with quote

The defaults should be good for most people, the docs cover the options but you don't need to state all options per mount.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Mar 30, 2006 9:13 pm    Post subject: Reply with quote

ok after two weeks the error.log is already 7 MB. when i understand more of the options i'll take out the default features i don't need. the log doesn't read any error belonging the intro. had a short test run including listening to it and i can't ctrl+f "intro" or "C:" in the whole log

am I too dumb or is it just too complicated? sorry but for newbies like me it IS. I already spent more time confiuring things than having people streaming with it.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 30, 2006 10:17 pm    Post subject: Reply with quote

Assuming the problem to resolve is purely the intro file playing, and not the auth then check over your settings again. You have specified an intro of C:/intro.ogg and a webroot of ./web, so the file being attempted (and logged as such) should be "./web/C:/intro.ogg" which will not open. I guess there is an error logged at the point when the source client connects.

It really isn't difficult, but it's difficult to diagnose if little information is given, at least the xml shows what you intend. It's ok to stop the server to flush the logs.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Fri Mar 31, 2006 6:38 am    Post subject: Reply with quote

see! how should i know this! Smile ok so i can delete this part?

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<!-- <pidfile>./icecast.pid</pidfile> -->
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 31, 2006 11:50 am    Post subject: Reply with quote

The usual way of finding out is by looking at the documentation, to quote the icecast_config.html file for the intro setting
"The specified file is appended to webroot before being opened."

so place your intro file in the correct place in webroot

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Fri Mar 31, 2006 3:22 pm    Post subject: Reply with quote

isn't that C:\Program Files\Icecast2 Win32\web instead of C:\Inetpub\wwwroot
ok so where to add what? i have the intro files placed at all possible locations like webroot C:/Inetpub/wwwroot or C:/Program Files/Icecast2 Win32/web
and bsically: when i enter a root do i need to use / or \ ?

i tried
<webroot>./web</webroot>
<webroot>C:/Inetpub/wwwroot</webroot>
<intro>/intro.mp3</intro>
<intro>C:/Inetpub/wwwroot/intro.mp3</intro>

and all combinations of them and what not.
it's getting my nerves really! all i want is the prog to play an intro Sad
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 31, 2006 4:59 pm    Post subject: Reply with quote

You can use an absolute path for webroot if you want, the shipped xml from win32 does have a relative path though, I don't know where you get C:\Inetpub\wwwroot from though. I could be wrong but I think win32 takes / as well as \ so I think your /intro.mp3 should be fine, which if I understand your information so far, should be located in C:/Program Files/Icecast2 Win32/web

Of course, the information in the error log will be helpful, but obviously I haven't seen that. Check the log at the time the stream started. Basic process, make sure icecast is stopped, remove log files, start icecast then start source client. The intro file should be noted in the log.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Apr 01, 2006 9:36 am    Post subject: Reply with quote

C:\Inetpub\wwwroot is the default directory for my website (thought so cos of /web, well i tried hard! Smile
ok reinstalled icecast. intro files are in icecast's web folder. changed nothing in the log but the general data and the mount section like this:

<mount>
<mount-name>/DiscogsRadio.mp3</mount-name>
<burst-size>65536</burst-size>
<intro>/intro.mp3</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>

[2006-04-01 11:33:04] INFO main/main.c Icecast 2.3.1 server started
[2006-04-01 11:33:04] DBUG yp/yp.c Updating YP configuration
[2006-04-01 11:33:04] INFO yp/yp.c YP update thread started
[2006-04-01 11:33:04] INFO auth/auth.c Authentication thread started
[2006-04-01 11:33:05] INFO connection/connection.c Source logging in at mountpoint "/DiscogsRadio.mp3"
[2006-04-01 11:33:05] DBUG connection/connection.c sources count is 0
[2006-04-01 11:33:05] DBUG source/source.c Applying mount information for "/DiscogsRadio.mp3"
[2006-04-01 11:33:05] DBUG source/source.c YP changed to 1
[2006-04-01 11:33:05] DBUG format-mp3/format_mp3.c mp3 interval -1
[2006-04-01 11:33:05] DBUG source/source.c public set to 1
[2006-04-01 11:33:05] DBUG source/source.c max listeners to -1
[2006-04-01 11:33:05] DBUG source/source.c queue size to 524288
[2006-04-01 11:33:05] DBUG source/source.c burst size to 65535
[2006-04-01 11:33:05] DBUG source/source.c source timeout to 10
[2006-04-01 11:33:05] DBUG source/source.c fallback_when_full to 0
[2006-04-01 11:33:05] DBUG connection/connection.c source is ready to start
[2006-04-01 11:33:05] DBUG fserve/fserve.c Adding client to file serving engine
[2006-04-01 11:33:05] DBUG source/source.c Source creation complete
[2006-04-01 11:33:05] DBUG stats/stats.c update node clients (1)
[2006-04-01 11:33:05] DBUG stats/stats.c update node connections (1)
[2006-04-01 11:33:05] DBUG stats/stats.c update node sources (1)
[2006-04-01 11:33:05] DBUG stats/stats.c new source stat /DiscogsRadio.mp3
[2006-04-01 11:33:05] DBUG stats/stats.c new node public (1)
[2006-04-01 11:33:05] DBUG stats/stats.c new node server_name (MONK - Subfreaquence)
[2006-04-01 11:33:05] DBUG stats/stats.c new node server_description (Discogs Radio)
[2006-04-01 11:33:05] DBUG stats/stats.c new node server_url (http://www.oddsock.org)
[2006-04-01 11:33:05] DBUG stats/stats.c new node genre (House)
[2006-04-01 11:33:05] DBUG stats/stats.c new node bitrate (128)
[2006-04-01 11:33:05] DBUG stats/stats.c new node server_type (audio/mpeg)
[2006-04-01 11:33:05] DBUG stats/stats.c new node max_listeners (unlimited)
[2006-04-01 11:33:05] DBUG stats/stats.c new node source_ip (XXXXXXX)
[2006-04-01 11:33:05] DBUG stats/stats.c update node source_client_connections (1)
[2006-04-01 11:33:05] DBUG stats/stats.c new node listeners (0)
[2006-04-01 11:33:05] DBUG stats/stats.c new node ice-samplerate (44100)
[2006-04-01 11:33:05] DBUG stats/stats.c new node ice-bitrate (128)
[2006-04-01 11:33:05] DBUG stats/stats.c new node ice-channels (2)
[2006-04-01 11:33:05] DBUG stats/stats.c new node audio_info (ice-samplerate=44100;ice-bitrate=128;ice-channels=2)
[2006-04-01 11:33:05] DBUG stats/stats.c new node listenurl (http://XXXXXX:XXXX/DiscogsRadio.mp3)
[2006-04-01 11:33:05] DBUG stats/stats.c update node source_total_connections (1)
[2006-04-01 11:33:05] DBUG stats/stats.c new node slow_listeners (0)
[2006-04-01 11:33:05] DBUG stats/stats.c update node listeners (0)
[2006-04-01 11:33:05] DBUG stats/stats.c new node listener_peak (0)
[2006-04-01 11:33:05] DBUG stats/stats.c new node stream_start (Sat, 01 Apr 2006 11:33:05 W. Europe Daylight Time)
[2006-04-01 11:33:05] DBUG stats/stats.c new node total_bytes_read (0)
[2006-04-01 11:33:05] DBUG stats/stats.c new node total_bytes_sent (0)
[2006-04-01 11:33:05] DBUG slave/slave.c checking master stream list
[2006-04-01 11:33:10] DBUG stats/stats.c update node total_bytes_read (71400)
[2006-04-01 11:33:10] DBUG stats/stats.c update node total_bytes_sent (0)
[2006-04-01 11:33:11] DBUG auth/auth.c max on /DiscogsRadio.mp3 is -1 (cur 0)
[2006-04-01 11:33:11] DBUG auth/auth.c Added client to /DiscogsRadio.mp3
[2006-04-01 11:33:11] DBUG auth/auth.c client authenticated, passed to source
[2006-04-01 11:33:11] DBUG source/source.c Client added
[2006-04-01 11:33:11] INFO source/source.c listener count on /DiscogsRadio.mp3 now 1
[2006-04-01 11:33:11] DBUG stats/stats.c update node clients (2)
[2006-04-01 11:33:11] DBUG stats/stats.c update node connections (2)
[2006-04-01 11:33:11] DBUG stats/stats.c update node client_connections (1)
[2006-04-01 11:33:11] DBUG stats/stats.c update node listener_connections (1)
[2006-04-01 11:33:11] DBUG stats/stats.c update node listener_peak (1)
[2006-04-01 11:33:11] DBUG stats/stats.c update node listeners (1)
[2006-04-01 11:33:11] DBUG format/format.c processing pending client headers
[2006-04-01 11:33:15] DBUG stats/stats.c update node total_bytes_read (148400)
[2006-04-01 11:33:15] DBUG stats/stats.c update node total_bytes_sent (49336)
[2006-04-01 11:33:18] DBUG client/client.c Client connection died
[2006-04-01 11:33:18] DBUG source/source.c Client removed
[2006-04-01 11:33:18] INFO source/source.c listener count on /DiscogsRadio.mp3 now 0
[2006-04-01 11:33:19] DBUG stats/stats.c update node clients (1)
[2006-04-01 11:33:19] DBUG stats/stats.c update node listeners (0)
[2006-04-01 11:33:20] DBUG stats/stats.c update node total_bytes_read (225400)
[2006-04-01 11:33:20] DBUG stats/stats.c update node total_bytes_sent (95538)
[2006-04-01 11:33:21] WARN client/client.c source connection has died
[2006-04-01 11:33:21] INFO source/source.c End of Stream /DiscogsRadio.mp3
[2006-04-01 11:33:21] INFO source/source.c Source "/DiscogsRadio.mp3" exiting
[2006-04-01 11:33:21] DBUG source/source.c clearing source "/DiscogsRadio.mp3"
[2006-04-01 11:33:21] DBUG source/source.c freeing source "/DiscogsRadio.mp3"
[2006-04-01 11:33:21] DBUG stats/stats.c delete source node /DiscogsRadio.mp3
[2006-04-01 11:33:21] DBUG stats/stats.c update node clients (0)
[2006-04-01 11:33:21] DBUG stats/stats.c update node sources (0)
[2006-04-01 11:33:23] DBUG connection/connection.c Connection thread done
[2006-04-01 11:33:23] INFO main/main.c Shutting down
[2006-04-01 11:33:24] INFO fserve/fserve.c file serving thread stopped
[2006-04-01 11:33:24] DBUG slave/slave.c waiting for slave thread
[2006-04-01 11:33:24] DBUG slave/slave.c shutting down current relays
[2006-04-01 11:33:24] INFO slave/slave.c Slave thread shutdown complete
[2006-04-01 11:33:25] INFO auth/auth.c Authenication thread shutting down
[2006-04-01 11:33:25] INFO auth/auth.c Auth thread has terminated
[2006-04-01 11:33:25] INFO yp/yp.c YP thread down
[2006-04-01 11:33:25] INFO stats/stats.c stats thread finished


Last edited by Anonymous on Sat Apr 01, 2006 2:22 pm; edited 1 time in total
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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