jacksonlcrews / darkice

Automatically exported from code.google.com/p/darkice
0 stars 0 forks source link

Buffer overrun! Error #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the config file as below on Ubuntu 10.10 running darkice1.0

When running darkice under sudo it just repeatedly returns a "buffer overrun!" 
line on the command line.

My config file is as:

# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details

# 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       # reconnect to the server(s) if disconnected

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

# this section describes a streaming connection to a ShoutCast server
# there may be up to 8 of these sections, named [shoutcast-0] ... [shoutcast-7]
# these can be mixed with [icecast-x] and [icecast2-x] sections
[shoutcast-0]
bitrateMode     = cbr       # variable bit rate mode
bitrate     = 64
quality         = 0.8       # encoding quality
server          = 83.170.104.91
                            # host name of the server
port            = 30462      # source port of the ShoutCast server, usually 8001
password        = xxxxxxxxx    # source password to the ShoutCast server

Original issue reported on code.google.com by gavin.sh...@gmail.com on 12 Jul 2011 at 4:18

GoogleCodeExporter commented 9 years ago
May I suggest a list of error outputs from Darkice so we all know where to look 
when things go wrong????

Original comment by gavin.sh...@gmail.com on 14 Jul 2011 at 9:36

GoogleCodeExporter commented 9 years ago
I just started using DarkIce and was seeing the buffer overrun error also.  I 
tried 3 different machines, and platforms including Fedora 10 and Fedora 13.  
After a bit of sniffing around the code, I figured maybe the hw buffer should 
be bigger.  I increased it to 5 seconds as below, and have seen no overruns in 
the first 20+ minutes of operation.  The 1 second value may be OK for low 
sample rates, but I'm running 44.1 kHz, 16-bit stereo.  Might be good to give 
access to this param in the config file.

darkice-1.0:

1> diff AlsaDspSource.cpp.orig AlsaDspSource.cpp
85c85
<     bufferTime    = 1000000; // Do 1s buffering
---
>     bufferTime    = 5000000; // Do 5 sec buffering

Original comment by d...@opost.com on 5 Sep 2011 at 4:41

GoogleCodeExporter commented 9 years ago
I'm running this "patch" - seems to clear up the error for me. I would like to 
see it get changed in the source to 5 sec by default or better yet added as a 
config file option.

I running 5 icecast feeds and the current (last weekish) svn co snapshot and 
would get the buffer errors non-stop.

Original comment by countryr...@gmail.com on 11 Apr 2012 at 2:44

GoogleCodeExporter commented 9 years ago
Upon further testing this seems to only make the problem worse. I only notice 
more errors after darkice has been running some time. Getting more "buffer 
overrun" errors and "Exception caught in BufferedSink ... couldn't write all 
from encoder to underlying sink" now which I didn't get before.  Methinks this 
isn't an appropriate fix then.

Original comment by countryr...@gmail.com on 12 Apr 2012 at 2:44