| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Fri Sep 28, 2007 10:25 pm Post subject: Need help streaming ices2 from stdinpcm |
|
|
Hello,
I'm trying to get icecast to stream ices2 off stdinpcm, but not seeing "Active Mounts" on my icecast admin page. I'm using icecast 2.3.1 and ices2. Can someone point me in the right direction? Below are my config's:
icecast.xml
++++++++++++++++++++++++++++++++++++++++++++
| Code: |
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password>somepass</source-password>
<relay-password>somepass</relay-password>
<admin-user>admin</admin-user>
<admin-password>somepass</admin-password>
</authentication>
<hostname>192.168.1.5</hostname>
<listen-socket>
<port>8000</port>
<bind-address>192.168.1.5</bind-address>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<paths>
<basedir>/usr/local/share/icecast</basedir>
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel>
<logsize>10000</logsize>
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast>
|
ices.xml
++++++++++++++++++++++++++++++++++++++++++++
| Code: |
<?xml version="1.0"?>
<ices>
<background>0</background>
<logpath>/var/log/ices</logpath>
<logfile>ices.log</logfile>
<logsize>2048</logsize>
<loglevel>4</loglevel>
<consolelog>0</consolelog>
<stream>
<metadata>
<name>some streams</name>
<genre>some genre</genre>
<description>something</description>
<url>http://192.168.1.5</url>
</metadata>
<input>
<module>stdinpcm</module>
<param name="rate">8000</param>
<param name="channels">2</param>
<param name="metadata">1</param>
<param name="metadatafilename">/tmp/ices-metadata</param>
</input>
<instance>
<hostname>192.168.1.5</hostname>
<port>8000</port>
<password>somepass</password>
<mount>/test.ogg</mount>
<yp>1</yp>
<encode>
<quality>0</quality>
<samplerate>8000</samplerate>
<channels>1</channels>
</encode>
<downmix>1</downmix>
<resample>
<in-rate>8000</in-rate>
<out-rate>8000</out-rate>
</resample>
</instance>
</stream>
</ices>
|
I know my pcm is working fine because I've played other music using it.
aplay -L shows:
++++++++++++++++++++++++++++++++++++++
default:CARD=NM256ZX
NeoMagic NM256ZX,
Default Audio Device
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=camera
USB camera, USB Audio
Default Audio Device
aplay -l shows:
++++++++++++++++++++++++++++++++++++++
**** List of PLAYBACK Hardware Devices ****
card 0: NM256ZX [NeoMagic NM256ZX], device 0: NM256ZX []
Subdevices: 1/1
Subdevice #0: subdevice #0
Thanks,
Jim |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Sep 28, 2007 11:25 pm Post subject: |
|
|
The configs look ok, except for the resample which is not needed. Have you checked the ices log file to make sure there's no error.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Sep 29, 2007 1:27 am Post subject: |
|
|
| karlH wrote: |
The configs look ok, except for the resample which is not needed. Have you checked the ices log file to make sure there's no error.
karl. |
Thanks for the response Karl. After trying a few more things, I noticed that the "Active Mount" does show up on the admin web page, but only for about 10 seconds. I noticed the ices process is still running after 10 seconds although.
Here's what the logs show, starting icecast:
| Code: |
[2007-09-28 18:11:16] INFO main/main Icecast 2.3.1 server started
[2007-09-28 18:11:16] WARN main/main YP server handling has been disabled
[2007-09-28 18:11:16] INFO auth/auth_run_thread Authentication thread started
[2007-09-28 18:11:17] DBUG slave/_slave_thread checking master stream list
|
Then ices logs after starting, seem's to connect to icecast fine:
| Code: |
[2007-09-28 18:12:33] INFO ices-core/main IceS 2.0.1 started...
[2007-09-28 18:12:33] INFO audio/downmix_initialise Enabling stereo->mono downmixing
[2007-09-28 18:12:33] INFO audio/resample_initialise Initialised resampler for 1 channels, from 8000 Hz to 8000 Hz
[2007-09-28 18:12:33] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 8000 Hz, quality 0.000000
[2007-09-28 18:12:33] INFO signals/signal_usr1_handler Metadata update requested
[2007-09-28 18:12:33] INFO stream/ices_instance_stream Connected to server: 192.168.1.5:8000/test.ogg
|
After ices connects to icecast, you can see icecast error log showing the connection and a bunch of other debug stuff:
| Code: |
[2007-09-28 18:12:33] INFO connection/_handle_source_request Source logging in at mountpoint "/test.ogg"
[2007-09-28 18:12:33] DBUG connection/connection_complete_source sources count is 0
[2007-09-28 18:12:33] DBUG source/source_apply_mount Applying mount information for "/test.ogg"
[2007-09-28 18:12:33] DBUG source/source_apply_mount YP changed to 1
[2007-09-28 18:12:33] DBUG source/source_update_settings public set to 1
[2007-09-28 18:12:33] DBUG source/source_update_settings max listeners to -1
[2007-09-28 18:12:33] DBUG source/source_update_settings queue size to 524288
[2007-09-28 18:12:33] DBUG source/source_update_settings burst size to 65535
[2007-09-28 18:12:33] DBUG source/source_update_settings source timeout to 10
[2007-09-28 18:12:33] DBUG source/source_update_settings fallback_when_full to 0
[2007-09-28 18:12:33] DBUG connection/connection_complete_source source is ready to start
[2007-09-28 18:12:33] DBUG fserve/fserve_add_client_callback Adding client to file serving engine
[2007-09-28 18:12:33] DBUG stats/modify_node_event update node clients (1)
[2007-09-28 18:12:33] DBUG stats/modify_node_event update node connections (1)
[2007-09-28 18:12:33] DBUG stats/modify_node_event update node sources (1)
[2007-09-28 18:12:33] DBUG stats/process_source_event new source stat /test.ogg
[2007-09-28 18:12:33] DBUG stats/process_source_event new node public (1)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node server_name (jamsda streams)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node server_description (something special)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node server_url (http://192.168.1.5)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node genre (ocean genre)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node server_type (application/ogg)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node max_listeners (unlimited)
[2007-09-28 18:12:33] DBUG source/source_init Source creation complete
[2007-09-28 18:12:33] DBUG stats/process_source_event new node source_ip (192.168.15)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node user_agent (IceS 2.0.1)
[2007-09-28 18:12:33] DBUG stats/modify_node_event update node source_client_connections (1)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node listeners (0)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node samplerate (8000)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node channels (1)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node quality (0.00)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node audio_info (samplerate=8000;channels=1;quality=0%2e00)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node listenurl (http://192.168.1.5:8000/test.ogg)
[2007-09-28 18:12:33] DBUG stats/modify_node_event update node source_total_connections (1)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node slow_listeners (0)
[2007-09-28 18:12:33] DBUG stats/modify_node_event update node listeners (0)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node listener_peak (0)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node stream_start (Fri, 28 Sep 2007 18:12:33 -0700)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node total_bytes_read (0)
[2007-09-28 18:12:33] DBUG stats/process_source_event new node total_bytes_sent (0)
[2007-09-28 18:12:38] DBUG stats/modify_node_event update node total_bytes_read (0)
[2007-09-28 18:12:38] DBUG stats/modify_node_event update node total_bytes_sent (0)
|
Not sure what else to try. Does anyone know of a way to crank up the ices logging? I'm running this on FC6 and here's some more info on the soundcard:
| Code: |
01:00.1 Multimedia audio controller: Neomagic Corporation NM2360 [MagicMedia 256ZX Audio]
Subsystem: Dell Unknown device 008b
Flags: medium devsel, IRQ 5
Memory at f9800000 (32-bit, prefetchable) [size=8M]
Memory at fda00000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [dc] Power Management version 1
|
Thanks,
Jim |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Sep 29, 2007 2:51 am Post subject: |
|
|
The stats are there and you are not marking them hidden so I don't see why the status.xsl page would not show them unless it has been modified.
karl. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|