Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

My own private internet radio

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
gsohler



Joined: 03 Dec 2009
Posts: 5

PostPosted: Thu Dec 03, 2009 10:31 pm    Post subject: My own private internet radio Reply with quote

Hallo,

I have got

* My MP3 Song collection
* My HArdware internet radio in my flat
* icecast2 compiled in my server

I'd like to have randomly mp3 files chosen and played over live private internet radio,
Optionally I d like to control the selection of the mp3 files with a php web page.

How can I best achieve this ?

Do I need a streaming source like darkice ?
rds
Back to top
View user's profile Send private message Send e-mail
bbk



Joined: 15 Oct 2005
Posts: 79

PostPosted: Sat Dec 05, 2009 11:29 pm    Post subject: suggestions Reply with quote

hi

i think this depends on what you whould like to do. but yes you need some kind of so called source client to stream the mp3 files to your icecast server.

i made some suggestions what could be helpful as software to use, they may need some learning how things work especially the sound issue on linux (if you use it).

do you want to stream randomly your mp3 archive?

i suggest ezstream:
http://www.icecast.org/ezstream.php

do you want to create playlists and stream them manually?

i suggest a graphical player like rhythmbox:
http://projects.gnome.org/rhythmbox/

do you want to create playlists place them in a calendar so that they will be played at a specific time?

i suggest campcaster:
http://www.campware.org/en/camp/campcaster_news/

and the last question do you want to moderate some times?

i suggest campcaster:
http://www.campware.org/en/camp/campcaster_news/
_________________
::bbk::

http://audioasyl.net
Back to top
View user's profile Send private message Visit poster's website
gsohler



Joined: 03 Dec 2009
Posts: 5

PostPosted: Mon Dec 07, 2009 7:09 am    Post subject: Reply with quote

Dear BBK,

Thank you for your instant reply. I went for ezstream and Iit looks good. I will extend
my script ( to print out pathes for the playlist) later to make my random jukenbox.
icecast and ezstream work and I can play and hear music, if i stream from the PC.

However, if I stream from my internet radio SAGEM Webtuner 500, it does not work.
It tries to reconnect every second with repeative failure.

This device has a "bar indicator, which shows the level of success. It shows
III, which means:
The streaming service of your radio station is not available or heavy loaded
or:
the Web tuner does not support the service type of the radio station
To track down the problem, I can say
* my webtuner sits in the exact same network as my pc
* there are no packets filtered by my firewall
* the offered mp3 file is 48kbps, 44.1kHz 2 channels, 16bit
* other radio stations play well with my internet radio

Does anybody know, what else could be wrong ?

I was not able to contact sagem support itself. They always reply in the form "the message was not sent" and i did not find another way to contact them.
Back to top
View user's profile Send private message Send e-mail
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Mon Dec 07, 2009 1:44 pm    Post subject: Reply with quote

Hi there!

I, too, have a couple Ruku Soundbridges and an audioactive Encoder (yes, this is the real deal Smile)

in order to have your Hardware receiver connect, you'll need to keep the following in mind.

1.. I assume you're using a router and most-likely a wireless router..

When using a router for a local connection, you can grab the local IP (example: 192.168.2.200) however, its EXTREMELY important that you do NOT use local DHCP on your lan, but to rather manually-assign all your IPs on your local network. The reason is that your local IPs will end up (re)arranging/changing on you everytime you boot (or reboot) your machines! Your hardware receiver won't be able to FIND your server/station!

.2 if the connection is wireless, also make sure the WiFi protocol and security protocols match and are compatable for both the receiver and router.. a lot of ppl make this mistake thinking their new "B" receivers will work with their N routers.. they will *NOT*! before you can chase-down the connection issues for your icecast server, varify that your receiver can connect to other stations.. catch me online and I'll be happy to send you a nice stable feed for testing.. (I'll can include diags/test tones for your audio setup as well if you need assistance)

Also make sure you are connecting to your own WiFi network and not your neighbors! This one can yield strange results- such as being able to connect to other stations, but not yourr own! the reason for this is sorta related to the above-mentioned plus having your internet-assigned IP and not your local-assigned IP (yes, they are different!).

2.. when using Icecast, you have to set a mount as well as an ip and port. this ones important to understand.

Most hardware receivers such as the Roku Soundbridge will NOT recongnize the alias tag in icecast!

To use a hardware receiver, you must assign the mount point (example: http://www.warp-radio.com:8000/warp-128.mp3 (<-mount name in bold) . If you didn't assign one within Icecast, you MUST use / instead when configuring your receiver. don't rely on the alias definations in icecast, but still use them, of course, because they DO work for standard computers and browsers.

example: To have your receiver connect to your local icecast server, put in the receiver's address tab/configuration setup tab:

192.168.1.200:8000/

and see if that helps, if you get stuck, find me online and I'll try my best to help you.

that should help you get it up and running in notime. Smile

-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
gsohler



Joined: 03 Dec 2009
Posts: 5

PostPosted: Mon Dec 07, 2009 2:50 pm    Post subject: Reply with quote

Hallo DJ-Zath,

Thank you for your instant reply!
please write me at guenther.sohler@gmx.at to request further information/files

You are wrong. For me it was easy to attach an ethernet cable and my ip radio got
a dedicated IP Address.(no DHCP). its also much more relyable than over wifi connection

it is at 192.168.10.9.
The server( where also icecast and ezstream runs) has 192.168.10.1, netmask 255.255.255.0 gateway 192.168.10.1, dns 194.183.128.35/36

From my pc at 192.168.10.2 i can easily listen music

Here are the contents of my icecast configuration files
<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
commented icecast.xml.dist file. -->
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<source-password>password</source-password>
<relay-password>password</relay-password>
<admin-user>root</admin-user>
<admin-password>password</admin-password>
</authentication>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>/var/log/</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast>

my ezstream config looks like

<ezstream>
<url>http://192.168.10.1:8000/jukebox</url>
<sourcepassword>password</sourcepassword>
<format>MP3</format>
<filename>/usr/bin/ezstream_playlist.sh</filename>
<playlist_program>1</playlist_program>
<svrinfoname>My Jukebox</svrinfoname>
<svrinfourl>http://192.168.10.1:8000/jukebox</svrinfourl>
<svrinfogenre>NDW</svrinfogenre>
<svrinfodescription>My Jukebox</svrinfodescription>
<svrinfobitrate>48</svrinfobitrate>
<svrinfochannels>2</svrinfochannels>
<svrinfosamplerate>44100</svrinfosamplerate>
<svrinfopublic>0</svrinfopublic>
</ezstream>

/usr/bin/ezstream_playlist.sh looks like:
#! /bin/sh

echo "/root/test.mp3"

/root/test.mp3 is a 48 kb/S mp3 file with 44.1kHz 16bit, 2 channels


The URL i am listening to, is

http://192.168.10.1:8000/jukebox.m3u

This works from my pc, but not from my internet hardware radio

Please notify me about all the issues, which are not 100% sane.

Thank you!
Back to top
View user's profile Send private message Send e-mail
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Mon Dec 07, 2009 3:02 pm    Post subject: Reply with quote

Quote:

You are wrong. For me it was easy to attach an ethernet cable and my ip radio got
a dedicated IP Address.(no DHCP). its also much more relyable than over wifi connection


I may have made a mistake since I don't fully-understand your setup... however, I don't believe I am wrong.

If your Receiver got a dedicated IP address, and you didn't configure one beforehand, then you ARE using DHCP..

IF you are using DHCP, and all will be fine... untill you REBOOT!

With DHCP, all IPs are assigned IN ORDER based on which machine boots first.. change that order and all hell breaks loose! Okay, to be more accurrate, the machine with the SERVER/ICECAST on it is the one that the IP MUST NEVER CHANGE or you'll be playing "musical IPs" that is to say, IF the computer that ICECAST is running on is rebooted "out of order" with the other machines (and at some point it WILL be booted out-of order") then it will receive a NEW IP- and you'll have FUN trying to FIND that new IP assignment!!

I am puzzled, however, to what you are saying is the problem.

IF you CAN tune into your Icecast server using your hardware receiver, you're saying then, you can't tune in to what?

In re-reading your post, you are saying that you can NOT tune into your Icecast server using your hardware receiver.. I have given you three possable reasons as to why that may be the case, however, instead you insult me by saying I'm wrong.. did you look at the other reasons, sir?

Try connecting your Receiver to 192.168.10.1:8000/jukebox (no .m3u)

Something else, you ARE using mp3? AAC? AACP? ogg? its important that your receiver supports the compression protocol as well.

-DjZ-
): ):
Back to top
View user's profile Send private message Visit poster's website
gsohler



Joined: 03 Dec 2009
Posts: 5

PostPosted: Mon Dec 07, 2009 3:42 pm    Post subject: Reply with quote

Sorry, by no means, I wanted to insult you!
I am sorry, if you felt so but this was not my intention.

At the internet radio, I typed in manually an ip adress (with the remote control). I selected it as such that it was still free within my network range). I did not select the WIFI nor the DHCP option. I will give you a more detailled answer tomorrow.
I probably used the word "Dedicated" in a wrong context. I am not native english.





DJ-Zath wrote:
Quote:

You are wrong. For me it was easy to attach an ethernet cable and my ip radio got
a dedicated IP Address.(no DHCP). its also much more relyable than over wifi connection


I may have made a mistake since I don't fully-understand your setup... however, I don't believe I am wrong.

If your Receiver got a dedicated IP address, and you didn't configure one beforehand, then you ARE using DHCP..

IF you are using DHCP, and all will be fine... untill you REBOOT!

With DHCP, all IPs are assigned IN ORDER based on which machine boots first.. change that order and all hell breaks loose! Okay, to be more accurrate, the machine with the SERVER/ICECAST on it is the one that the IP MUST NEVER CHANGE or you'll be playing "musical IPs" that is to say, IF the computer that ICECAST is running on is rebooted "out of order" with the other machines (and at some point it WILL be booted out-of order") then it will receive a NEW IP- and you'll have FUN trying to FIND that new IP assignment!!

I am puzzled, however, to what you are saying is the problem.

IF you CAN tune into your Icecast server using your hardware receiver, you're saying then, you can't tune in to what?

In re-reading your post, you are saying that you can NOT tune into your Icecast server using your hardware receiver.. I have given you three possable reasons as to why that may be the case, however, instead you insult me by saying I'm wrong.. did you look at the other reasons, sir?

Try connecting your Receiver to 192.168.10.1:8000/jukebox (no .m3u)

Something else, you ARE using mp3? AAC? AACP? ogg? its important that your receiver supports the compression protocol as well.

-DjZ-
): ):
Back to top
View user's profile Send private message Send e-mail
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Mon Dec 07, 2009 3:56 pm    Post subject: Reply with quote

hi there Gsohler

Sorry I got a little "hot-headed" on you.. it was just the wording you used- you basically called me a liar.

I understand it was an error in translation.

Now, back to your issue.. I assume that you are using mp3? and that the server is encoding mp3? and that the receiver is mp3-compatable?

if you're using mp3, this is likely not the issue, however, if you are sending AAC, AACP, ogg, RAW, RM, WMP, WMA, etc.. then your receiver might not be able to tune in due to incompatability.

The computer CAN tune in, of course, since most software players ARE compatable with the various formats that are being used, however, many hardware players may not be compatable with formats outside mp3 or Windows Media..

you can try and update your hardware player.. log into the player's manufacturer's website and/or check in the internal utility setup pages of the player itself to see if an update is available.

otherwise, I can't see any reason as to why you can't use the hardware player/radio to tune into icecast.

-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
gsohler



Joined: 03 Dec 2009
Posts: 5

PostPosted: Mon Dec 07, 2009 4:34 pm    Post subject: Reply with quote

Hello again,

Instead of saying "You are wrong" I would better say
"This does not apply in my case"

However, I changed the listener url to not contain .m3u
Now it works.

Thank you anyway for your great help Smile

Now enjoying my radio Smile
Back to top
View user's profile Send private message Send e-mail
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Mon Dec 07, 2009 5:49 pm    Post subject: Reply with quote

hi there:

You're welcome.. glad I could help.

-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber