List Info

Thread: Darkice Runs but does not Encode.




Darkice Runs but does not Encode.
user name
2006-11-23 11:56:05

Flow completely quiet streaming.

Icecast 2.3.1 + DarkIce 0.17.1  is supposed to recover all what passes by the sound card, but
that does not go me at home.

I thought that it was my sound card its AC97 integrated which posed problem. Thus I have to buy a sound card  M-audio Revolution51 ice1724  VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller  

I use Gentoo x86-64.

Files  asound.conf ou .asoundrc  with darkice is necessary or just use /dev/dsp?

it is what it is to better use darkice with jack?

Here my files: "/etc/modules.d/alsa"  ,"/etc/asound.conf ", "/etc/darkice.cfg"

cat /etc/modules.d/alsa

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/
# alsa-modules.conf-rc ,v 1.1 2003/08/05 21:07:55 johnm Exp $


# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##  ALSA portion
alias snd-card-0 snd-ice1724
##  OSS/Free portion
alias sound-slot-0 snd-card-0

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1


cat  ; /etc/asound.conf 
pcm.ice1724 {
    type hw
     ;   card 0
       ; }

     ;   ctl.ice1724 {
       ;     type hw
     ;           card 0
       ;         }

   ;           ;  pcm.!default {
       ;           ;  type plug
 ;           ;           ; slave.pcm "spdif"
        ;           ;     }


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      = 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     ;     = /dev/audio # OSS DSP soundcard device for the audio input
#device       ;   = /dev/dsp  # OSS DSP soundcard device for the audio input
device         ; = plughw:0  # OSS DSP soundcard device for the audio input
sampleRate      = 48000 ;  #  sample rate in Hz. try 11025, 22050 or 44100
#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

# this section describes a streaming connection to an IceCast server
# there may be up to 8 of these sections, named [icecast-0] ... [icecast-7]
# these can be mixed with [icecast2-x] and [shoutcast-x] sections
# 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 # en bitrate constant
format = mp3 # bon on sait ce n'est pas libre
bitrate = 128 # et voila donc pourquoi on limite la qualité
server        ;  = localhost
  ;           ;           ;    # host name of the server
port         ;   = 80      # port of the IceCast2 server, usually 8000
password       ; = **************   # source password to the IceCast2 server
mountPoint      = sample96.mp3  # 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://www.yourserver.com
          ;           ;       # URL related to the stream
genre         ;  = my own    # genre of the stream
public       ;   = no       ; # advertise this stream?

# 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

[icecast2-1]
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         ;   = 80    # port of the IceCast2 server, usually 8000
password       ; = ***********    # 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://www.yourserver.com
          ;           ;       # URL related to the stream
genre         ;  = my own    # genre of the stream
#public     ;     = yes     ;  # advertise this stream?


cat /etc/icecast2/icecast.xml
<icecast>
 ; &nbsp; <limits>
   ; &nbsp; &nbsp; <clients>100<;/clients&gt;
 &nbsp; &nbsp;   ; <sources>2</sources>
 &nbsp; &nbsp; &nbsp;  <threadpool>5&lt;/threadpool>
&nbsp; &nbsp; &nbsp; &nbsp; <queue-size>524288</queue-size>
 &nbsp; &nbsp; &nbsp;  <client-timeout>;30</client-timeout>
   ; &nbsp; &nbsp; <header-timeout>;15</header-timeout>
   ; &nbsp; &nbsp; <source-timeout>;10</source-timeout>
   ; &nbsp;  
&nbsp; &nbsp; &nbsp;   <burst-on-connect&gt;1</burst-on-connect>

&nbsp;   ; &nbsp;  <burst-size>65535</burst-size>
  ;  </limits>

&nbsp; &nbsp; <authentication>;
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; <source-password&gt;hackme<;/source-password>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   <relay-password>;hackme</relay-password>
&nbsp;   ; &nbsp; &nbsp; &nbsp; <admin-user>admin</admin-user>
  ; &nbsp; &nbsp;  <admin-password>;***********</admin-password&gt;
 &nbsp;  </authentication&gt;

 
  ;  <hostname>localhost</hostname>

 &nbsp; &nbsp;  <listen-socket>
 &nbsp; &nbsp; &nbsp;  <port&gt;80</port>
&nbsp; &nbsp; &nbsp; </listen-socket>;
   
&nbsp;   
&nbsp;   
&nbsp; &nbsp; <fileserve>1<;/fileserve>

 ; &nbsp; &nbsp; <paths&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <basedir>/usr/share/icecast</basedir>

&nbsp; &nbsp;   ; &nbsp; &nbsp;  <logdir>/var/log/icecast&lt;/logdir&gt;
 &nbsp; &nbsp;   ; <webroot>/usr/share/icecast/web</webroot>
  ; &nbsp; &nbsp;  <adminroot>/usr/share/icecast/admin&lt;/adminroot>
 ; &nbsp;   
&nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp;    
&nbsp; &nbsp; &nbsp;   <alias source=&quot;/" dest=";/status.xsl"/>;
 &nbsp;  </paths>

 ; &nbsp; <logging>
 ; &nbsp; &nbsp; &nbsp; <accesslog>access.log</accesslog&gt;
 &nbsp; &nbsp;   ; <errorlog> error.log</errorlog>
 &nbsp; &nbsp; &nbsp; <loglevel>4</loglevel&gt; <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
&nbsp; &nbsp; &nbsp;   <logsize>10000&lt;/logsize> <!-- Max size of a logfile -->
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; <!-- <logarchive>1&lt;/logarchive> -->
&nbsp; &nbsp; </logging>

&nbsp; &nbsp; <security>
&nbsp; &nbsp; &nbsp; &nbsp; <chroot>0</chroot>
&nbsp;   ; &nbsp;  <changeowner>
&nbsp;   ; &nbsp; &nbsp; &nbsp;  <user&gt;icecast&lt;/user>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; <group&gt;nogroup&lt;/group&gt;
 &nbsp;   ; &nbsp; </changeowner>
  ;  </security>
<;/icecast&gt;


Thank you.

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )