| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Tue Dec 19, 2006 6:05 pm Post subject: Big buffer on clients side |
|
|
Hey friends,
Problem
I have a big problem.
I'd searched in many forums, contacted many people and so on.
70% of my listeners report me an extreme buffer. Every 5 - 10 seconds the stream buffers.
I'd everything.
Changed IceCast's queue-size to 1,5 MB and so on.
How it works
The source (here: DJ/Moderator) connect to an shoutcast server (it works fine!). streamTranscoderV3 listens on the shoutcast server (Port: 8050) and send it next to the icecast (Port: 8000). Sometimes, streamTranscoder disconnectes, but it reconnects within 0 - 1 second.
So, the signal send to three IceCast Mountpoints (MP3, MP3 & OGG Vorbis).
IceCast shows me after 12 hours runtime too many slow_listeners.
Example: in 12 hours, 50 complete listeners was on IceCast. 45 slow_listener would display.
I was read one thread here, maybe my bandwidth could be strange or something.
I don't find out anymore. My hoster says, its all okay?
Yesterday, I changed the nicelevel of streamTranscoder and IceCast to -2. (renice -2 -p XXXXX)
But it works definitely not
It's not a client sides problem, because if they connect to the shoutcast (Port 8050) it works fine, without buffer
I'll hope, you can help me =)
With best wishes to christmas,
DenniX
Config Files
My IceCast Config file (without comments):
| Quote: |
<icecast>
<limits>
<clients>150</clients>
<sources>5</sources>
<threadpool>5</threadpool>
<queue-size>1572864</queue-size>
<client-timeout>40</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>30</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password>xxxxxxxx</source-password>
<relay-password>xxxxxxxxxx</relay-password>
<admin-user>admin</admin-user>
<admin-password>xxxxxxxxxx</admin-password>
</authentication>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/local/share/icecast</basedir>
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast> |
My streamTranscoder Encoder file (with comments):
| Quote: |
# Destination server details (to where you are encoding). Valid server types : Shoutcast, Icecast, Icecast2
ServerType=Icecast2
Server=localhost
Port=8000
ServerPassword=xxxxxxxxxxxx
ServerMountpoint=/mpr/dsl
# YP (Stream Directory) Settings
ServerPublic=0
ServerIRC=
ServerAIM=
ServerICQ=
ServerStreamURL=http://www.xxxxxxxx.net
ServerName=[DSL Stream]
ServerDescription=[DSL]
ServerGenre=Various
AutomaticReconnectSecs=0
AutoConnect=1
# Output codec selection (Valid selections : MP3, OggVorbis, Ogg FLAC, AAC, AAC Plus)
Encode=MP3
# General settings (non-codec related). Note : NumberChannels = 1 for MONO, 2 for STEREO
BitrateNominal=96
BitrateMin=96
BitrateMax=96
NumberChannels=2
Samplerate=44100
# Ogg Vorbis specific settings. Note: Valid settings for BitrateQuality flag are (Quality, Bitrate Management)
OggQuality=0
OggBitrateQualityFlag=Quality
# LAME specific settings. Note: Setting the low/highpass freq to 0 will disable them.
LameCBRFlag=1
LameQuality=1
LameCopywrite=0
LameOriginal=0
LameStrictISO=0
LameDisableReservior=0
LameVBRMode=vbr_abr
LameLowpassfreq=0
LameHighpassfreq=0
LAMEPreset=0
# AAC (FAAC) specific settings.
AACQuality=100
AACCutoff=
# Save directory for archive streams
SaveDirectory=
# Flag which indicates if we are saving archives
SaveDirectoryFlag=0
# Log Level 1 = LOG_ERROR, 2 = LOG_ERROR+LOG_INFO, 3 = LOG_ERROR+LOG_INFO+LOG_DEBUG
LogLevel=2
# Log File
LogFile=/var/log/streamtrans/streamTranscoder_1
# Save Archives in WAV format
SaveAsWAV=0
# LAME Joint Stereo Flag
LAMEJointStereo=1 |
|
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Dec 19, 2006 8:18 pm Post subject: |
|
|
One friend had made a "buffer list".
He listed all buffers on 18.12.2006:
| Quote: |
15:07 Uhr little
15:09 Uhr little
16:01 Uhr little Change from Playlist to Mod
18:07 Uhr little
18:18 Uhr little
18:28 Uhr little
18:37 Uhr little
18:40 Uhr little between Jingle and Track
19:02 Uhr little Buffer Songchange
19:04 Uhr little
19:05 Uhr little Songchange
19:16 Uhr little
19:19 Uhr little
19:23 Uhr little
19:24 Uhr little
19:28 Uhr little |
Some other have more buffers a day  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Dec 19, 2006 10:08 pm Post subject: |
|
|
If the problem is that many listeners are not getting enough stream data and therefore falling behind in the queue, then that would indicate that the outgoing connections (icecast->listener) are stalling.
Seeing that at least some of your listeners are ok then that would indicate that the incoming stream is ok, so I would check the TCP send window settings on your system. If those are fixed too small then that could cause the stream to throttle to a listener whose latency is large enough.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Dec 21, 2006 1:00 am Post subject: |
|
|
Hey Karl,
thanks for your answer.
What you mean with "so I would check the TCP send window settings on your system."?
The icecast server runs on a linux machine, with 100 Mbps - I think, it'll be enough for 50 - 100 listeners - or? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 27, 2006 6:04 pm Post subject: |
|
|
nobody can help?
I called the hoster and he said, they don't have technical problems or something else. our bandwidth is 100 Mbps and isn't under-worked  |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 27, 2006 8:21 pm Post subject: |
|
|
| Quote: |
Sometimes, streamTranscoder disconnectes, but it reconnects within 0 - 1 second.
So, the signal send to three IceCast Mountpoints (MP3, MP3 & OGG Vorbis). |
i think your problem lies from source, try just encoding to just one mount from your source and see if that problem occurs. If your host says it has no problems in there end, try reducing the number of users listening and start increasing one by one. I am not a linux expert and barely know abt it but lets try to pinpoint the main issue here
cheers  |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 27, 2006 9:41 pm Post subject: |
|
|
ok, I restarted streamTranscoder with only 2 encoders (dsl: 96 kbps, isdn: 48 kbps). I will report you tomorrow how many slow_listeners there are.
If there are 0 on both mountpoints you're my god *lol* |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 27, 2006 11:07 pm Post subject: |
|
|
OK I don't wait longer...
after this short time we have 7 slow_listeners on dsl and 2 slow_listeners on isdn. the listeners was between 10 to 40 this evening.
Where is the problem? This slow_listener was displayed after a "dj change". |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Dec 28, 2006 1:41 am Post subject: |
|
|
slow listeners is a count of the listeners that are at least queue size bytes behind and have therefore been dropped. Considering that your queue size is 1.5Meg and the burst is 64k, then those listeners just cannot maintain that stream (of 96k, if I understand you correctly).
If you are absolutely sure that CPU is not an issue and that the bandwidth is not max'd out (or having errors) then it's just down to TCP throttling. You can try to identify the listeners having the problems from the logs, and get them to runs tests like ping or download a large file from webroot to test speed.
karl. |
|
| 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
|