[darkice] Re: Reduce buffering to maximum

  • From: Guillaume Betous <guillaume.betous@xxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Sun, 8 Jan 2017 12:37:27 +0100

Thanks, this seems to be exactly what I want !

But I can't figure out where in the darkice.cfg I can tell to stream,
instead of dumping to a file. Following different configs found on the Net,
I can't see the difference with mine.

[general]
duration        = 0        # duration of encoding, in seconds. 0 means
forever
bufferSecs      = 10         # size of internal slip buffer, in seconds
reconnect       = yes       # reconnect to the server(s) if disconnected
realtime        = yes       # run the encoder with POSIX realtime priority
rtprio          = 3         # scheduling priority for the realtime threads

[input]
device          = hw:1,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

[icecast2-0]
bitrateMode     = abr       # average bit rate
format          = vorbis    # format of the stream: ogg vorbis
bitrate         = 96        # bitrate of the stream sent to the server
server          = localhost
                            # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = xxx   # source password to the IceCast2 server
mountPoint      = sample96  # mount point of this stream on the IceCast2
server
name            = DarkIce trial
                            # name of the stream
description     = This is only a trial
                            # description of the stream
url             = http://raspberrypi
                            # URL related to the stream
genre           = my own    # genre of the stream
public          = no       # advertise this stream?
localDumpFile    = dump.ogg  # local dump file


gUI

2017-01-08 12:10 GMT+01:00 Edwin van den Oetelaar <
oetelaar.automatisering@xxxxxxxxx>:

The common way to do it:

let darkice send the data as a STREAM (source) to icecast server (running
on the same machine).. (skipping the file stage altogether)
Then just connect to your icecast server as a client and listen without
much delay.

Greetings,
Edwin van den Oetelaar

On Sun, Jan 8, 2017 at 12:04 PM, Guillaume Betous <
guillaume.betous@xxxxxxxxx> wrote:

Hi,

I want to broadcast on my local home network the sound of our TV
satellite receiver, using a respberry pi.

I could make it work with darkice + icecast2 (darkice is dumping the USB
audiocard to a file, and icecast is providing a radio with this file).

I works, but there is a big drawback : when I listen to the radio
immediatly after creating it, I have a few seconds delay (which is OK in my
usecase). But if I listen to the radio say 1mn after creating it... I have
this 1 minute delay !

Is the generated file dump.ogg a kind of circular buffer ? Or is it the
full dump of the sound, which means that it will grow endlessly ?

Thanks for your help !

gUI

--
Pour la santé de votre ordinateur, préférez les logiciels libres.
Lire son mail : http://www.mozilla-europe.org/fr/products/thunderbird/
Browser le web : http://www.mozilla-europe.org/fr/products/firefox/
Suite bureautique : http://www.libreoffice.org/download/





-- 
Pour la santé de votre ordinateur, préférez les logiciels libres.
Lire son mail : http://www.mozilla-europe.org/fr/products/thunderbird/
Browser le web : http://www.mozilla-europe.org/fr/products/firefox/
Suite bureautique : http://www.libreoffice.org/download/

Other related posts: