Article View: alt.pl.comp.os.linux.debian
Article #17704Streaming audio ices2/icecast2 ... [Dlugie]
From: Avatar
Date: Tue, 30 Sep 2003 17:36
Date: Tue, 30 Sep 2003 17:36
147 lines
5362 bytes
5362 bytes
Witam
Czy ktos z grupowiczow moze konfigurowal i zmusil do dzialania te 2 pakiety?
Chce zrobic streaming z wejscia line-in w karcie dzwiekowej ktora jest w
serverze, na serverze jest Debian 2.4.18 z pakietami unstable, dalem:
# apt-get install ices2 icecast2
zainstalowal oba, udalo mi sie skonfigurowac ices2 tak aby pobieral dzwiek z
karty muzycznej (modul oss) i encodowal a nastepnia podlaczal sie do servera
stream -> icecast2
---------------------start plik ices2.xml-----------------
<?xml version="1.0"?>
<ices>
<background>0</background>
<logpath>/var/log</logpath>
<logfile>ices.log</logfile>
<loglevel>4</loglevel>
<consolelog>1</consolelog>
<stream>
<metadata>
<name>Radio</name>
<genre>Muzyka</genre>
<description>Test dzialania radia</description>
</metadata>
<input>
<module>oss</module>
<param name="device">/dev/dsp</param>
<param name="rate">44100</param>
<param name="channels">2</param>
<param name="metadata">0</param>
</input>
<instance>
<hostname>localhost</hostname>
<port>8000</port>
<password>test</password>
<mount>/test.ogg</mount>
<reconnectdelay>2</reconnectdelay>
<reconnectattempts>5</reconnectattempts>
<maxqueuelength>80</maxqueuelength>
<encode>
<nominal-bitrate>64000</nominal-bitrate>
<samplerate>44100</samplerate>
<channels>2</channels>
<quality>1</quality>
</encode>
</instance>
</stream>
</ices>
---------------------end plik ices2.xml-----------------
po odpaleniu icecast2 a nasptenie ices2, w logach ices2 nie ma zadnych
bledow, z tym ze chyba mam problem z tym icecast2 bo niby poprawnie
konfiguruje go a winamp3 z innego komputera nie moze sie polaczyc z serverem
stream...
---------------------start plik icecast2.xml-----------------
<icecast>
<location>Not Currently Used</location>
<admin>Not Currently Used</admin>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>102400</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
</limits>
<authentication>
<source-password>test</source-password>
<relay-password>test</relay-password>
<admin-user>admin</admin-user>
<admin-password>test</admin-password>
</authentication>
<hostname>localhost</hostname>
<port>8000</port>
<bind-address>127.0.0.1</bind-address>
<mount>
<mount-name>/test.ogg</mount-name>
<username>othersource</username>
<password>test</password>
<max-listeners>1</max-listeners>
<fallback-mount>/test.ogg</fallback-mount>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast>
---------------------end plik icecast2.xml-----------------
w pliku var/log/ices.log jest
-----------------------------------------------------------
[2003-09-30 19:24:23] INFO ices-core/main ices started...
[2003-09-30 19:24:23] INFO input-oss/oss_open_module Opened audio device
/dev/dsp at 2 channel(s), 44100 Hz
[2003-09-30 19:24:23] INFO encode/encode_initialise Encoder initialising
with bitrate management: 2 channels, 44100 Hz, minimum bitrate -1, nominal
64000, maximum -1
[2003-09-30 19:24:23] INFO signals/signal_usr1_handler Metadata update
requested
-----------------------------------------------------------
w katalogu /var/log/icecast2 nie tworzy nic, pomimo ze ma ustawione ze ma
tworzyc hmm
po uruchomieniu :
ibm:~# icecast2 -c /root/icecast2.xml
WARNING: You should not run icecast2 as root
Use the changeowner directive in the config file
gdy wtedy uruchomie ices2 udaje mu sie chyba podpiac do icecast2 gdyz nie
zglasza zadnych bledow, w przeciwienstwie do sytuacji gdy icecast2 nie jest
uruchomiony.
czy ktos moze mi pomoc?
Pozdrawiam
Technical Details
Message-ID:
<blceo1$ju3$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Avatar" <avatar@12dz.mil.pl> Newsgroups: alt.pl.comp.os.linux.debian Subject: Streaming audio ices2/icecast2 ... [Dlugie] Date: Tue, 30 Sep 2003 19:36:27 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 149 Message-ID: <blceo1$ju3$1@atlantis.news.tpi.pl> NNTP-Posting-Host: uq70.internetdsl.tpnet.pl X-Trace: atlantis.news.tpi.pl 1064943169 20419 80.55.146.70 (30 Sep 2003 17:32:49 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 30 Sep 2003 17:32:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit