Old 14th July 2003, 17:54   #1
DJHardRocker
Junior Member
 
Join Date: Jul 2003
Posts: 18
Fianlly broadcasting. Now for phase 2!

Ok now that I'm broadcasting there's a few things I'm not sure of:

1) How do I make a little link thingy to listen in to my station? (i.e. The little colorful boxes people put at the bottom fo their posts that say what's playing and let you 'Listen In').

2) Also, I'm on a cable modem and my download speed is 690kbps and my upload is 116kbps. How high can I set the Encoder Settings on my DNAS plugin thingy? I wanna know the highest I can get without any real trouble. Thanks.
DJHardRocker is offline   Reply With Quote
Old 14th July 2003, 19:44   #2
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
1.

Links:

DNAS link: http://yourDNASip:yourDNASport
Listen link: http://yourDNASip:yourDNASport/listen.pls

Replace yourDNASip with the ip of the DNAS (SHOUTcast server) and yourDNASport with the DNAS port (default is 8000)

Also, if your router doesn't support local loopback then machines on the same lan as the DNAS (you) need to use the lan ip of the DNAS to connect/listen.
Machines not on the same lan as the DNAS (the rest of the world) need to use the real, world-visible ip of the DNAS to connect/listen.

See RFC1918 for more information. Scroll down and look for the section titled:
3. Private Address Space

How to find your ip address (Part I).
How to find your ip address (Part II).

Finally, you can get a static name, such as foo.bar.com (not as cool as that, though ) from http://www.no-ip.com or one of the other myriad of Dynamic DNS Services.
Then, your links would be:
DNAS link: http://foo.bar.com:yourDNASport
Listen link: http://foo.bar.com:yourDNASport/listen.pls

Signature:

I no longer grab the XML statistics from a DNAS.

Instead, I query my SAM2 (Streaming Audio Manager) which keeps the station data in a MySQL database.

My home page at http://www.festerhead.com is comprised of various SQL statements and the corresponding output.

Likewise, my signature (inspiration from Jay (KXRM)) is some PHP code that queries the database and outputs an image.

code:

<?php

// Set the header type
header("Content-Type: image/png");

// Require the database configuration code
require("XXX");

// Exercise the select statement to get what is currently playing
$SAMdb->open("SELECT songlist.artist,
songlist.album,
songlist.title
FROM songlist,
historylist
WHERE historylist.songID = songlist.ID
ORDER BY historylist.date_played DESC
LIMIT 1");

// Populate the song variable with the result
$song = $SAMdb->row();

// Build the artist, album, song strings
$artistString = "Artist: ".$song['artist'];
$albumString = " Album: ".$song['album'];
$songString = " Song: ".$song['title'];

// Initialize the length
$maxStringSize = 0;

// Bubble the longest string length to maxStringSize
if (strlen($artistString) > $maxStringSize)
$maxStringSize = strlen($artistString);
if (strlen($albumString) > $maxStringSize)
$maxStringSize = strlen($albumString);
if (strlen($songString) > $maxStringSize)
$maxStringSize = strlen($songString);

// Set a max max size
if ($maxStringSize > 80)
$maxStringSize = 80;

// Build the image length at 5 pixels per character in the longest string
$imageWidth = 5 * $maxStringSize;

// Create the image
$im = imagecreate ($imageWidth, 27);
$bgc = imagecolorallocate ($im, 255, 255, 255);
$tc = imagecolorallocate ($im, 0, 0, 0);

// Place now playing information on image
imagestring ($im, 1, 1, 0, $artistString, $tc);
imagestring ($im, 1, 1, 9, $albumString, $tc);
imagestring ($im, 1, 1, 18, $songString, $tc);

// Output the image
ImagePNG($im);

?>


You can do the same thing.
Grab your DNAS XML statistics and place the current playing artist/album/title in place of $song['artist'], $song['album'], and $song['title'] respectively.
Of course, you'll need to remove the database code.

For reference on the PHP functions above, please see http://www.php.net

For a discussion and another alternative, please see this thread.

*********************

2.
Check out the Sticky post titled:
SHOUTcast: Important Info & Answers to FAQs. READ ME!

Scroll down a bit and look for the section titled:
1. DNAS Stuff -> Bandwidth -> DSLReports Bandwidth tester(Only be concerned with the UPLOAD bandwidth)
2. DNAS Stuff -> Bandwidth -> CasterClub's Listener Calculator
3. DNAS Stuff -> Bandwidth -> CasterClub's Bandwidth Calculator

Use 1 to find your upload.
Use 2 to determine the number of listeners you can support at your selected streaming bitrate.

Jay (KXRM) also has a Bandwidth Calculator.

FesterHead is offline   Reply With Quote
Old 14th July 2003, 20:53   #3
DJHardRocker
Junior Member
 
Join Date: Jul 2003
Posts: 18
Ick... That's gonna take a while to figure out. Oh well, I know enough about HTML i should be ok. But now I can do this!

http://192.168.0.75:8000/listen.pls

I dunno if that'll work...
DJHardRocker is offline   Reply With Quote
Old 14th July 2003, 21:17   #4
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
192.168.0.75 is a lan ip and will only work for machines on your lan.

Quote:
DNAS link: http://yourDNASip:yourDNASport
Listen link: http://yourDNASip:yourDNASport/listen.pls

Replace yourDNASip with the ip of the DNAS (SHOUTcast server) and yourDNASport with the DNAS port (default is 8000)

Also, if your router doesn't support local loopback then machines on the same lan as the DNAS (you) need to use the lan ip of the DNAS to connect/listen.
Machines not on the same lan as the DNAS (the rest of the world) need to use the real, world-visible ip of the DNAS to connect/listen.

See RFC1918 for more information. Scroll down and look for the section titled:
3. Private Address Space

How to find your ip address (Part I).
How to find your ip address (Part II).

Finally, you can get a static name, such as foo.bar.com (not as cool as that, though ) from http://www.no-ip.com or one of the other myriad of Dynamic DNS Services.
Then, your links would be:
DNAS link: http://foo.bar.com:yourDNASport
Listen link: http://foo.bar.com:yourDNASport/listen.pls

FesterHead is offline   Reply With Quote
Old 15th July 2003, 08:33   #5
DJHardRocker
Junior Member
 
Join Date: Jul 2003
Posts: 18
I think i got it... check my sig.
DJHardRocker is offline   Reply With Quote
Old 15th July 2003, 13:44   #6
drzoid
Senior Member
 
Join Date: Jul 2003
Posts: 393
Quote:
Originally posted by DJHardRocker
I think i got it... check my sig.
You cannot use HTML but only vBCode

[ URL=http://192.168.0.75:8000 ][ IMG ]http://www.angelfire.com/rock3/waradio/listenlivetitle_1.jpg[ /IMG ][ /URL ]
drzoid is offline   Reply With Quote
Old 15th July 2003, 13:50   #7
drzoid
Senior Member
 
Join Date: Jul 2003
Posts: 393
Re: Fianlly broadcasting. Now for phase 2!

Quote:
Originally posted by DJHardRocker
2) Also, I'm on a cable modem and my download speed is 690kbps and my upload is 116kbps. How high can I set the Encoder Settings on my DNAS plugin thingy? I wanna know the highest I can get without any real trouble. Thanks.
Is your machine the Shoutcast server as well or are you using an external one? In the former case you can only have 116/[bit rate of your stream] users (minus 1 or 2 due to bandwidth reasons), in the latter case your bitrate should not exceed 112 kpbs.
drzoid is offline   Reply With Quote
Old 25th September 2006, 01:25   #8
iscorp216
Junior Member
 
Join Date: Sep 2006
Location: florida
Posts: 34
im lost with this whole thing
iscorp216 is offline   Reply With Quote
Old 25th September 2006, 01:31   #9
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
116kbps upload? holy slow!

even encoder at 24kbps, your get 5 listeners and your upload is GONE. 5x24 =120kbps

form your system go to this web site www.whatismyip.com and it will show you the address of your internet connection, that is the address people connect to and what your shoutcast server should (automaticly) be telling shoutcast.com when it lists your stream information.

You are goind to need more bandwidth, or just run a small stream of no more that 4 listeners, and dont chat, play games or IM while streaming since that uses bandwidth too. If you are serious about streaming, get a paid host. www.radiotoolbox.com/hosts has a great list of known server hosts that support shoutcasting.

~ D

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 25th September 2006, 01:35   #10
dotme
Moderator
 
dotme's Avatar
 
Join Date: Feb 2005
Location: USA
Posts: 4,024
Quote:
Originally posted by iscorp216
im lost with this whole thing
That seems pretty clear, since you dug up a thread that was three years old....
dotme is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump