jacksonlcrews / darkice

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

unexplained interruption and reconnection #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start darkice:
/usr/bin/darkice -v10 -c /etc/darkice.cfg 2>&1 >> /var/log/darkice.log &

Part of log, attach full log:

27-Jul-2011 14:15:18 BufferedSink, new peak: 113624
27-Jul-2011 14:15:18 BufferedSink, remaining: 869416
27-Jul-2011 14:15:18 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:18 couldn't write all from encoder to underlying sink 827
27-Jul-2011 14:15:20 Buffer overrun!
27-Jul-2011 14:15:20 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:21 Buffer overrun!
27-Jul-2011 14:15:21 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:23 Buffer overrun!
27-Jul-2011 14:15:23 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:25 Buffer overrun!
27-Jul-2011 14:15:25 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:26 Buffer overrun!
27-Jul-2011 14:15:26 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:29 Buffer overrun!
27-Jul-2011 14:15:29 MultiThreadedConnector :: sinkThread reconnecting  0
27-Jul-2011 14:15:31 set lame mode 1
27-Jul-2011 14:15:31 set lame channels 2
27-Jul-2011 14:15:31 set lame in sample rate 48000
27-Jul-2011 14:15:31 set lame out sample rate 44100
27-Jul-2011 14:15:31 set lame bit rate 96
27-Jul-2011 14:15:31 set lame quality 3
27-Jul-2011 14:15:31 set lame lowpass frequency 0
27-Jul-2011 14:15:31 set lame highpass frequency 0
27-Jul-2011 14:15:31 set lame psycho acoustic model 1
27-Jul-2011 14:15:31 set lame error protection 1
27-Jul-2011 14:15:31 Buffer overrun!

What version of the product are you using? On what operating system?

DarkIce 1.0.1 

Debian Squeeze

Line Input to mp3 streaming

Please provide any additional information below.

root@encoder:~# cat /etc/darkice.cfg
# 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      = 80         # size of internal slip buffer, in seconds
reconnect       = yes       # reconnect to the server(s) if disconnected
#realtime        = no       # run the encoder with POSIX realtime priority
#rtprio          = 3         # scheduling priority for the realtime threads

# this section describes the audio input that will be streamed
[input]
device          = hw:0,0 # OSS DSP soundcard device for the audio input
sampleRate      = 48000     # 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 an IceCast2 server
# there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
# these can be mixed with [icecast-x] and [shoutcast-x] sections
[icecast2-0]
bitrateMode     = cbr       # average bit rate
format          = mp3    # format of the stream: ogg vorbis
bitrate         = 96      # bitrate of the stream sent to the server
server          = 72.44.93.89
quality     = 0.7
sampleRate  = 44100
port            = 8000      # port of the IceCast2 server, usually 8000
password        = XXXXXXX    # source password to the IceCast2 server
mountPoint      = latribu.mp3  # mount point of this stream on the IceCast2 
server
name            = FM La Tribu 88.7mhz   # name of the stream
description     = Powerd by LaTribuDigital 
url             = http://fmlatribu.com
genre           = BuenosAiresArgentina    # genre of the stream
public          = yes       # advertise this stream?

Original issue reported on code.google.com by mat...@decoder.com.ar on 27 Jul 2011 at 5:49

Attachments:

GoogleCodeExporter commented 9 years ago
and this is the "log" of icecast server at same time:

[2011-07-27  12:05:18] INFO source/send_to_listener Client 461616 
(190.244.4.193) has fallen too far behind, removing
[2011-07-27  12:05:18] INFO source/source_main listener count on /latribu.mp3 
now 31
[2011-07-27  12:06:43] INFO source/source_main listener count on /latribu.mp3 
now 32
[2011-07-27  12:07:40] INFO source/source_main listener count on /latribu.mp3 
now 31
[2011-07-27  12:07:45] INFO source/source_main listener count on /latribu.mp3 
now 32
[2011-07-27  12:09:52] INFO source/source_main listener count on /latribu.mp3 
now 31
[2011-07-27  12:10:17] INFO source/source_main listener count on /latribu.mp3 
now 32
[2011-07-27  12:12:07] INFO source/source_main listener count on /latribu.mp3 
now 33
[2011-07-27  12:13:15] WARN source/get_next_buffer Disconnecting source due to 
socket timeout
[2011-07-27  12:13:15] INFO source/source_shutdown Source "/latribu.mp3" exiting
[2011-07-27  12:13:16] INFO fserve/fserve_client_create checking for file 
/latribu.mp3 (/usr/share/icecast2/web/latribu.mp3)
[2011-07-27  12:13:16] WARN fserve/fserve_client_create req for file 
"/usr/share/icecast2/web/latribu.mp3" No such file or directory
[2011-07-27  12:13:17] INFO fserve/fserve_client_create checking for file 
/latribu.mp3 (/usr/share/icecast2/web/latribu.mp3)
[2011-07-27  12:13:17] WARN fserve/fserve_client_create req for file 
"/usr/share/icecast2/web/latribu.mp3" No such file or directory
[2011-07-27  12:13:18] INFO fserve/fserve_client_create checking for file 
/latribu.mp3 (/usr/share/icecast2/web/latribu.mp3)
[2011-07-27  12:13:18] WARN fserve/fserve_client_create req for file 
"/usr/share/icecast2/web/latribu.mp3" No such file or directory
[2011-07-27  12:13:25] INFO fserve/fserve_client_create checking for file 
/latribu.mp3 (/usr/share/icecast2/web/latribu.mp3)
[2011-07-27  12:13:25] WARN fserve/fserve_client_create req for file 
"/usr/share/icecast2/web/latribu.mp3" No such file or directory
[2011-07-27  12:13:26] INFO connection/_handle_source_request Source logging in 
at mountpoint "/latribu.mp3"
[2011-07-27  12:13:26] INFO source/get_next_buffer End of Stream /latribu.mp3
[2011-07-27  12:13:26] INFO source/source_main listener count on /latribu.mp3 
now 0
[2011-07-27  12:13:26] INFO source/source_shutdown Source "/latribu.mp3" exiting
[2011-07-27  12:13:27] INFO connection/_handle_source_request Source logging in 
at mountpoint "/latribu.mp3"
[2011-07-27  12:13:28] INFO source/source_main listener count on /latribu.mp3 
now 0
[2011-07-27  12:13:28] INFO source/source_main listener count on /latribu.mp3 
now 1
[2011-07-27  12:13:33] INFO source/source_main listener count on /latribu.mp3 
now 2
[2011-07-27  12:13:37] INFO source/source_main listener count on /latribu.mp3 
now 3
[2011-07-27  12:13:54] INFO source/source_main listener count on /latribu.mp3 
now 4
[2011-07-27  12:14:45] INFO source/source_main listener count on /latribu.mp3 
now 5

Original comment by mat...@decoder.com.ar on 28 Jul 2011 at 12:34