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 

Two mountpoints/streams. One not working.
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
thrillseeker76



Joined: 21 Apr 2012
Posts: 8

PostPosted: Sun Apr 22, 2012 3:46 pm    Post subject: Two mountpoints/streams. One not working. Reply with quote

Hello! First, a HUGE thank you to the developers and everyone involved in Incecast... amazing media server! Thank you Smile

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! Smile
Back to top
View user's profile Send private message
thrillseeker76



Joined: 21 Apr 2012
Posts: 8

PostPosted: Sun Apr 22, 2012 3:49 pm    Post subject: ...continued Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Apr 22, 2012 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
thrillseeker76



Joined: 21 Apr 2012
Posts: 8

PostPosted: Sun Apr 22, 2012 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
thrillseeker76



Joined: 21 Apr 2012
Posts: 8

PostPosted: Sun Apr 22, 2012 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Apr 23, 2012 1:12 am    Post subject: Reply with quote

how have you define port 8001, it sounds like you have it set as shoutcast compatible, which is not http.

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



Joined: 21 Apr 2012
Posts: 8

PostPosted: Mon Apr 23, 2012 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message
thrillseeker76



Joined: 21 Apr 2012
Posts: 8

PostPosted: Mon Apr 23, 2012 2:48 am    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Apr 23, 2012 2:13 pm    Post subject: Reply with quote

very often people think there is more to it than there needs to be.

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



Joined: 17 Apr 2012
Posts: 26

PostPosted: Tue Apr 24, 2012 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Apr 25, 2012 7:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Amature DJ



Joined: 17 Apr 2012
Posts: 26

PostPosted: Thu Apr 26, 2012 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Apr 26, 2012 3:05 pm    Post subject: Reply with quote

At a minimum add another <listen-socket> block with the other port you want to use.

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



Joined: 17 Apr 2012
Posts: 26

PostPosted: Wed May 02, 2012 1:05 am    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed May 02, 2012 1:19 pm    Post subject: Reply with quote

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
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