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 

Using icecast to stream internet radio

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
estens



Joined: 10 Feb 2010
Posts: 6

PostPosted: Wed Feb 10, 2010 6:46 am    Post subject: Using icecast to stream internet radio Reply with quote

I'm really new to both Linux and icecast so forgive me if someone has gone through this all before.

I'm trying to set up an Icecast server that takes an Internet Radio stream, then broadcasts it to an internal network.

the idea is that instead of having 10 people connect to the same radio station on their PC's, i use Icecast to create the connection, then get the users to connect to Icecast to hear the radio station.

The radio station's stream is an .asx file, and i was wondering if that was supported?

I'd also love as much information available on how to do this. I've found a tutorial (linked below) only i adapted it for CentOS 5.3, now I've just got to work out the particulars of how to set it all up.

http://www.linuxhelp.net/forums/index.php?showtopic=8226&pid=27924&st=0&#entry27924

Thanks in advance for any advice that you can give me to get this working Smile
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 Feb 10, 2010 7:04 am    Post subject: Reply with quote

asx is not a stream format, but you should be able to find the stream from within that file.

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



Joined: 10 Feb 2010
Posts: 6

PostPosted: Thu Feb 11, 2010 12:30 am    Post subject: Reply with quote

i've managed to find the URL for the stream out of the asx file, however, i still cannot get it to connect to the icecast server to connect.

http://a1512.l4412545511.c44125.g.lm.akamaistream.net/D/1512/44125/v0001/reflector:45511

My Error log shows

[2010-02-11 11:17:02] INFO main/main Icecast 2.3.2 server started
[2010-02-11 11:17:02] INFO stats/_stats_thread stats thread started
[2010-02-11 11:17:02] INFO fserve/fserv_thread_function file serving thread started
[2010-02-11 11:17:02] INFO yp/yp_update_thread YP update thread started
[2010-02-11 11:17:02] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2010-02-11 11:17:03] INFO slave/start_relay_stream Starting relayed source at mountpoint "/music"
[2010-02-11 11:17:03] INFO slave/open_relay_connection connecting to a1512.l4412545511.c44125.g.lm.akamaistream.net/D/1 512/44125/v0001/reflector:45511
[2010-02-11 11:17:03] WARN slave/open_relay_connection Failed to connect to a1512.l4412545511.c44125.g.lm.akamaistream. net/D/1512/44125/v0001/reflector:45511
[2010-02-11 11:17:05] INFO sighandler/_sig_die Caught signal 15, shutting down...
[2010-02-11 11:17:05] INFO main/main Shutting down


the code i've used to configure the relay is:
Code:

    <relay>
        <server>a1512.l4412545511.c44125.g.lm.akamaistream.net/D/1512/44125/v0001/reflector</server>
        <port>45511</port>
        <mount>/</mount>
        <local-mount>/music</local-mount>
        <on-demand>0</on-demand>

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



Is anyone able to give me some more information 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: Thu Feb 11, 2010 3:58 am    Post subject: Reply with quote

That link looks like an ASF stream. A format that is not supported.

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



Joined: 10 Feb 2010
Posts: 6

PostPosted: Thu Feb 11, 2010 4:18 am    Post subject: Reply with quote

Dang it. I really liked the look of icecast.


Can you recommend another program that will do what i am trying to accomplish?
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 Feb 11, 2010 4:34 am    Post subject: Reply with quote

What you want is the on-demand relay feature in icecast, but you can't have asf streams, but you can have any icecast or shoutcast stream relayed. You could try to transcode those other asf streams to vorbis or mp3/aac with something like vlc but it depends on what restrictions you want to place on the setup

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



Joined: 10 Feb 2010
Posts: 6

PostPosted: Thu Feb 11, 2010 5:47 am    Post subject: Reply with quote

the same website/radio station also offers an MP3 stream in the format of http://<ip address>:8060/file.mp3. If i was to use this instead of the other stream would this be the same as setting up relay server?

When i set it up, the server seemed to connect, but the clients failed to connect to the ogg file?



EDIT: I got it working, cheers for you help/advice... much appreciated.
Back to top
View user's profile Send private message
rec91402



Joined: 14 Nov 2009
Posts: 32

PostPosted: Thu Feb 11, 2010 9:35 pm    Post subject: Reply with quote

estens wrote:
stream in the format of http://<ip address>:8060/file.mp3. If i was to use this instead of the other stream

EDIT: I got it working, cheers for you help/advice... much appreciated.


Can you post your setup... this is similar to what I am trying to do from the sounds of it, and nothing I put in the relay section seems to work to pull the relay when some one connects to the mount on my server, and disconnect when they drop off...

THanks
Back to top
View user's profile Send private message
estens



Joined: 10 Feb 2010
Posts: 6

PostPosted: Thu Feb 11, 2010 11:21 pm    Post subject: Reply with quote

first i got the url of the stream that was in this format

http://<ip_address>:<port>/<file>.mp3

i took that and filled in the relay section to suit it.

Code:
    <!-- Relay Options -->
    <relay>
        <server><ip_address></server>
        <port><port></port>
        <mount>/<file>.mp3</mount>
        <local-mount>/<local_file>.ogg</local-mount> <!-- this file is created when stream starts -->
        <on-demand>0</on-demand>

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


Then sent the url of my internal stream to people in the office to listen to.

http://<local_ip_address>:<local_port>/<local_file>.ogg


was that easy 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: Fri Feb 12, 2010 12:27 am    Post subject: Reply with quote

I would avoid changing the extension, to indicate a different format. mp3 is not ogg and certain players will assume an extension of .ogg means an ogg stream but in fact you are relaying mp3.

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



Joined: 10 Feb 2010
Posts: 6

PostPosted: Fri Feb 12, 2010 1:11 am    Post subject: Reply with quote

cool, that may account for a few issue's i'm having on a few clients on my end... cheers.


after changing the local-mount to be file.mp3 instead of file.ogg the stream couldn't connect. am still investigating as to why, but at this stage having it set to .ogg seems to work as long as the clients are using vlc (which most of us use anyway)
Back to top
View user's profile Send private message
rec91402



Joined: 14 Nov 2009
Posts: 32

PostPosted: Tue Feb 23, 2010 8:18 pm    Post subject: Reply with quote

estens wrote:
first i got the url of the stream that was in this format




OK, I have a url in this form:

http://IP:PORT

There is nothing more, thats it. its not in the form:

http://IP:PORT/mount ONLY http://IP:PORT


<relay>
<server>IP</server>
<port>PORT</port>
<mount>/</mount>
<local-mount>/NAMEIWANTLOCALLY</local-mount> <!-- this file is created when stream starts -->
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>

I want it to be on demand, so that if some connects it pulls the source, if not it does

Does not connect... just get "Could not find the file...."

Any hints??? 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: Tue Feb 23, 2010 8:50 pm    Post subject: Reply with quote

the xml fragment is correct but "Could not find the file" does not look like an icecast message, maybe you are talking to a different server. I would of thought you would get a "Not available" message from icecast. As always check the error log.

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