mIRC Homepage
Posted By: evilking #1: Shoutcast / sockets - 02/12/04 04:11 PM
how do i bring mIRC itself to stream mp3's to a shoutcast server using sockets?
Posted By: Danthemandoo Re: #1: Shoutcast / sockets - 02/12/04 07:20 PM
u want to use mirc to stream the MP3s to the server directly using sockets? I severly doubt this is possible.
Posted By: sparta Re: #1: Shoutcast / sockets - 02/12/04 08:02 PM
i guess he means like winamp send to shoutcast ?
Posted By: tontito Re: #1: Shoutcast / sockets - 02/12/04 08:56 PM
maybe, but i am positive that mirc can shoutcast directly to users

i have made one server for that smile
Posted By: MTec89 Re: #1: Shoutcast / sockets - 02/12/04 09:33 PM
connect to the stream using sockets, write to a file, play file in mirc... its been done before, in mircscript, easy... i dont know the specifics though
Posted By: Artwerks Re: #1: Shoutcast / sockets - 04/12/04 07:40 PM
MTec89 : yeah, listening to shoutcast servers is not complicated, but that's not what he wanted. He wanted to send the stream from mIRC to the shoutcast server.

I don't know the specifications for that type of sending, but I think you'd have to connect to the shoutcast, and then, following the protocols, send the file reading for example 16 000 bytes every second for a mp3 encoded in 128 kbps (as 128 / 8 = 16).
Posted By: tontito Re: #1: Shoutcast / sockets - 13/12/04 03:29 PM
Quote:
MTec89 : yeah, listening to shoutcast servers is not complicated, but that's not what he wanted. He wanted to send the stream from mIRC to the shoutcast server.

I don't know the specifications for that type of sending, but I think you'd have to connect to the shoutcast, and then, following the protocols, send the file reading for example 16 000 bytes every second for a mp3 encoded in 128 kbps (as 128 / 8 = 16).



hello, there are ways to find that,
if the interface that is normally used to connect to the shoutcast server supports proxys, with my proxy server in logging mode, people are able to see what is the protocol used.
After that it can be more or less easily implemented...
Posted By: Qb_Master2004 Re: #1: Shoutcast / sockets - 24/12/04 05:22 AM
Heh I've done this challenge, called my script MCast(mIRC Cast, similar to SHOUTcast)...I am constantly improving on this, and now I'm at the point where I'm ready to get a dll so that I can have voice with it too! So yeah, it can definetly be done smile

The challenge is not being a DJ with an mirc script, that is pretty easy when you know the howabouts. The challenge is to make a script that will listen in to a SHOUTcast stream...it's easy to download the music but it is NOT easy to download and play to the same file, in a streaming manner, and /splay is too slow updating to switch files constantly.

here is what the SHOUTcast DJ tool(for winamp) does upon connection


>> <sockopen> ;opening socket
>> [stream-pass] <$crlf> ;sending authorization
<< icy-caps:11 ;authorization accepted
;sending stream info \/ \/ \/ \/
>> Icy-name:[stream-name]
>> Icy-genre:[genre]
>> Icy-url:[stream url]
>> Icy-irc:[irc]
>> Icy-icq:[icq #]
>> Icy-aim[aim name]
>> Icy-pub:1
>> Icy-br:24
;ready to stream - stream mp3 data within 30 seconds of this time.........note that you will have to do some work to figure out how much of the file you're supposed to send at a time(send too much and it skips, send too little and it buffers)

also, there is a way to update the name of the song but I'm not going to share it -- give yall at least a little work :P(if ya really really wanna know and can't figure out how to put it into ur script email me: Qb_Master2003@yahoo.com )

told ya it could be done grin
© mIRC Discussion Forums