View previous topic :: View next topic |
Author |
Message |
thrillseeker76
Joined: 21 Apr 2012 Posts: 8
|
Posted: Sun Apr 22, 2012 3:46 pm Post subject: Two mountpoints/streams. One not working. |
|
|
Hello! First, a HUGE thank you to the developers and everyone involved in Incecast... amazing media server! Thank you
I'm sure this has been asked before but I can't seem to figure this out.
I have two ogg streams (48k/64k). I'm using port 8000 for the 48k and 8001 for the 64k, each with different mountpoint names (/stream48.ogg and /stream64.ogg). I tried, to the best of my knowledge, of setting both mount points in the config file for Icecast 2.3.2 correctly. What happens if the first mountpoint for the 48k stream works fine. However, the 64k one doesn't at all. I tried various ports for that stream such as 8002, 8003 etc and of course forwarded those on the router. I'm using RadioBOSS 4.6.5 which allows mutiple broadcasts. So i'm now at a loss... any ideas?
Thanks in advance! |
|
Back to top |
|
|
thrillseeker76
Joined: 21 Apr 2012 Posts: 8
|
Posted: Sun Apr 22, 2012 3:49 pm Post subject: ...continued |
|
|
Oh and FYI, I am using the FFMp3 flash player, Windows 7 (32bit) with the Windows firewall disabled temporarily. No other firewall software exists on this computer yet. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Apr 22, 2012 5:20 pm Post subject: |
|
|
Firstly, are you running 2 different icecasts on those ports or 1 icecast listening on both ports? Can you access a status page with a browser from both ports (even if it is empty)?
karl. |
|
Back to top |
|
|
thrillseeker76
Joined: 21 Apr 2012 Posts: 8
|
Posted: Sun Apr 22, 2012 6:12 pm Post subject: |
|
|
Thanks for the reply Karl,
I'm using one instance of Icecast, listening to both ports. I can access the status page with port 8000.
If I try 8001 then the browser just hangs trying to load that particular status page. I even tried downloading the m3u file as a test <serveraddress>:8001/stream64.ogg.m3u and it hangs.
Very strange. I've even restarted the Icecast Windows service.
Last edited by thrillseeker76 on Sun Apr 22, 2012 6:15 pm; edited 1 time in total |
|
Back to top |
|
|
thrillseeker76
Joined: 21 Apr 2012 Posts: 8
|
Posted: Sun Apr 22, 2012 6:14 pm Post subject: |
|
|
maybe in the icecast config file, I should swap the mounts around so that it first tries to load my 64k stream on port 8001 and see if that works. Could be a misconfiguration on my part? hmmm... |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Apr 23, 2012 1:12 am Post subject: |
|
|
how have you define port 8001, it sounds like you have it set as shoutcast compatible, which is not http.
karl. |
|
Back to top |
|
|
thrillseeker76
Joined: 21 Apr 2012 Posts: 8
|
Posted: Mon Apr 23, 2012 2:15 am Post subject: |
|
|
Karl...
- Two <listen-socket> specified for port 8000 and 8001 in Icecast config (seperate mounts of course)
- RadioBOSS. Two OGG encoders (44100 sample rate) enabled to broadcast to Icecast:
<webaddress>:8000/stream48.ogg
<webaddress>:8001/stream64.ogg
- FFMP3 applet code on each webpage: url=http://<webaddress>:8000/stream48.ogg (in stream48.php)
url=http://<webaddress>:8001/stream64.ogg (in stream64.php)
- Router portforwards 8000 and 8001 for the server IP. |
|
Back to top |
|
|
thrillseeker76
Joined: 21 Apr 2012 Posts: 8
|
Posted: Mon Apr 23, 2012 2:48 am Post subject: |
|
|
I think i figured it out just now... instead of two seperate mounts in the config, I just added two listen sockets. Simple as that? Whew!...
<listen-socket>
<port>8000</port>
</listen-socket>
<listen-socket>
<port>8001</port>
</listen-socket>
Thanks for your time and help karl.... |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Apr 23, 2012 2:13 pm Post subject: |
|
|
very often people think there is more to it than there needs to be.
karl. |
|
Back to top |
|
|
Amature DJ
Joined: 17 Apr 2012 Posts: 26
|
Posted: Tue Apr 24, 2012 4:30 am Post subject: |
|
|
I am sorry to cut into this thread but your saying different ports can also be used as different channels?
Ok this is really good news guys. I didn't know that this can even be done.
Curently I am running a windows 2003 myself I have 3 icecasts servers running as we speak so it means i have 3 websites 3 ports and after seeing what you guys are talking about your saying that i can run 3 websites over 3 ports using simply 1 icecast server with this method instead of 3 icecasts servers?
Can I possibly have a full explanation of this method to save me time im tired of running 3 icecast servers as it uses a lot of memory.
thanks. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Apr 25, 2012 7:13 pm Post subject: |
|
|
A single icecast can listen on multiple ports, where each has access to all streams on there, so you could use a one port per stream method if you wish.
If you intend to use the same mountpoint name for the difference ports then it is a bit more involved but possible using an alias to map the external mountpoint and port to an internal mountpoint eg
<alias source="/stream" port="8000" dest="/dj1" />
<alias source="/stream" port="8010" dest="/dj2" />
karl. |
|
Back to top |
|
|
Amature DJ
Joined: 17 Apr 2012 Posts: 26
|
Posted: Thu Apr 26, 2012 12:00 am Post subject: |
|
|
Ok so can you please explain with a new config file to us how to run 2 radio stations on 2 ports with 2 mounts with 1 dj per example for each mount/port. Once we have the basics we can work expanding this to our desires.
Thanks
Code: |
<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
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>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast>
|
|
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Apr 26, 2012 3:05 pm Post subject: |
|
|
At a minimum add another <listen-socket> block with the other port you want to use.
karl. |
|
Back to top |
|
|
Amature DJ
Joined: 17 Apr 2012 Posts: 26
|
Posted: Wed May 02, 2012 1:05 am Post subject: |
|
|
Amature DJ wrote: |
Ok so can you please explain with a new config file to us how to run 2 radio stations on 2 ports with 2 mounts with 1 dj per example for each mount/port. Once we have the basics we can work expanding this to our desires.
Thanks
Code: |
<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
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>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</list]ten-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast>
|
|
Quote: |
At a minimum add another <listen-socket> block with the other port you want to use.
karl. |
Hi Karl, thanks for your help but can you be more specific on what your referencing to and where to place this code exactly without errors?
You have to understand this is like jigsaw puzzle for me. I do work with websites/forums/blogs BUT media servers are a whole different scale.
Thanks |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed May 02, 2012 1:19 pm Post subject: |
|
|
It's not complicated if you look at the xml. In the xml you have
Quote: |
<listen-socket>
<port>8000</port>
</listen-socket> |
you just need to expand on that so it says
Quote: |
<listen-socket>
<port>8000</port>
</listen-socket>
<listen-socket>
<port>8001</port>
</listen-socket> |
If you work with websites, you'll be familiar with html type of tags where <tag> has a matching </tag> and you can nest the tags. icecast will interpret the two listen-socket blocks to open different ports.
karl. |
|
Back to top |
|
|
|