Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ices 2, Icecast 2.2 on FreeBSD 6.0

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sat Jan 21, 2006 4:12 am    Post subject: Ices 2, Icecast 2.2 on FreeBSD 6.0 Reply with quote

Having some difficulty with Ices 2.0.1 and Icecast2-2.2.0_3,1 packages running on the same FreeBSD 6.0 system. Any help or a point into the direction that will guide me where I should be looking for an answer would be appreciated.

I am attempting to send raw radio into the soundcard using the Mic (/dev/dsp) input to stream. Through aumix volume adjustments, and speakers connected to the output on the same soundcard I can verify that the soundcard is using the Mic. I'm assuming that the "R" next to Mic indicates that the Mic is the default recording device.

The browser displays the Icecast Status Page (Quality: 0, Listen: Click to Listen, which points to the correct LAN IP and port 8000).

When I try to connect to the stream using Winamp on a Win2k machine on my LAN, the error displayed is: Error Synching to MPEG.

When I try to connect to the stream using XMMS on the same FreeBSD that is running both Ices and Icecast the error displayed is: Connecting waiting for reply.

I'm using the same passwords that were standard with the ices and icecast files.

The following lists the ices.log, Icecast error.log, icecast_minimal.xml.dist, and ices-oss.xml files:

*****************************
tail -f ices.log
*****************************

[2006-01-20 17:28:36] INFO encode/encode_initialise Encoder initialisin g in VBR

mode: 1 channel(s), 22050 Hz, quality 0.000000
[2006-01-20 20:32:46] INFO ices-core/main IceS 2.0.1 started...
[2006-01-20 20:32:46] INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2

channel(s), 44100 Hz
[2006-01-20 20:32:46] INFO input-oss/oss_open_module Starting metadata update thread
[2006-01-20 20:32:46] INFO signals/signal_usr1_handler Metadata update requested
[2006-01-20 20:32:46] DBUG metadata/metadata_thread_signal reading metadata from

"/usr/local/share/ices/metadata"
[2006-01-20 20:32:46] INFO metadata/metadata_thread_signal tag 1 is Ę
[2006-01-20 20:32:46] INFO metadata/metadata_thread_signal Updating metadata
[2006-01-20 20:32:46] INFO audio/downmix_initialise Enabling stereo->mono downmixing
[2006-01-20 20:32:46] INFO audio/resample_initialise Initialised resampler for 1 channels,

from 44100 Hz to 22050 Hz
[2006-01-20 20:32:46] INFO encode/encode_initialise Encoder initialising in VBR mode: 1

channel(s), 22050 Hz, quality 0.000000
[2006-01-20 20:32:46] INFO stream/ices_instance_stream Connected to server:

127.0.0.1:8000/example1.ogg
[2006-01-20 20:32:46] INFO audio/resample_initialise Initialised resampler for 1 channels,

from 44100 Hz to 22050 Hz
[2006-01-20 20:32:46] DBUG encode/encode_clear Clearing encoder engine
[2006-01-20 20:32:46] INFO encode/encode_initialise Encoder initialising in VBR mode: 1

channel(s), 22050 Hz, quality 0.000000

*****************************
tail -f error.log (icecast)
*****************************

[2006-01-20 20:32:10] DBUG yp/send_to_yp YP touch at http://dir.xiph.org/cgi-bin/yp-cgi

succeeded
[2006-01-20 20:32:16] INFO format-ogg/ogg_get_buffer End of Stream /example1.ogg
[2006-01-20 20:32:16] INFO source/source_shutdown Source "/example1.ogg" exiting
[2006-01-20 20:32:16] DBUG source/source_clear_source clearing source "/example1.ogg"
[2006-01-20 20:32:16] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2006-01-20 20:32:16] DBUG format-ogg/free_ogg_codecs freeing codecs
[2006-01-20 20:32:16] DBUG format-vorbis/vorbis_codec_free freeing vorbis codec
[2006-01-20 20:32:16] DBUG yp/yp_remove release /example1.ogg on YP

http://dir.xiph.org/cgi-bin/yp-cgi
[2006-01-20 20:32:16] DBUG source/source_free_source freeing source "/example1.ogg"
[2006-01-20 20:32:16] INFO yp/do_yp_remove clearing up YP entry for /example1.ogg
[2006-01-20 20:32:16] DBUG stats/modify_node_event update node sources (0)
[2006-01-20 20:32:16] DBUG stats/process_source_event delete source node /example1.ogg
[2006-01-20 20:32:16] DBUG yp/send_to_yp YP remove at http://dir.xiph.org/cgi-bin/yp-cgi

succeeded
[2006-01-20 20:32:16] DBUG yp/delete_marked_yp removed /example1.ogg from YP server

http://dir.xiph.org/cgi-bin/yp-cgi
[2006-01-20 20:32:20] INFO sighandler/_sig_die Caught signal 15, shutting down...
[2006-01-20 20:32:20] DBUG connection/_handle_connection Connection thread done
[2006-01-20 20:32:20] DBUG connection/_handle_connection Connection thread done
[2006-01-20 20:32:20] DBUG connection/_handle_connection Connection thread done
[2006-01-20 20:32:20] DBUG connection/_handle_connection Connection thread done
[2006-01-20 20:32:20] INFO connection/_destroy_pool All connection threads down
[2006-01-20 20:32:20] INFO main/main Shutting down
[2006-01-20 20:32:20] INFO fserve/fserve_shutdown file serving thread stopped
[2006-01-20 20:32:20] DBUG slave/slave_shutdown waiting for slave thread
[2006-01-20 20:32:20] DBUG slave/_slave_thread shutting down current relays
[2006-01-20 20:32:20] INFO slave/_slave_thread Slave thread shutdown complete
[2006-01-20 20:32:20] DBUG yp/destroy_yp_server Removing YP server entry for

http://dir.xiph.org/cgi-bin/yp-cgi
[2006-01-20 20:32:20] INFO yp/yp_shutdown YP thread down
[2006-01-20 20:32:21] INFO stats/stats_shutdown stats thread finished
[2006-01-20 20:32:39] INFO main/main Icecast 2.2.0 server started
[2006-01-20 20:32:39] DBUG yp/yp_recheck_config Updating YP configuration
[2006-01-20 20:32:39] INFO yp/yp_recheck_config Adding new YP server

"http://dir.xiph.org/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
[2006-01-20 20:32:39] INFO stats/_stats_thread stats thread started
[2006-01-20 20:32:39] INFO fserve/fserv_thread_function file serving thread started
[2006-01-20 20:32:39] INFO yp/yp_update_thread YP update thread started
[2006-01-20 20:32:39] DBUG yp/check_servers Add pending yps

http://dir.xiph.org/cgi-bin/yp-cgi
[2006-01-20 20:32:40] DBUG slave/_slave_thread checking master stream list
[2006-01-20 20:32:46] INFO connection/_handle_source_request Source logging in at

mountpoint "/example1.ogg"
[2006-01-20 20:32:46] DBUG connection/connection_complete_source sources count is 0
[2006-01-20 20:32:46] DBUG connection/connection_complete_source source is ready to start
[2006-01-20 20:32:46] DBUG source/source_init Source creation complete
[2006-01-20 20:32:46] DBUG yp/yp_add Adding /example1.ogg to

http://dir.xiph.org/cgi-bin/yp-cgi
[2006-01-20 20:32:46] DBUG stats/modify_node_event update node connections (1)
[2006-01-20 20:32:46] DBUG stats/modify_node_event update node source_client_connections

(1)
[2006-01-20 20:32:46] DBUG stats/process_source_event new source stat /example1.ogg
[2006-01-20 20:32:46] DBUG stats/process_source_event new node public (1)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node samplerate (22050)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node channels (1)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node quality (0.00)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node audio_info

(samplerate=22050;channels=1;quality=0%2e00)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node listenurl

(http://127.0.0.1:8000/example1.ogg)
[2006-01-20 20:32:46] DBUG stats/modify_node_event update node sources (1)
[2006-01-20 20:32:46] DBUG stats/modify_node_event update node source_total_connections (1)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node listeners (0)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node server_name (Talk)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node server_url

(http://127.0.0.1)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node genre (Talk)
[2006-01-20 20:32:46] DBUG stats/process_source_event new node server_description (Talk)
[2006-01-20 20:32:46] DBUG yp/add_pending_yp 1 YP entries added to

http://dir.xiph.org/cgi-bin/yp-cgi
[2006-01-20 20:32:46] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2006-01-20 20:32:46] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_page processing incoming header

packet (1)
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_page processing incoming header

packet (2)
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_page we have the header packets now
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_headers Adding the 3 header packets
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_attach_header attaching header page
[2006-01-20 20:32:46] DBUG format-vorbis/initiate_flush adding EOS packet
[2006-01-20 20:32:46] DBUG format-vorbis/get_buffer_finished flushing page
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_headers Adding the 3 header packets
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_attach_header attaching header page
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2006-01-20 20:32:46] DBUG format-ogg/free_ogg_codecs freeing codecs
[2006-01-20 20:32:46] DBUG format-vorbis/vorbis_codec_free freeing vorbis codec
[2006-01-20 20:32:46] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2006-01-20 20:32:46] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_page processing incoming header

packet (1)
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_page processing incoming header

packet (2)
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_page we have the header packets now
[2006-01-20 20:32:46] DBUG format-vorbis/process_vorbis_headers Adding the 3 header packets
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2006-01-20 20:32:46] DBUG format-ogg/format_ogg_attach_header attaching header page

*****************************
icecast_minimal.xml.dist
*****************************

commented icecast.xml.dist file. -->
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<source-password>hackme</source-password>
<relay-password>hackme</relay-password>
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<hostname>192.168.15.51</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>/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> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast>

*****************************
ices-oss.xml
*****************************

<?xml version="1.0"?>
<ices>

<!-- run in background -->
<background>0</background>
<!-- where logs go. -->
<logpath>/var/log/ices</logpath>
<logfile>ices.log</logfile>
<!-- size in kilobytes -->
<logsize>2048</logsize>
<!-- 1=error, 2=warn, 3=infoa ,4=debug -->
<loglevel>4</loglevel>
<!-- logfile is ignored if this is set to 1 -->
<consolelog>0</consolelog>

<!-- optional filename to write process id to -->
<!-- <pidfile>/home/ices/ices.pid</pidfile> -->

<stream>
<!-- metadata used for stream listing -->
<metadata>
<name>Talk</name>
<genre>Talk</genre>
<description>Talk</description>
<url>http://127.0.0.1</url>
</metadata>

<!-- Input module.

This example uses the 'oss' module. It takes input from the
OSS audio device (e.g. line-in), and processes it for live
encoding. -->
<input>
<module>oss</module>
<param name="rate">44100</param>
<param name="channels">2</param>
<param name="device">/dev/dsp</param>
<!-- Read metadata (from stdin by default, or -->
<!-- filename defined below (if the latter, only on SIGUSR1) -->
<param name="metadata">1</param>
<param name="metadatafilename">/usr/local/share/ices/metadata</param
>
</input>

<!-- Stream instance.

You may have one or more instances here. This allows you to
send the same input data to one or more servers (or to different
mountpoints on the same server). Each of them can have different
parameters. This is primarily useful for a) relaying to multiple
independent servers, and b) encoding/reencoding to multiple
bitrates.

If one instance fails (for example, the associated server goes
down, etc), the others will continue to function correctly.
This example defines a single instance doing live encoding at
low bitrate. -->

<instance>
<!-- Server details.

You define hostname and port for the server here, along
with the source password and mountpoint. -->

<hostname>127.0.0.1</hostname>
<port>8000</port>
<password>hackme</password>
<mount>/example1.ogg</mount>
<yp>1</yp> <!-- allow stream to be advertised on YP, default 0 -->

<!-- Live encoding/reencoding:

channels and samplerate currently MUST match the channels
and samplerate given in the parameters to the oss input
module above or the remsaple/downmix section below. -->

<encode>
<quality>0</quality>
<samplerate>22050</samplerate>
<channels>1</channels>
</encode>

<!-- stereo->mono downmixing, enabled by setting this to 1 -->
<downmix>1</downmix>

<!-- resampling.

Set to the frequency (in Hz) you wish to resample to, -->

<resample>
<in-rate>44100</in-rate>
<out-rate>22050</out-rate>
</resample>
</instance>

</stream>
</ices>
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jan 21, 2006 2:10 pm    Post subject: Reply with quote

The key thing to note is the error message from winamp of "Error Synching to MPEG"

As Ogg is not MPEG then the question is, why does winamp think it is. There are 2 common possibilities. Firstly, winamp uses extensions in the mountpoint to determine codec selection, that is why we recomment mountpoint names end in .ogg, icecast itself doesn't care about the extension. The second is whether you have the -lite version of winamp which doesn't ship with the ogg vorbis decoder plugin. From your post, your mountpoint has an extension so it's probably the winamp version you have.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Mon Jan 23, 2006 8:52 pm    Post subject: You were right on! Reply with quote

I assumed that the XMMS version that I was using could play OGG files; it didn't. I assumed the same of WinAmp; OGG file recognition was there, I just needed to select OGG as the associated file type, and the analyzer began to dance.

Thank you for taking the time to assist.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
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