vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Shoutcast Status 2.0 (3.5) (https://vborg.vbsupport.ru/showthread.php?t=94336)

The Realist 09-17-2005 06:37 PM

It allows you to broadcast music or any audio file from your own PC, then its transmited via the server and via your forum for members to listen to.

Laters

Quote:

Originally Posted by Wordplay
i'm not entirely sure whether or not i get this currectly. so does this let you upload and play your own music or is it just another play radio extensions software?


The Realist 09-17-2005 06:40 PM

Now another question:

Is the below details:
$song[t] = Song History:t can range from 0-19. EX: $song[0], $song[1], $song[2] .... $song[19] ----- $song[0] (zerro) is the current song playing.

Is this in the template or file?

If I change the template +$song[0] as below to +$song[19] it does not show the last 19 songs played?

<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0]</marquee></tt></td>
</tr>

Any ideas?

Laters

Zachariah 09-17-2005 07:11 PM

Quote:

Originally Posted by The Realist
Now another question:

Is the below details:
$song[t] = Song History:t can range from 0-19. EX: $song[0], $song[1], $song[2] .... $song[19] ----- $song[0] (zerro) is the current song playing.


Is this in the template or file?

If I change the template +$song[0] as below to +$song[19] it does not show the last 19 songs played?

<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0]</marquee></tt></td>
</tr>

Any ideas?

Laters

$song[0] - current song "on-air"
$song[1] - song that played before $song[0]
$song[2] - song that played before $song[1]
$song[3] - song that played before $song[2]
$song[4] - song that played before $song[3]

and soforth to $song[19]

https://vborg.vbsupport.ru/external/...chmentid=33910

all of these are in the current Hack - If installed and "on the Air" hit the collapse / expand Image.

I added the " + " (plus sign) as a place holder, it is not needed


If you want a many songs to list in the "marquee ", try:
List current and last 4 songs (total 5 songs)

Code:

<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0] + $song[1] + $song[2] + $song[3] + $song[4] + $song[5]</marquee></tt></td>
</tr>


The Realist 09-17-2005 07:34 PM

Thanks M8, testing now.

regards,

Brian

Quote:

Originally Posted by Zachariah
$song[0] - current song "on-air"
$song[1] - song that played before $song[0]
$song[2] - song that played before $song[1]
$song[3] - song that played before $song[2]
$song[4] - song that played before $song[3]

and soforth to $song[19]

https://vborg.vbsupport.ru/external/...chmentid=33910

all of these are in the current Hack - If installed and "on the Air" hit the collapse / expand Image.

I added the " + " (plus sign) as a place holder, it is not needed


If you want a many songs to list in the "marquee ", try:
List current and last 4 songs (total 5 songs)

Code:

<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0] + $song[1] + $song[2] + $song[3] + $song[4] + $song[5]</marquee></tt></td>
</tr>



Logik 09-25-2005 04:22 AM

I need help, i added all the information in the plug in, but it still says that my server isnt up, and it is. I cant enable it, im uh, lost :) thanks

Logik 09-25-2005 04:23 AM

// Shoutcast Server Stats
$scdef = "UGM Shoutcast";
$scip = "68.59.104.15";
$scport = "8000";
$scpass = "password";
$ircsite = "irc.server.net";
//End configuration

thats my code... whats wrong

Zachariah 09-25-2005 02:53 PM

all looks correct :)

I have had another person have problems and here is what they did....


Isn't it a bummer when you find you cant use a good script cause your hosting provider is blocking outgoing an all non descript ports and your website is not on the same server as something like a shoutcast stream.

Dont let that stop you if an xml file is behind a port that you cant access from your site try something like this mod I did for this shoutcast hack

Extra requirements: LyNX browser on your shoutcast server - this is a command line browser, if your on a shoutcast shell you would normally find it allready is installed
If you have your own dedicated server for streaming its not hard to install if it isnt allready there

usage here lynx = starts the browser
-auth= to get into protected directories/files
-source will drop the content source to stdout
1> filename will trap the stdout to a file

lynx then just drops straigh back to command line ready for the next command as you added the switches for its job
eg:
Code:

lynx -auth=admin:dNASpasshere -source http://dNAS-IP-Or-Domain:port/admin.cgi?mode=viewxml 1> /webserver/path/public_html/filename.xml
to automate this just add a crontrab entry, dont do this till you are satisfied you have it right ;)

How to install so you can grab your shoutcast status from a permitted port 80:

You will need the files from the hack and a simple edit.

Find:
PHP Code:

// ######################## CONFIGURATION AREA ############################

$scdef "Shoutcast";   // Default station name
$scip "0.0.0.0";   // ip or url of shoutcast server
$scport "8000";        // port of shoutcast server
$scpass "CHANGEME";      // admin password (not DJ) to shoutcast server
$ircsite "irc.server.net";   // IRC Server - EX: irc.server.com

// ######################## END CONFIGURATION AREA ############################ 

change to:

PHP Code:

// ######################## CONFIGURATION AREA ############################
$domain "www.domainhere.com";  // The domain to retrieve the xml
$xmlfile "filename.xml";  //xml filename from your saved stdout 1> filename.xml
$scdef "Shoutcast";   // Default station name
$scip "0.0.0.0";   // ip or url of shoutcast server
$scport "8000";        // port of shoutcast server
$scpass "CHANGEME";      // admin password (not DJ) to shoutcast server - In LynX to www mode no need for it
$ircsite "irc.server.net";   // IRC Server - EX: irc.server.com

// ######################## END CONFIGURATION AREA ############################ 

Now edit the config section to suit. noting the 2 extra bits here

do the template bits and upload the images and index.php file as directed in the hack

run your lynx command in shell and then check out your Shoutcast module page if it worked great
you may want to try it a few times before you add your crontab entry.

Adding crontab from shell is easy, you will more than likely enter the vi editor after issuing the command crontab -e
you might want to do crontab -l first and copy that text safe, so you can easily restore the original cron entries if you mess up.

move your cursor to the line above where you would like your new cron line, hit o
now your in insert mode copy to your clip board your prepared cron line, to run this every 5 minutes would look something like:

Code:

*/5 * * * * lynx -auth=admin:dNASpasshere -source http://dNAS-IP-Or-Domain:port/admin.cgi?mode=viewxml 1> /webserver/path/public_html/filename.xml
paste it in (shift + insert)

hit the esc key

now input :x and hit enter to install your new crontab

enjoy :)

Logik 09-25-2005 06:44 PM

i dont really understand that :x

Zachariah 09-25-2005 10:01 PM

Quote:

Originally Posted by Logik
i dont really understand that :x

You might edit the Shoutcast server config file "sc_serv.ini" and change the port from 8000 to 80 and see if your host can get the stats from your shoutcast server.

Rem to edit your plugin to the new port also.

Logik 09-25-2005 11:07 PM

ahh yes, that worked <333 Thanks man!

Logik 09-25-2005 11:09 PM

ok now under the current song it doesnt show a song..hm

Zachariah 09-25-2005 11:37 PM

Quote:

Originally Posted by Logik
ok now under the current song it doesnt show a song..hm

Good to see that worked :D

The ID3v1 tag is on each Mp3. You can access it getting the "options" of a song in your Winamp Playlist.

I USE:
Quote:

MP3Ext is an extension for the Windows Explorer.
It enhances it, so you can get information in many ways:

A PropertyPage is installed, where you can fully edit the ID3-Tag
An icon-handler for individual icons is included too
Tooltips, when you simply leave the mouse over the MP3-file (only with IE4.0 Active Desktop)

--------------------------------------------------------------------------------
The features in more detail are:
install/uninstall feature
running on Win95 / WinNT 4.0
multithreaded
easy to use GUI
editing of multiple files
ID3v2 support: this includes unlimited strings, classic support, ...
automatic generation of the ID3-tag from the filename
exporting the information in a file or clipboard
customizable Tooltips
it's giftware

What is ID3 (v1)?
The audio format MPEG layer I, layer II and layer III (MP3) has no native way of saving information about the contents, except for some simple yes/no parameters like "private", "copyrighted" and "original home" (meaning this is the original file and not a copy). A solution to this problem was introduced with the program "Studio3" by Eric Kemp alias NamkraD in 1996. By adding a small chunk of extra data in the end of the file one could get the MP3 file to carry information about the audio and not just the audio itself.

The placement of the tag, as the data was called, was probably chosen as there were little chance that it should disturb decoders. In order to make it easy to detect a fixed size of 128 bytes was chosen. The tag has the following layout (as hinted by the scheme to the right):

Song title: 30 characters
Artist: 30 characters
Album: 30 characters
Year: 4 characters
Comment: 30 characters
Genre: 1 byte


If you one sum the the size of all these fields we see that 30+30+30+4+30+1 equals 125 bytes and not 128 bytes. The missing three bytes can be found at the very beginning of the tag, before the song title. These three bytes are always "TAG" and is the identification that this is indeed a ID3 tag. The easiest way to find a ID3v1/1.1 tag is to look for the word "TAG" 128 bytes from the end of a file.

As all artists doesn't have a 30 character name it is said that if there is some bytes left after the information is entered in the field, those bytes should be fille with the binary value 0. You might also think that you cannot write that much in the genre field, being one byte big, but it is more clever than that. The byte value you enter in the genre field corresponds to a value in a predefined list. The list that Eric Kemp created had 80 entries, ranging from 0 to 79.

What is ID3v1.1?
ID3v1 may well be easy to implement for programmers, but it sure is frustrating for those with their own, creative ideas. Since the ID3v1 tag had a fixed size and no space marked "Reserved for future use", there isn't really room for that much improvement, if you want to maintain compatibility with existing software.

One who found a way out was Michael Mutschler who made a quite clever improvement on ID3v1. Since all non-filled fields must be padded with zeroed bytes its a good assumption that all ID3v1 readers will stop reading the field when they encounter a zeroed byte. If the second last byte of a field is zeroed and the last one isn't we have an extra byte to fill with information. As the comments field is to short to write anything useful in the ID3v1.1 standard declares that this field should be 28 characters, that the next byte always should be zero and that the last byte before the genre byte should contain which track on the CD this music comes from.

Logik 09-25-2005 11:41 PM

man u always lose me.

Zachariah 09-25-2005 11:45 PM

Quote:

Originally Posted by Logik
man u always lose me.

For the info of song title and artists to show up in car mp3 radios, portables, and the shoutcast system you will need to fill out the ID3v1 tag . If you do not, most systems give a "dash" as the feed title vs. the mp3 file name.

Another note:
ID3v2 tag can be filled out, but if it is blank of data and is enabled to send data then the feed will also show a "dash" w/o file info.

If that is ok.

Then

Are you useing winamp to cast ?
Make sure the Auto has the checks marks and [x] enable title updates
https://vborg.vbsupport.ru/external/...chmentid=26525

Logik 09-25-2005 11:50 PM

My mp3s have id3 tags and it still doesnt show...?

Logik 09-25-2005 11:51 PM

ok got it man got it thanks

Pramodinfo 10-01-2005 07:32 PM

Installed on vb 3.5.0 works like a charm, thanks for the hack :)

Zachariah 10-01-2005 08:12 PM

Quote:

Originally Posted by Pramodinfo
Installed on vb 3.5.0 works like a charm, thanks for the hack :)

Glad to see it helped :)

carrie31 10-02-2005 11:01 PM

it's awesome 。。。just wonder whether there is a lite version of this hack ? 。。。have no idea how to set the config and how to get the password :(

Sooner95 10-03-2005 07:32 PM

Yea, I liked the Lite version too, is there going to be one for 3.5? if not, I can go the Full route if needed.. Thanks

Zachariah 10-03-2005 07:51 PM

Yes a light ver is soon. Perhaps tonight.

Sooner95 10-03-2005 10:03 PM

that's all I needed to know... Will be awaiting it. Thx!

Zachariah 10-04-2005 01:07 AM

Quote:

Originally Posted by Sooner95
that's all I needed to know... Will be awaiting it. Thx!

Shoutcast Status Lite

:D

Wasim 10-06-2005 07:17 AM

wow, i love this hack. I wonder if there is any possible way to have users vote what song will play next from the playlist. Or maybe give the users a choice of three songs and they vote for the next song from those choices. That would be awesome!

Still an awesome hack.

Zachariah 10-06-2005 12:59 PM

Quote:

Originally Posted by Wasim
wow, i love this hack. I wonder if there is any possible way to have users vote what song will play next from the playlist. Or maybe give the users a choice of three songs and they vote for the next song from those choices. That would be awesome!

Still an awesome hack.

There are DJ/Server packages out there with full Web request, stats, playlists, all types of stuff. You would use this to connect to the shoutcast server insted of winamp. Usaly on a detecated system or what ever you have :D

1 place ( there are many out there)
http://www.spacialaudio.com/products/index.html

I think I seen a few "less toy" free / low cost ver. out there on the net over the years. I still use winamp 2.91 ;D

jklimczak 10-08-2005 02:59 PM

has any one used stream cast with this hack

Zachariah 10-08-2005 06:45 PM

Quote:

Originally Posted by jklimczak
has any one used stream cast with this hack

I do not know. Give me info on the system. I might be able to whip something up.

jklimczak 10-11-2005 10:07 PM

<a href="http://www.steamcast.com/" target="_blank">http://www.steamcast.com/</a> its like shoutcast Just plays aol meda player as well I tryed it and it will not connect to the page

Zachariah 10-11-2005 10:25 PM

Quote:

Originally Posted by jklimczak
http://www.steamcast.com/ its like shoutcast Just plays aol meda player as well I tryed it and it will not connect to the page

I will have something soon.

Zachariah 10-17-2005 12:53 AM

Quote:

Originally Posted by jklimczak
http://www.steamcast.com/ its like shoutcast Just plays aol meda player as well I tryed it and it will not connect to the page

Got one made and working.
https://vborg.vbsupport.ru/showthread.php?t=98538

jklimczak 10-17-2005 09:03 PM

Quote:

Originally Posted by Zachariah

u are the Best

jesus likes pie 10-18-2005 12:47 AM

It says the server is down but I know that I entered all the info in correctly and it is up...

Zachariah 10-18-2005 01:01 AM

Quote:

Originally Posted by jesus likes pie
It says the server is down but I know that I entered all the info in correctly and it is up...



Admincp => Plugin Manager => Hook Location : forumhome_complete => Shoutcast Status Full - Main => EDIT


- Change values with in the "quotes" to your shoutcast server settings.

//Configuration
$scdef = "Server Name";
$scip = "xxx.xxx.xxx.xxx";
$scport = "8000";
$scpass = "changeme"; // admin password to (not DJ) shoutcast server
$ircsite = "irc.server.com";
//End configuration

Make sure there are no spaces "xxx.xxx.xxx.xxx ", "password "

If there is a space inside the quotes it will not work.

Pramodinfo 10-18-2005 08:35 AM

Zachariah ,waitng for the multistream version please :)

jesus likes pie 10-18-2005 10:07 AM

// Shoutcast Server Stats
$scdef = "UberGamers Radio";
$scip = "butter.sytes.net";
$scport = "8001";
$scpass = "xxxxx";
$ircsite = "irc.vbulletin-fans.com";
//End configuration

Still doesn't work.

Zachariah 10-18-2005 01:33 PM

Quote:

Originally Posted by jesus likes pie
// Shoutcast Server Stats
$scdef = "UberGamers Radio";
$scip = "butter.sytes.net";
$scport = "8001";
$scpass = "xxxxx";
$ircsite = "irc.vbulletin-fans.com";
//End configuration

Still doesn't work.

I do not see a problem w/ dynamic DNS host. (but, a real IP will respond faster). I see port 8001 vs. 8000.

If you edit your sc_serv.ini file of your shoutcast server config file.

Quote:

; PortBase. This is the IP port number your server will run on. The
; value, and the value + 1 must be available. If you get a fatal error when
; the DNAS is setting up a socket on startup, make sure nothing else on the
; machine is running on the same port (telnet localhost portnumber -- if you
; get connection refused then you're clear to use that port). Ports < 1024
; may require root privledges on *nix machines. The default port is 8000.
PortBase=8000
Then your server opens another port +1 (IE: 8001) the shoutcast Hack needs to be set to "PortBase". You need to open any firewalls (8000,8001) and port forward them to your local LAN shoucast server if behind a router.

jesus likes pie 10-18-2005 03:30 PM

yes, my portbase is 8001, so I have 8001 and 8002 open in my router. A reak IP doesnt work either...funny because this used to work before, I was using the first release (see my post on page number 1), but then we stopped broadcasting. We started again last night, upgraded, and now it doesn't work...

By the way, the D.J is not hosting the server if that makes a difference.

znop 10-22-2005 01:23 PM

// Shoutcast Server Stats
$scdef = "idoRadio";
$scip = "62.193.243.147";
$scport = "6060";
$scpass = "x";
$ircsite = "";
//End configuration

i have done it like that but my radio seems offline
what is wrong?

NuclioN 10-22-2005 01:26 PM

Great add. Can you please make it so that nothing of the offline info (buttons etc.) is visible when shoutcast is offline?

Zachariah 10-22-2005 02:03 PM

Quote:

Originally Posted by NuclioN
Great add. Can you please make it so that nothing of the offline info (buttons etc.) is visible when shoutcast is offline?

edit:
forumhome_shoutcast_off

remove all content

save

Don't remove the template just "empty" it.


All times are GMT. The time now is 04:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01498 seconds
  • Memory Usage 1,866KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete