Shoutcast

Need help? Post your questions here.

Moderator: moderators

Postby ccandreva » Wed Sep 15, 2010 2:44 pm

The first link brings up a web page, the second is a direct link to an audio stream.

The link I posted for Rock Radio 1 downloads a .pls file.

Don't know if that helps.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Postby j3tblk » Wed Sep 15, 2010 2:49 pm

ccandreva wrote:The first link brings up a web page, the second is a direct link to an audio stream.

The link I posted for Rock Radio 1 downloads a .pls file.

Don't know if that helps.


Yeah you see that "web page" is riding the same port as the Shoutcast stream, that's a page that is diplayed to let you know the server is alive and healthy but a Shoutcast capable device will connect to music. They "authenticate" each connection to prevent overloading the server.

SHOUTcast can serve three different types of response:

a native-SHOUTcast “ICY” protocol streaming audio response. It decides to do this if the player accessing the stream includes an icy-metadata: 1 header.

a plain-HTTP streaming audio response, without extra metadata, for media players with no ICY support.

the “SHOUTcast D.N.A.S. Status” page and other pages on the web interface.

hey thanks for the replies... -I think I've got the basics covered though.
j3tblk
 
Posts: 117
Joined: Thu Jun 03, 2010 3:51 pm

Postby j3tblk » Wed Sep 15, 2010 3:51 pm

okay I'm trying to form a URL with all the information needed to connect to a Shoutcast server



1. The source makes a connection to the service port (shoutcast's is the port +1)
2. The source then sends the password like so password\r\n
3. If the password is correct, the server will reply with OK2\r\nicy-caps:11\r\n\r\n, this basically informs the source that the server has authorized the dsp to be the source and it is ready for data. If the password is incorrect, the server sends invalid password\r\n.
4. If the source receives the OK2, it then begins sending information about the stream to the server.

Then the source will begin sending the mp3 encoded stream
* icy-name is the name of the stations
* icy-genre is the genre that the station resides in
* icy-pub is basically a switch to either allow the server to publish itself in the directory or not (1 meaning yes and 0 meaning no)
* icy-br is the bitrate of the stream
* icy-url is the homepage for the stream
* icy-irc is yp shoutcast specific (used for contact information)
* icy-icq is yp shoutcast specific (used for contact information)
* icy-aim is yp shoutcast specific (used for contact information)
j3tblk
 
Posts: 117
Joined: Thu Jun 03, 2010 3:51 pm

Postby j3tblk » Wed Sep 15, 2010 3:53 pm

Okay switching "http" to "icy" in the URL bypasses the player check and will start a stream but it is in an external player...now I need to figure out how to get the streamt o stay inside of flash...

I've tried arguments but that failed.

/?type=.flv

no go.

Any help\thoughts would be appreciated!!
j3tblk
 
Posts: 117
Joined: Thu Jun 03, 2010 3:51 pm

Postby darvil » Sat Sep 18, 2010 10:45 am

I'm also interested in this.

Having the playlist streaming to a shoutcast is definitely a win.
darvil
 
Posts: 10
Joined: Fri Sep 17, 2010 5:09 am

Re: Shoutcast

Postby j3tblk » Sat Oct 27, 2012 8:59 am

That awkward moment when you find your own posts from 2 years ago for help... glad I put the URLs in here...
j3tblk
 
Posts: 117
Joined: Thu Jun 03, 2010 3:51 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests