rafael2k / darkice

DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server. This is the official development repository of Darkice.
http://www.darkice.org
200 stars 47 forks source link

Sound jump or go back randomly #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. listen to streaming.urbana.com.uy/urbana
2. darkice 1.0
3. icecast 2.3.2

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Darkice 1.0. Centos 6 and centos 5

Please provide any additional information below.

Hi, I have a pc with darkice 1.0 and icecast 2.3.2
My darkice is encoding to a server in USA streaming.urbana.com.uy and to a 
loclhost icecast 2.3.2
We connect to the localhost icecast to listen to the streaming instead of 
connect to the Internet streaming.
We notice that the streaming local and in Internet jumps all the time. But this 
happens randomly, not all the time.

I dont know why LOCAL do that behavior!! the pc only do that.
here goes my darkice conf:

# this section describes general aspects of the live streaming session
[general]
duration        = 0         # duration of encoding, in seconds. 0 means forever
bufferSecs      = 5         # size of internal slip buffer, in seconds
reconnect       = yes

# this section describes the audio input that will be streamed
[input]
device          = iec958:CARD=AudioPCI,DEV=0     # OSS DSP soundcard device for 
the audio input
#device          = hw:1,4     # OSS DSP soundcard device for the audio input
sampleRate      = 44100    # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 2         # channels. 1 = mono, 2 = stereo

[icecast2-0]
format          = mp3
bitrateMode     = cbr       # constant bit rate
bitrate         = 96       # bitrate of the mp3 stream sent to the serve
sampleRate      = 44100
quality         = 0.5         # encoding quality
channel         = 2
server          = 50.97.68.243
port            = 80 # port of the IceCast server, usually 8000
password        = xxx    # source password to the IceCast server
mountPoint      = urbana    # mount point of this stream on the IceCast server
name            = Urbana FM 92.5 - Montevideo - Uruguay           # name of the 
stream
description     = Trendy Music + Design Radio         # description of the 
stream
url             = http://www.urbana.com.uy                      # URL related 
to the stream
genre           = Electro - Pop - Rock - Indie   # genre of the stream
public          = yes       # advertise this stream?

[icecast2-1]
format          = mp3
bitrateMode     = cbr       # constant bit rate
bitrate         = 96       # bitrate of the mp3 stream sent to the serve
sampleRate      = 44100
quality         = 0.5         # encoding quality
channel         = 2
server          = 192.168.0.19
port            = 88 # port of the IceCast server, usually 8000
password        = xxxx    # source password to the IceCast server
mountPoint      = urbana    # mount point of this stream on the IceCast server
name            = Urbana FM 92.5 - Montevideo - Uruguay           # name of the 
stream
description     = Trendy Music + Design Radio         # description of the 
stream
url             = http://www.urbana.com.uy                      # URL related 
to the stream
genre           = Electro - Pop - Rock - Indie   # genre of the stream
public          = yes       # advertise this stream?

and here is part of icecast

<icecast>
    <limits>
        <clients>580</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>128000</burst-size>
    </limits>
   <listen-socket>
        <port>88</port>
        <bind-address>192.168.0.19</bind-address>
    </listen-socket>

Any idea?
I try changing the ISP (we have 3) and the same. We have enough bandwidth
Thanks

Original issue reported on code.google.com by nico...@gmail.com on 24 Jul 2012 at 6:27

GoogleCodeExporter commented 9 years ago
LAME 32bits version 3.98.4 
Here I attach how it sounds when it is bad
The streaming starts ok and then crash doing that.
When is doing that, my winamp player show buffering. How it can buffer in a LAN?

Original comment by nico...@gmail.com on 24 Jul 2012 at 6:47

Attachments:

GoogleCodeExporter commented 9 years ago
more conf of my icecast
  <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>

Loglevel in debug can cause this?

Original comment by nico...@gmail.com on 24 Jul 2012 at 6:59

GoogleCodeExporter commented 9 years ago
26958 root      -4   0 32656 2924 2092 S 10.0  1.2   3:12.45 darkice
24047 ice       20   0 10132 1924 1240 S  0.3  0.8   0:26.11 icecast
    1 root      20   0  2848 1180 1024 S  0.0  0.5   0:01.23 init

Original comment by nico...@gmail.com on 24 Jul 2012 at 7:11

GoogleCodeExporter commented 9 years ago
24-Jul-2012 17:05:57 BufferedSink, remaining: 4618
24-Jul-2012 17:05:57 BufferedSink, new peak: 57134
24-Jul-2012 17:05:57 BufferedSink, remaining: 4306
24-Jul-2012 17:05:57 BufferedSink, new peak: 57466
24-Jul-2012 17:05:57 BufferedSink, remaining: 3974
24-Jul-2012 17:05:57 BufferedSink, new peak: 57772
24-Jul-2012 17:05:57 BufferedSink, remaining: 3668
24-Jul-2012 17:05:57 BufferedSink, new peak: 58096
24-Jul-2012 17:05:57 BufferedSink, remaining: 3344
24-Jul-2012 17:05:57 BufferedSink, new peak: 58393
24-Jul-2012 17:05:57 BufferedSink, remaining: 3047
24-Jul-2012 17:05:57 BufferedSink, new peak: 58709
24-Jul-2012 17:05:57 BufferedSink, remaining: 2731
24-Jul-2012 17:05:57 BufferedSink, new peak: 59019
24-Jul-2012 17:05:57 BufferedSink, remaining: 2421
24-Jul-2012 17:05:57 BufferedSink, new peak: 59474
24-Jul-2012 17:05:57 BufferedSink, remaining: 1966
24-Jul-2012 17:05:57 BufferedSink, new peak: 59800
24-Jul-2012 17:05:57 BufferedSink, remaining: 1640
24-Jul-2012 17:05:57 BufferedSink, new peak: 60260
24-Jul-2012 17:05:57 BufferedSink, remaining: 1180
24-Jul-2012 17:05:57 BufferedSink, new peak: 60612
24-Jul-2012 17:05:57 BufferedSink, remaining: 828
24-Jul-2012 17:05:57 BufferedSink, new peak: 60954
24-Jul-2012 17:05:57 BufferedSink, remaining: 486
24-Jul-2012 17:05:57 BufferedSink, new peak: 61268
24-Jul-2012 17:05:57 BufferedSink, remaining: 172
24-Jul-2012 17:05:57 BufferedSink, new peak: 61439
24-Jul-2012 17:05:57 BufferedSink, remaining: 1
24-Jul-2012 17:06:00 Buffer overrun!
24-Jul-2012 17:06:07 Buffer overrun!
24-Jul-2012 17:06:14 Buffer overrun!
24-Jul-2012 17:06:22 Buffer overrun!
24-Jul-2012 17:06:31 Buffer overrun!
24-Jul-2012 17:06:39 Buffer overrun!
24-Jul-2012 17:06:48 Buffer overrun!
24-Jul-2012 17:07:07 Buffer overrun!
24-Jul-2012 17:07:07 Exception caught in BufferedSink :: write3

24-Jul-2012 17:07:07 MultiThreadedConnector :: sinkThread reconnecting  1
24-Jul-2012 17:07:07 couldn't write all from encoder to underlying sink 1126
24-Jul-2012 17:07:09 set lame mode 1
24-Jul-2012 17:07:09 set lame channels 2
24-Jul-2012 17:07:09 set lame in sample rate 44100
24-Jul-2012 17:07:09 set lame out sample rate 44100
24-Jul-2012 17:07:09 set lame bit rate 96
24-Jul-2012 17:07:09 set lame quality 5
24-Jul-2012 17:07:09 set lame lowpass frequency 0
24-Jul-2012 17:07:09 set lame highpass frequency 0
24-Jul-2012 17:07:09 set lame psycho acoustic model 1
24-Jul-2012 17:07:09 set lame error protection 1
LAME 3.99.5 32bits (http://lame.sf.net)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 15115 Hz - 15648 Hz
24-Jul-2012 17:07:09 Buffer overrun!
24-Jul-2012 17:07:16 Buffer overrun!
24-Jul-2012 17:07:26 Buffer overrun!
24-Jul-2012 17:07:34 Buffer overrun!
24-Jul-2012 17:07:44 Buffer overrun!
24-Jul-2012 17:07:52 Buffer overrun!
24-Jul-2012 17:08:03 Buffer overrun!
24-Jul-2012 17:08:14 Buffer overrun!
24-Jul-2012 17:08:24 Buffer overrun!
24-Jul-2012 17:08:36 Buffer overrun!
24-Jul-2012 17:08:45 Buffer overrun!
24-Jul-2012 17:08:51 Buffer overrun!
24-Jul-2012 17:09:00 Buffer overrun!
24-Jul-2012 17:09:14 Buffer overrun!
24-Jul-2012 17:09:23 Buffer overrun!
24-Jul-2012 17:09:30 Buffer overrun!
24-Jul-2012 17:09:39 Buffer overrun!
24-Jul-2012 17:09:49 Buffer overrun!
24-Jul-2012 17:09:56 Buffer overrun!
24-Jul-2012 17:10:11 Buffer overrun!
24-Jul-2012 17:10:21 Buffer overrun!
24-Jul-2012 17:10:30 Buffer overrun!
24-Jul-2012 17:10:39 Buffer overrun!
24-Jul-2012 17:10:47 Buffer overrun!
24-Jul-2012 17:10:53 Buffer overrun!
24-Jul-2012 17:11:01 Buffer overrun!
24-Jul-2012 17:11:07 Buffer overrun!
24-Jul-2012 17:11:13 Buffer overrun!
24-Jul-2012 17:11:19 Buffer overrun!
24-Jul-2012 17:11:26 Buffer overrun!
24-Jul-2012 17:11:32 Buffer overrun!
24-Jul-2012 17:11:38 Buffer overrun!
24-Jul-2012 17:11:44 Buffer overrun!
24-Jul-2012 17:11:50 Buffer overrun!
24-Jul-2012 17:11:56 Buffer overrun!
24-Jul-2012 17:12:02 Buffer overrun!
24-Jul-2012 17:12:08 Buffer overrun!
24-Jul-2012 17:12:15 Buffer overrun!
24-Jul-2012 17:12:20 Buffer overrun!
24-Jul-2012 17:12:26 Buffer overrun!
24-Jul-2012 17:12:32 Buffer overrun!
24-Jul-2012 17:12:38 Buffer overrun!
24-Jul-2012 17:12:44 Buffer overrun!
24-Jul-2012 17:12:50 Buffer overrun!
24-Jul-2012 17:12:56 Buffer overrun!
24-Jul-2012 17:13:02 Buffer overrun!
24-Jul-2012 17:13:08 Buffer overrun!
24-Jul-2012 17:13:14 Buffer overrun!
24-Jul-2012 17:13:20 Buffer overrun!
24-Jul-2012 17:13:26 Buffer overrun!
24-Jul-2012 17:13:32 Buffer overrun!
24-Jul-2012 17:13:38 Buffer overrun!
24-Jul-2012 17:13:44 Buffer overrun!
24-Jul-2012 17:13:50 Buffer overrun!
24-Jul-2012 17:13:56 Buffer overrun!
24-Jul-2012 17:14:02 Buffer overrun!
24-Jul-2012 17:14:08 Buffer overrun!
24-Jul-2012 17:14:14 Buffer overrun!
24-Jul-2012 17:14:19 Buffer overrun!
24-Jul-2012 17:14:25 Buffer overrun!
24-Jul-2012 17:14:31 Buffer overrun!
24-Jul-2012 17:14:37 Buffer overrun!
24-Jul-2012 17:14:43 Buffer overrun!
24-Jul-2012 17:14:49 Buffer overrun!
24-Jul-2012 17:14:55 Buffer overrun!
24-Jul-2012 17:15:01 Buffer overrun!
24-Jul-2012 17:15:07 Buffer overrun!
24-Jul-2012 17:15:13 Buffer overrun!
24-Jul-2012 17:15:19 Buffer overrun!
24-Jul-2012 17:15:25 Buffer overrun!
24-Jul-2012 17:15:31 Buffer overrun!
24-Jul-2012 17:15:37 Buffer overrun!
24-Jul-2012 17:15:43 Buffer overrun!
24-Jul-2012 17:15:49 Buffer overrun!
24-Jul-2012 17:15:55 Buffer overrun!
24-Jul-2012 17:16:01 Buffer overrun!
24-Jul-2012 17:16:07 Buffer overrun!
24-Jul-2012 17:16:13 Buffer overrun!
24-Jul-2012 17:16:18 Buffer overrun!
24-Jul-2012 17:16:24 Buffer overrun!
24-Jul-2012 17:16:30 Buffer overrun!
24-Jul-2012 17:16:36 Buffer overrun!
24-Jul-2012 17:16:42 Buffer overrun!
24-Jul-2012 17:16:48 Buffer overrun!
24-Jul-2012 17:16:54 Buffer overrun!
24-Jul-2012 17:17:00 Buffer overrun!
24-Jul-2012 17:17:06 Buffer overrun!
24-Jul-2012 17:17:12 Buffer overrun!
24-Jul-2012 17:17:18 Buffer overrun!
24-Jul-2012 17:17:24 Buffer overrun!
24-Jul-2012 17:17:30 Buffer overrun!
24-Jul-2012 17:17:36 Buffer overrun!
24-Jul-2012 17:17:42 Buffer overrun!
24-Jul-2012 17:17:48 Buffer overrun!
24-Jul-2012 17:17:54 Buffer overrun!
24-Jul-2012 17:18:00 Buffer overrun!
24-Jul-2012 17:18:06 Buffer overrun!
24-Jul-2012 17:18:12 Buffer overrun!
24-Jul-2012 17:18:18 Buffer overrun!
24-Jul-2012 17:18:24 Buffer overrun!
24-Jul-2012 17:18:30 Buffer overrun!
24-Jul-2012 17:18:36 Buffer overrun!
24-Jul-2012 17:18:42 Buffer overrun!
24-Jul-2012 17:18:48 Buffer overrun!
24-Jul-2012 17:18:53 Buffer overrun!
24-Jul-2012 17:18:59 Buffer overrun!
24-Jul-2012 17:19:05 Buffer overrun!
24-Jul-2012 17:19:11 Buffer overrun!
24-Jul-2012 17:19:17 Buffer overrun!
24-Jul-2012 17:19:23 Buffer overrun!
24-Jul-2012 17:19:29 Buffer overrun!
24-Jul-2012 17:19:35 Buffer overrun!
24-Jul-2012 17:19:41 Buffer overrun!
24-Jul-2012 17:19:47 Buffer overrun!
24-Jul-2012 17:19:52 Buffer overrun!
24-Jul-2012 17:19:58 Buffer overrun!
24-Jul-2012 17:20:04 Buffer overrun!
24-Jul-2012 17:20:10 Buffer overrun!
24-Jul-2012 17:20:16 Buffer overrun!
24-Jul-2012 17:20:22 Buffer overrun!
24-Jul-2012 17:20:28 Buffer overrun!
24-Jul-2012 17:20:34 Buffer overrun!
24-Jul-2012 17:20:40 Buffer overrun!
24-Jul-2012 17:20:46 Buffer overrun!
24-Jul-2012 17:20:52 Buffer overrun!
24-Jul-2012 17:20:58 Buffer overrun!
24-Jul-2012 17:21:04 Buffer overrun!
24-Jul-2012 17:21:10 Buffer overrun!
24-Jul-2012 17:21:16 Buffer overrun!
24-Jul-2012 17:21:21 Buffer overrun!
24-Jul-2012 17:21:27 Buffer overrun!
24-Jul-2012 17:21:33 Buffer overrun!
24-Jul-2012 17:21:39 Buffer overrun!
24-Jul-2012 17:21:45 Buffer overrun!
24-Jul-2012 17:21:51 Buffer overrun!
24-Jul-2012 17:21:57 Buffer overrun!
24-Jul-2012 17:22:03 Buffer overrun!
24-Jul-2012 17:22:09 Buffer overrun!
24-Jul-2012 17:22:15 Buffer overrun!
24-Jul-2012 17:22:21 Buffer overrun!
24-Jul-2012 17:22:27 Buffer overrun!
24-Jul-2012 17:22:33 Buffer overrun!
24-Jul-2012 17:22:39 Buffer overrun!
24-Jul-2012 17:22:45 Buffer overrun!
24-Jul-2012 17:22:50 Buffer overrun!
24-Jul-2012 17:22:56 Buffer overrun!
24-Jul-2012 17:23:02 Buffer overrun!
24-Jul-2012 17:23:08 Buffer overrun!
24-Jul-2012 17:23:14 Buffer overrun!
24-Jul-2012 17:23:20 Buffer overrun!
24-Jul-2012 17:23:26 Buffer overrun!
24-Jul-2012 17:23:32 Buffer overrun!
24-Jul-2012 17:23:38 Buffer overrun!
24-Jul-2012 17:23:44 Buffer overrun!
24-Jul-2012 17:23:50 Buffer overrun!
24-Jul-2012 17:23:56 Buffer overrun!
24-Jul-2012 17:24:02 Buffer overrun!
24-Jul-2012 17:24:08 Buffer overrun!
24-Jul-2012 17:24:14 Buffer overrun!
24-Jul-2012 17:24:20 Buffer overrun!
24-Jul-2012 17:24:26 Buffer overrun!
24-Jul-2012 17:24:32 Buffer overrun!
24-Jul-2012 17:24:38 Buffer overrun!
24-Jul-2012 17:24:44 Buffer overrun!
24-Jul-2012 17:24:50 Buffer overrun!
24-Jul-2012 17:24:56 Buffer overrun!
24-Jul-2012 17:25:01 Buffer overrun!
24-Jul-2012 17:25:07 Buffer overrun!
24-Jul-2012 17:25:13 Buffer overrun!
24-Jul-2012 17:25:19 Buffer overrun!
24-Jul-2012 17:25:25 Buffer overrun!
24-Jul-2012 17:25:31 Buffer overrun!
24-Jul-2012 17:25:37 Buffer overrun!
24-Jul-2012 17:25:43 Buffer overrun!
24-Jul-2012 17:25:49 Buffer overrun!
24-Jul-2012 17:25:55 Buffer overrun!
24-Jul-2012 17:26:01 Buffer overrun!
24-Jul-2012 17:26:07 Buffer overrun!
24-Jul-2012 17:26:13 Buffer overrun!
24-Jul-2012 17:26:19 Buffer overrun!
24-Jul-2012 17:26:25 Buffer overrun!
24-Jul-2012 17:26:31 Buffer overrun!
24-Jul-2012 17:26:37 Buffer overrun!
24-Jul-2012 17:26:43 Buffer overrun!
24-Jul-2012 17:26:49 Buffer overrun!
24-Jul-2012 17:26:55 Buffer overrun!
24-Jul-2012 17:27:01 Buffer overrun!
24-Jul-2012 17:27:07 Buffer overrun!
24-Jul-2012 17:27:13 Buffer overrun!
24-Jul-2012 17:27:19 Buffer overrun!
24-Jul-2012 17:27:25 Buffer overrun!
24-Jul-2012 17:27:31 Buffer overrun!
24-Jul-2012 17:27:37 Buffer overrun!
24-Jul-2012 17:27:43 Buffer overrun!
24-Jul-2012 17:27:49 Buffer overrun!
24-Jul-2012 17:27:55 Buffer overrun!
24-Jul-2012 17:28:01 Buffer overrun!
24-Jul-2012 17:28:07 Buffer overrun!
24-Jul-2012 17:28:13 Buffer overrun!
24-Jul-2012 17:28:19 Buffer overrun!
24-Jul-2012 17:28:25 Buffer overrun!
24-Jul-2012 17:28:31 Buffer overrun!
24-Jul-2012 17:28:38 Buffer overrun!

24-Jul-2012 17:28:44 Buffer overrun!

Original comment by nico...@gmail.com on 24 Jul 2012 at 8:32

GoogleCodeExporter commented 9 years ago
"Buffered Sink" and "Buffer overrun!" is the problem.  This means there isn't 
enough bandwidth and/or cpu power to encode and upload the stream.

Look at patch r503.  I think it may help with the random jumping... but the 
REAL solution is to get your cpu and/or upload bandwidth fixed.

Original comment by jandafie...@gmail.com on 10 Jan 2013 at 2:29