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 

a little help with my config and SAM encoder
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
dj001



Joined: 11 Apr 2008
Posts: 26

PostPosted: Mon May 19, 2008 8:44 pm    Post subject: a little help with my config and SAM encoder Reply with quote

I am a longtime live365/shoutcast/itunes/windowsmedia webcaster, and would like to have a stream listed in the icecast yp. I followed the help file as far as I could, skimmed the forums for answers, and I think I am about 70% there. Here is what I did so far:

I configured an Icecast2 SAM encoder with Station Name, Info, my IP address for Server IP, 8006 in Server Port (fully enabled in my router) and a password. I left /live in Mount.

I installed icecast and opened up config in the console. I put the password in as Source Password. I put my IP address under hostname. I put 8006 between port and /port right below “You may have multiple listener elements.”

When I click Start Server, the icecast server runs fine. However, when I instruct the SAM encoder to start, I get “Disconnected.”

I am sure I have just missed one or two pieces of the puzzle. Please help me out here. I am just about done on this.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon May 19, 2008 9:24 pm    Post subject: Reply with quote

Assuming that the status webpage shows up in your browser then it must be down to the connection sam is making. Check the icecast log files to see if the attempt is being rejected and why (probably a mismatched password).

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



Joined: 11 Apr 2008
Posts: 26

PostPosted: Mon May 19, 2008 10:44 pm    Post subject: Reply with quote

Passwords match up perfectly. When I said Server is running, I just meant the Running button on the console. How do I check the administration page in the browser?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon May 19, 2008 11:10 pm    Post subject: Reply with quote

You may find this surprising but it's

http://IP:port/

just use the appropriate IP and port number you have configured. If the browser cannot access it then the source client won't be able to either.

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



Joined: 11 Apr 2008
Posts: 26

PostPosted: Tue May 20, 2008 11:24 am    Post subject: Reply with quote

I get the Icecast2 Status page fine in my browser, but the encoder is still Disconnected. Here is the icecast Error Log:

[2008-05-20 07:16:04] INFO main/main.c Icecast 2.3.1 server started
[2008-05-20 07:16:04] DBUG yp/yp.c Updating YP configuration
[2008-05-20 07:16:04] INFO fserve/fserve.c file serving thread started
[2008-05-20 07:16:04] INFO yp/yp.c YP update thread started
[2008-05-20 07:16:04] INFO auth/auth.c Authentication thread started
[2008-05-20 07:16:05] DBUG slave/slave.c checking master stream list
[2008-05-20 07:16:16] DBUG connection/connection.c Connection thread done
[2008-05-20 07:16:16] INFO main/main.c Shutting down
[2008-05-20 07:16:16] INFO fserve/fserve.c file serving thread stopped
[2008-05-20 07:16:16] DBUG slave/slave.c waiting for slave thread
[2008-05-20 07:16:17] DBUG slave/slave.c shutting down current relays
[2008-05-20 07:16:17] INFO slave/slave.c Slave thread shutdown complete
[2008-05-20 07:16:17] INFO auth/auth.c Authenication thread shutting down
[2008-05-20 07:16:17] INFO auth/auth.c Auth thread has terminated
[2008-05-20 07:16:17] INFO yp/yp.c YP thread down
[2008-05-20 07:16:18] INFO stats/stats.c stats thread finished
[2008-05-20 07:16:20] INFO main/main.c Icecast 2.3.1 server started
[2008-05-20 07:16:20] DBUG yp/yp.c Updating YP configuration
[2008-05-20 07:16:20] INFO fserve/fserve.c file serving thread started
[2008-05-20 07:16:20] INFO yp/yp.c YP update thread started
[2008-05-20 07:16:20] INFO auth/auth.c Authentication thread started
[2008-05-20 07:16:21] DBUG slave/slave.c checking master stream list
Back to top
View user's profile Send private message
chas



Joined: 30 Jul 2006
Posts: 38

PostPosted: Tue May 20, 2008 12:38 pm    Post subject: Reply with quote

from experience using peercast and shoutcast you need 2 ports

so assign port 8006 and 8007, and port forward in your router if u need

of course i will be corrected if am incorrect
Back to top
View user's profile Send private message
dj001



Joined: 11 Apr 2008
Posts: 26

PostPosted: Tue May 20, 2008 12:51 pm    Post subject: Reply with quote

I have 8006-8007 enabled in the router. I have 8006 in the SAM encoder and the icecast config file. Are you saying I need 8007 somewhere in these also?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue May 20, 2008 1:07 pm    Post subject: Reply with quote

Some clarity on the port usage needed.

If a source client is using a native icecast2 connection then an IP, port, mountpoint along with user/pass will be required but icecast will only need one port for any number of streams. If you are using a shoutcast style source client then an IP/port and password are required but 2 consecutive ports are needed just for 1 stream. In trunk/kh releases icecast can handle multiple shoutcast source clients at the same time but requires 2 ports per stream to achieve it.

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



Joined: 11 Apr 2008
Posts: 26

PostPosted: Tue May 20, 2008 1:24 pm    Post subject: Reply with quote

My setup is a very simple SAM encoder setup.

I configured an Icecast2 SAM encoder with Station Name, Info, my IP address for Server IP, 8006 in Server Port (fully enabled in my router) and a password. I put /96k.mp3 in Mount.

I installed icecast and opened up config in the console. I put the password in as Source Password. I put my IP address under hostname. I put 8006 between port and /port right below “You may have multiple listener elements.” I put 96k.mp3 in mount-name.

When I click Start Server, the icecast server runs fine. However, when I instruct the SAM encoder to start, I get “Disconnected.”
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue May 20, 2008 2:57 pm    Post subject: Reply with quote

The log messages would indicate that you haven't connected to the icecast for anything, not even the status page. Try using a browser to see if the server can be accessed because if not then something is preventing it like a firewall.

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



Joined: 11 Apr 2008
Posts: 26

PostPosted: Tue May 20, 2008 3:03 pm    Post subject: Reply with quote

I get the Icecast2 Status page fine in my browser, but the encoder is still Disconnected. I enabled the ports in my router, as I have done many times before, so this is not a firewall issue.
Back to top
View user's profile Send private message
chas



Joined: 30 Jul 2006
Posts: 38

PostPosted: Tue May 20, 2008 3:25 pm    Post subject: Reply with quote

you can put 96k.mp3 in your source but that means its only /96k mount name in icecast i think Very Happy
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue May 20, 2008 3:35 pm    Post subject: Reply with quote

dj001: If icecast receives a connection attempt then you will see something in the log that indicates that something connected. The log you posted indicates nothing came in, not even a request for a web page. So either you are blocking access, or messed up the routing or you are not issuing a connect. I can only say what is happening from the information you are giving me.

karl.


Last edited by karlH on Tue May 20, 2008 7:05 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dj001



Joined: 11 Apr 2008
Posts: 26

PostPosted: Tue May 20, 2008 3:42 pm    Post subject: Reply with quote

I have my IP address as Server IP, 8006 as Server Port, and /96k.mp3 as Mount. Here is my config file:

<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>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>I put mine in here</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>fishsord</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>

<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>I put my IP address in here</hostname>

<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8006</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->

<!--
<relay>
<server>127.0.0.1</server>
<port>8006</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>

<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->

<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>

<username>othersource</username>
<password>hackmemore</password>

<max-listeners>10</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>

<mount>
<mount-name>/96k.mp3</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>

-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>./</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<!-- <pidfile>./icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>

<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue May 20, 2008 7:16 pm    Post subject: Reply with quote

I understand what changes you are making, but you still think icecast ist the problem but the log shows that nothing has been asked of it. For icecast to have a problem then it must fail on something but nothing is occurring so icecast is working as it should, ie just sitting there waiting for something to happen.

Maybe the address you are using is wrong or there's some routing or firewalling you've missed out, which is why I keep going back to the status page. If you or your network administrator are unsure of what to do then you'll have to give details of your setup.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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