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 

intro and fallback

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
mediaman



Joined: 27 Mar 2010
Posts: 9

PostPosted: Tue Nov 09, 2010 1:16 pm    Post subject: intro and fallback Reply with quote

hello,

i tried various settings to set an intro one user should hear before the stream. also i tried to set a file as fallback mount, if the stream shuts down, the user should hear a stored file on the server.

i tried this:

<mount>
<mount-name>/stream.ogg</mount-name>
<username>me</username>
<password>donthack</password>
<max-listeners>300</max-listeners>
<intro>/hitskit.ogg</intro>
<fallback-mount>/hitskit.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<charset>ISO8859-1</charset>
<public>1</public>
<stream-name>My audio stream</stream-name>
<stream-description>My audio description</stream-description>
<stream-url>http://some.place.com</stream-url>
<genre>good stuff</genre>
<bitrate>128</bitrate>
<type>application/ogg</type>
<subtype>vorbis</subtype>
<hidden>1</hidden>
<burst-size>65536</burst-size>
<mp3-metadata-interval>4096</mp3-metadata-interval>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/source-start</on-connect>
<on-disconnect>/home/icecast/bin/source-end</on-disconnect>
</mount>

stream is working, but not the intro neither the fallback

would appreciate some help
thx
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Nov 09, 2010 1:59 pm    Post subject: Reply with quote

There is a lot defined in that mount, some of which does not make sense like charset. Check that you see these settings being reported in the error log, the max listener is a good one to check. it should be 300 here but if you have it commented out then the max listeners will be unlimited or -1.

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



Joined: 27 Mar 2010
Posts: 9

PostPosted: Tue Nov 09, 2010 3:20 pm    Post subject: Reply with quote

now it looks like this:

<mount>
<mount-name>/stream.ogg</mount-name>
<username>me</username>
<password>donthack</password>
<intro>/hitskit.ogg</intro>
<on-connect>/home/icecast/bin/source-start</on-connect>
<on-disconnect>/home/icecast/bin/source-end</on-disconnect>
</mount>

and the path:

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

<logdir>/var/log/icecast2</logdir>
<webroot>/etc/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>

<alias source="/" dest="/status.xsl"/>
</paths>

i tried /usr/share/icecast2/web as webroot destination and also the /etc/icecast2/web .. still no intro is playin if some user connects .. just the normal stream

any suggestions?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Nov 09, 2010 11:20 pm    Post subject: Reply with quote

Check your error log (increase the log level if you must) but check the settings being applied, you should see intro, on-connect and on-disconnect setting applied

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



Joined: 27 Mar 2010
Posts: 9

PostPosted: Wed Nov 10, 2010 12:14 am    Post subject: Reply with quote

i checked the error.log .. but it doesnt help me at all, no errors in case of the "intro" or "fallback" are listed.. level of error logs is 4

here is the newest error.log

[2010-11-10 00:07:39] INFO connection/_handle_source_request Source logging in at mountpoint "/stream"
[2010-11-10 00:07:39] DBUG connection/connection_complete_source sources count is 0
[2010-11-10 00:07:39] DBUG source/source_apply_mount Applying mount information for "/stream"
[2010-11-10 00:07:39] DBUG source/source_apply_mount YP changed to 1
[2010-11-10 00:07:39] DBUG source/source_update_settings public set to 1
[2010-11-10 00:07:39] DBUG source/source_update_settings max listeners to -1
[2010-11-10 00:07:39] DBUG source/source_update_settings queue size to 524288
[2010-11-10 00:07:39] DBUG source/source_update_settings burst size to 65535
[2010-11-10 00:07:39] DBUG source/source_update_settings source timeout to 10
[2010-11-10 00:07:39] DBUG source/source_update_settings fallback_when_full to 0
[2010-11-10 00:07:39] DBUG connection/connection_complete_source source is ready to start
[2010-11-10 00:07:39] DBUG fserve/fserve_add_client_callback Adding client to file serving engine
[2010-11-10 00:07:39] DBUG source/source_init Source creation complete
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node clients (1)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node connections (22643)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node sources (1)
[2010-11-10 00:07:39] DBUG stats/process_source_event new source stat /stream
[2010-11-10 00:07:39] DBUG stats/process_source_event new node listenurl (http://localhost:8000/stream)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node listener_peak (0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node public (1)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node server_name (Traktor Stream)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node server_description (Traktor Stream)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node genre (Mixed Styles)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node bitrate (Quality 0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node server_type (application/ogg)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node max_listeners (unlimited)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node source_ip (xx.xxx.xxx.xxx)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node user_agent (Native Instruments IceCast Uplink)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node source_client_connections (29)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node listeners (0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node ice-samplerate (44100)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node ice-bitrate (Quality 0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node ice-channels (2)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node audio_info (ice-samplerate=44100;ice-bitrate=Quality 0;ice-channels=2)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node listenurl (http://localhost:8000/stream)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node source_total_connections (29)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node slow_listeners (0)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node listeners (0)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node listener_peak (0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node stream_start (Wed, 10 Nov 2010 00:07:39 +0000)
[2010-11-10 00:07:39] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2010-11-10 00:07:39] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2010-11-10 00:07:39] DBUG format-vorbis/process_vorbis_page processing incoming header packet (1)
[2010-11-10 00:07:39] DBUG format-vorbis/process_vorbis_page processing incoming header packet (2)
[2010-11-10 00:07:39] DBUG format-vorbis/process_vorbis_page processing incoming header packet (2)
[2010-11-10 00:07:39] DBUG format-vorbis/process_vorbis_page we have the header packets now
[2010-11-10 00:07:39] DBUG format-vorbis/process_vorbis_headers Adding the 3 header packets
[2010-11-10 00:07:39] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2010-11-10 00:07:39] DBUG format-ogg/format_ogg_attach_header attaching header page
[2010-11-10 00:07:39] DBUG stats/process_source_event new node total_bytes_read (0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node total_bytes_sent (0)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node audio_samplerate (44100)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node audio_channels (2)
[2010-11-10 00:07:39] DBUG stats/process_source_event new node audio_bitrate (128000)
[2010-11-10 00:07:39] DBUG stats/modify_node_event update node ice-bitrate (128)
[2010-11-10 00:07:39] INFO source/source_main listener count on /stream now 0
[2010-11-10 00:07:40] DBUG stats/modify_node_event update node listeners (0)
[2010-11-10 00:07:40] DBUG stats/process_source_event new node subtype (Vorbis)
[2010-11-10 00:07:44] DBUG stats/modify_node_event update node total_bytes_read (78828)
[2010-11-10 00:07:44] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-11-10 00:07:44] INFO source/get_next_buffer End of Stream /stream
[2010-11-10 00:07:44] INFO source/source_shutdown Source "/stream" exiting
[2010-11-10 00:07:44] DBUG source/source_clear_source clearing source "/stream"
[2010-11-10 00:07:44] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2010-11-10 00:07:44] DBUG format-ogg/free_ogg_codecs freeing codecs
[2010-11-10 00:07:44] DBUG format-vorbis/vorbis_codec_free freeing vorbis codec
[2010-11-10 00:07:44] DBUG source/source_free_source freeing source "/stream"
[2010-11-10 00:07:44] DBUG stats/process_source_event delete source node /stream
[2010-11-10 00:07:44] DBUG stats/modify_node_event update node clients (0)
[2010-11-10 00:07:44] DBUG stats/modify_node_event update node sources (0)
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Nov 10, 2010 1:32 am    Post subject: Reply with quote

Quote:
2010-11-10 00:07:39] DBUG source/source_update_settings public set to 1
[2010-11-10 00:07:39] DBUG source/source_update_settings max listeners to -1
[2010-11-10 00:07:39] DBUG source/source_update_settings queue size to 524288
[2010-11-10 00:07:39] DBUG source/source_update_settings burst size to 65535
[2010-11-10 00:07:39] DBUG source/source_update_settings source timeout to 10
[2010-11-10 00:07:39] DBUG source/source_update_settings fallback_when_full to 0


no mention of on-connect or intro here, makes me thinkthe mount is commented out or not being read at least

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
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