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 

Setting Up a Relay Server

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



Joined: 18 Oct 2011
Posts: 83

PostPosted: Sun Dec 02, 2012 9:13 pm    Post subject: Setting Up a Relay Server Reply with quote

Hi, I'm about to take the plunge and have remote DJs connect through a relay server, that is then picked up by the auto DJ (SAM) as a URL and sent to the master server. Currently they simply disconnect the auto DJ and connect directly to the master server.

I have a test up and running and it works. However I would like some advice.

What would an optimal burst and queue setting be? (at least as a start point). Latency is only an issue so much as to have smooth changeovers between auto DJ and live DJ. Stability is highly valued, but not if there is more silence than I currently get with changeovers, approx 5 seconds.
Back to top
View user's profile Send private message
square_eyes



Joined: 18 Oct 2011
Posts: 83

PostPosted: Sun Dec 02, 2012 9:31 pm    Post subject: Reply with quote

The burst definition in the icecast config documentation is confusing. It says a burst will have the listener client playing audio more quickly, but introduce latency. This to me seems contradictory.

Is it saying it will play a sound byte, just to let the listener know something's coming, then pause for the buffer anyway?

Laymans terms would be ideal.

edit. I seem to get what I just described above with burst off. So if the audio starts up more quickly, how is latency introduced? I guess I'm asking in this context how latency is different to buffer. I think I know the answer to that, but not how the listener would perceive it differently.


Last edited by square_eyes on Mon Dec 03, 2012 10:13 am; edited 1 time in total
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 03, 2012 4:19 am    Post subject: Reply with quote

The burst is to quickly fill the players buffer and it has to do that by giving it stream data from the past, so the playback is initially from a little time ago (depends on bitrate, burst and prebuffer size) which is where the latency is. When burst is off or 0 then the very latest is given but it may be not enough to start playback in the player, in which case, the player introduces the latency.

The latency is not noticable to typical listeners as they have no reference to identify that sort of difference.

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



Joined: 18 Oct 2011
Posts: 83

PostPosted: Mon Dec 03, 2012 10:04 am    Post subject: Reply with quote

OK thank you that makes a little more sense to me.

I used the below, should this be OK for my relay server application?

<icecast>
<limits>
<clients>10</clients>
<sources>5</sources>
<threadpool>5</threadpool>
<queue-size>102400</queue-size>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65536</burst-size>
</limits>
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 03, 2012 11:09 am    Post subject: Reply with quote

100k is a small amount for the queue, 64k of which is burst, the default is 512k

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



Joined: 18 Oct 2011
Posts: 83

PostPosted: Sun Dec 16, 2012 6:51 pm    Post subject: Reply with quote

So 512000 queue and 64000 burst?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Dec 16, 2012 10:56 pm    Post subject: Reply with quote

those values are more sensible.

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