LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 July 5 2012

rolf
Member

My Internet Radio Station

Hello,

So far it only plays 2 tracks, and I'm not sure if it works, the sound is cutting up pretty bad and I'm not sure whether it's from the connection or the server or where exactly... but it's a start...

PS: Something is wrong in my setup... I had posted a link but I removed it because I don't want to post links to stuff that is broken...

Last edited by rolf (July 5 2012)

Offline

#2 July 6 2012

Rodster
Member

Re: My Internet Radio Station

sounds intresting how did you do it?

Offline

#3 July 6 2012

rolf
Member

Re: My Internet Radio Station

Rodster wrote:

sounds intresting how did you do it?

I installed IceCast. Icecats is a streaming server but it needs a "source client". In other words Icecast don't do much, if anything at all :). So I tried Ices2 as a streaming client.
I have 2 ogg tracks songs on my server. It played the first one perfectly, but every time it got at the end of the second one, it hangs indefinitely, giving mysterious messages about "sleeping for 5 seconds". I read somewhere that it could be caused by a corrupt ogg track. Even if it's the case, this is not acceptable, and on top of that it used 3% CPU.
So I tried replacing Ices2 with Icegenerator, which is a source client that does not transcode media, so it should use virtually 0 CPU. I had to download several libraries to compile it, and it seems the code dates back from 2004... but I somehow got it to work. It uses 0 CPU, but the audio is cutting up pretty badly, as I previously mentioned. I have yet to try it with mp3 files instead of ogg.
Other options for a source client are darkice (which seems more complex). And I could also try Shoutcast instead of Icecast, it looks more solid and more widely used.

Of course it all happens on an Ubuntu VPS that I normally use for web hosting (which is why I don't want to hog the CPU) - I wouldn't try it on my home connection.

Offline

#4 July 6 2012

Fischer
Member

Re: My Internet Radio Station

Well me and my friend have created a very cool radio on musicville.fm we worked on it about 6 moths ago and now it's down coz we need money to buy better servers and get more bandwidth

we installed shoutcast on centos vps, we used a website like this one to create a flash music player, it plays mp3

http://www.museter.com/SHOUTcast_Hostin … Player.php

(i forgot which player generator we used, but you get the idea)

if you need my help pm me i'll do it for free, I love 4 things in life, playing harmonica, chess, python programming and working on a linux server, i can spend the whole day working on a server, i really enjoy it

Last edited by someone (July 6 2012)

Offline

#5 July 6 2012

rolf
Member

Re: My Internet Radio Station

someone wrote:

if you need my help pm me i'll do it for free, I love 4 things in life, playing harmonica, chess, python programming and working on a linux server, i can spend the whole day working on a server, i really enjoy it

Only these 4 things? ;)

someone wrote:

Well me and my friend have created a very cool radio on musicville.fm we worked on it about 6 moths ago and now it's down coz we need money to buy better servers and get more bandwidth

we installed shoutcast on centos vps, we used a website like this one to create a flash music player, it plays mp3

http://www.museter.com/SHOUTcast_Hostin … Player.php

(i forgot which player generator we used, but you get the idea)

Thanks a lot for the tip!

It seems that my station is listenable today. I think it's a change I made in the config, I disabled "updating the meta every 5 seconds" (whatever that means), I noticed that the music was cutting up roughly every five seconds...

So now I can share my test link:
http://weknowtoomuch.com:8000/example.ogg.m3u
or directly at:
http://weknowtoomuch.com:8000/example.ogg

There are only two tracks in the playlist so if you listen more then 5 minutes you'll be deceived :)

I have unlimited traffic on my VPS, so my main concern was CPU, but now that I got this particular setup working, that's not a concern anymore either. I also have gigs of storage.

You are welcome to join, participate, contribute... but I think I have the command line work covered at that point :) thanks for proposing anyway.

Offline

#6 July 6 2012

Fischer
Member

Re: My Internet Radio Station

Only these 4 things? ;)

i forgot to mention my gf google :)

would you please tell me which vps provider did you choose to host your website? if they give you unlimited bandwidth then it might be good for musicville coz there are about 10 000 mp3 downloads per day so it uses a lot of bandwidth

Offline

#7 July 7 2012

rolf
Member

Re: My Internet Radio Station

I'm registered with hosteurope.de
Unfortunately their offerings are in German, and their control panel too! But if you send a mail to support they can answer in English, and some of their system in English. I can help you set it up, if you want, since that's the most annoying part - after that there should be no need to log in to their control panel at all... I have forgotten my password and haven't logged into there for months! (if not a year...). I should though, for making a snapshot backup, but to get a new password I have to call them which is a bit annoying.

Here are the offerings for Linux servers:
http://www.hosteurope.de/produkte/Virtu … uebersicht

Linus OS images are Ubuntu, CentOs and Debian.

Traffic policy, as far as I can understand from this page, using my limited knowledge of German:
http://www.hosteurope.de/index.php?func … 27&menu=36
Bandwidth is 100 MB/s, traffic is unlimited, in case of overuse, they reserve the right to reduce it to 50 MB/s.

We could also try to cooperate and host it on my account, if you're interested. In any case let me know if you need any help.

Last edited by rolf (July 7 2012)

Offline

#8 July 7 2012

Fischer
Member

Re: My Internet Radio Station

well musicville is for my friend, i just helped him with some php scripting and server administration... I'll talk to my friend and let you know :)

Offline

#9 July 7 2012

rolf
Member

Re: My Internet Radio Station

I've uploaded some tracks and put up a page about it

http://weknowtoomuch.com/radio/

Offline

Board footer