| View previous topic :: View next topic |
| Author |
Message |
noratx
Joined: 06 Aug 2009 Posts: 5
|
Posted: Thu Aug 06, 2009 11:45 am Post subject: multiple live sources |
|
|
Hello!
After having used shoutcast on and off duing a few years, I have now started to look at icecast, but I need some help to clarify some things I don't understand or know how to set up.
At this moment, I have my server running 6 instances of sc_serv, all on different ports.
When I read that icecast can handle several streams with only one instance, I wanted to give it a try.
After looking through the config file, I just have no clue at all of how to configure ti for this purpose. Nor can I find a sufficient huid or example file for this anywhere.
Then I read about mountpoints....
as sc_serv uses one port/stream, I'd like to know both posibilities with icecast.
Can anyone give me an example config file, or at least what to write where, that describes both procedures. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Aug 06, 2009 10:46 pm Post subject: |
|
|
native icecast source clients provide a mountpoint to icecast but native shoutcast ones do not. If you still want to use those source clients then you'll have to specify several ports so that each source client can connect and be allocated a mountpoint. eg
<listen-socket>
<port>8000</port>
<shoutcast-mount>/mystream</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8100</port>
<shoutcast-mount>/myotherstream</shoutcast-mount>
</listener-socket>
Fairly trivial really. listeners can then use 8000, 8100 etc to connect to any of those streams.
karl. |
|
| Back to top |
|
 |
noratx
Joined: 06 Aug 2009 Posts: 5
|
Posted: Fri Aug 07, 2009 4:14 pm Post subject: |
|
|
Hello karlH, and thank you for your reply.
I managed to get that to work, now it's just one more thing.
How do I make each user connect with their own password?
I tried with:
| Code: |
<listen-socket>
<port>8200</port>
<shoutcast-mount>/tadao</shoutcast-mount>
</listen-socket>
<!-- snip -->
<mount>
<mount-name>/tadao</mount-name>
<!-- Do I need this? <username>tadao</username> -->
<password>password</password>
<max-listeners>50</max-listeners>
<burst-size>65536</burst-size>
<hidden>1</hidden>
<no-yp>1</no-yp>
</mount>
|
When I try to connect with sam, I get immediately disconnected. No matter if I try to connect using settings for icecast2 or shoutcast. |
|
| Back to top |
|
 |
noratx
Joined: 06 Aug 2009 Posts: 5
|
Posted: Fri Aug 07, 2009 5:07 pm Post subject: |
|
|
I just came across something else that is weird...
I'll post some of the configfile end explain underneath.
| Code: |
<limits>
<clients>100</clients>
<sources>10</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>st4nd4rdp4ss</source-password>
<relay-password>st4nd4rdp4ss</relay-password>
<admin-user>admin</admin-user>
<admin-password>st4nd4rdp4ss</admin-password>
</authentication>
<!-- SNIP -->
<!-- SOCKETS BEGIN HERE!! -->
<listen-socket>
<port>8000</port>
<shoutcast-mount>/ashlene</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8100</port>
<shoutcast-mount>/alicia</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8200</port>
<shoutcast-mount>/tadao</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8201</port>
<shoutcast-mount>/tadao</shoutcast-mount>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<!-- SOCKETS ENDS HERE!! -->
<mount>
<mount-name>/ashlene</mount-name>
<username>ashlene</username>
<password>ashlene1</password>
<max-listeners>50</max-listeners>
<burst-size>65536</burst-size>
<hidden>1</hidden>
<no-yp>1</no-yp>
</mount>
<mount>
<mount-name>/alicia</mount-name>
<username>alicia</username>
<password>alicia2</password>
<max-listeners>50</max-listeners>
<burst-size>65536</burst-size>
<hidden>1</hidden>
<no-yp>1</no-yp>
</mount>
<mount>
<mount-name>/tadao</mount-name>
<password>tadao3</password>
<max-listeners>50</max-listeners>
<burst-size>65536</burst-size>
<hidden>1</hidden>
<no-yp>1</no-yp>
</mount>
|
Now, when I use sam to connect, I am using the IP, port 8200, password "tadao3" and mountpoint /tadao
I get an error (10061).
I try to change the password to the "st4nd4rdp4ss" as describes in the beginning, just to see if it works. THen I get an authentication error.
I change back to password "tadao3", but, instead change the port to 8000..
And it works... what I am doing wrong?`I don't get it... |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Aug 07, 2009 10:02 pm Post subject: |
|
|
username for source clients by default is source but you can override it with <username>. You have the right idea on how you do mountpoint specific passwords but as to why the disconnection occurred I cannot say as I don't have access to your log files. The usual reason is auth mismatch but there could be other reasons.
I don't know what error code 10061 is, it's not an icecast error.
For some reason you seem to have a listen-socket defined for port 8201 when you should not. shoutcast-compat is an older setting which is not used when you use shoutcast-mount within a listen-socket.
karl |
|
| Back to top |
|
 |
noratx
Joined: 06 Aug 2009 Posts: 5
|
Posted: Sat Aug 08, 2009 12:25 am Post subject: |
|
|
Ah, ok, then I am atleast on the right way.
The logs doesn't give me much either, I have set the loglevel to 4, and tried to tail -f the logfile while connecting, but no entrys were made in the logs for some reason.
Would you be willing to check it out if I gave you access to the machine?
Regarding the listen socket on 8201 is because I read a "handbook" written by someone in this forum that mentioned it. So I was just testing. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Aug 08, 2009 1:09 am Post subject: |
|
|
if you don't get any entries then giving me access to view them will be pointless. rejections by icecast will be logged both in access and error log soif no entries are appearing them something else will be rejecting the connection, say a firewall
karl. |
|
| Back to top |
|
 |
noratx
Joined: 06 Aug 2009 Posts: 5
|
Posted: Sat Aug 08, 2009 2:19 am Post subject: |
|
|
Well, there is actually a firewall in front, and I am behind nat (temporarily).
But yet, it works fine on the other ports. |
|
| Back to top |
|
 |
|