| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Mon Oct 17, 2005 5:26 pm Post subject: broadcast already existing internet sound streams. |
|
|
hello all.
I want to broadcast to my LAN music from http://www.di.fm (for example). I have a FreeBSD machine. It would be very nice if you explain to me what software I need for this and with what configuration.
thx in advance. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Oct 17, 2005 8:06 pm Post subject: |
|
|
quite simple really, use icecast with a series of <relay> definitions. With 2.3 you can set any or all as on-demand.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Oct 18, 2005 1:07 pm Post subject: |
|
|
The example XML files show exactly how relays are defined and the docs explain the settings, just look for <relay>, you'll see at least server, port, mount and localmount. The pls file will contain those details although the mountpoint may be be missing in which case use / as the mount value. The asx link won't be any use as that is for a WMA stream.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Oct 18, 2005 3:21 pm Post subject: |
|
|
help me find my error, becouse I am doing somethink wrong.
| Code: |
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>102400</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password>source</source-password>
<admin-user>admin</admin-user>
<admin-password>******</admin-password>
</authentication>
<hostname>*.*</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<paths>
<basedir>/usr/local/share/icecast</basedir>
<logdir>/usr/local/share/icecast/logs</logdir>
<pidfile>/usr/local/share/icecast/icecast.pid</pidfile>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<playlistlog>playlist.log</playlistlog>
<loglevel>4</loglevel>
</logging>
<relay>
<server>www.di.fm</server>
<port>80</port>
<mount>/mp3/trance.pls</mount>
<local-mount>/trance.pls</local-mount>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
</icecast>
|
| Code: |
format-mp3/format_mp3_apply_settings mp3 interval -1
[2005-10-18 18:16:23] DBUG source/source_update_settings public set to 0
[2005-10-18 18:16:23] DBUG source/source_update_settings max listeners to -1
[2005-10-18 18:16:23] DBUG source/source_update_settings queue size to 102400
[2005-10-18 18:16:23] DBUG source/source_update_settings burst size to 65535
[2005-10-18 18:16:23] DBUG source/source_update_settings source timeout to 10
[2005-10-18 18:16:23] DBUG source/source_update_settings fallback_when_full to 0
[2005-10-18 18:16:23] DBUG connection/connection_complete_source source is ready to start
[2005-10-18 18:16:23] DBUG source/source_init Source creation complete
[2005-10-18 18:16:23] INFO source/get_next_buffer End of Stream /trance.pls
[2005-10-18 18:16:23] INFO source/source_shutdown Source "/trance.pls" exiting
[2005-10-18 18:16:23] DBUG source/source_clear_source clearing source "/trance.pls"
|
no ERROR or WARN msg in the log.
Last edited by Anonymous on Tue Oct 18, 2005 3:28 pm; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Oct 18, 2005 4:29 pm Post subject: |
|
|
why are you trying to relay a pls file, you are meant to relay the stream that the pls file refers to
"curl http://www.di.fm/mp3/classictechno.pls" tells me that the link is actually http://205.188.215.225:8004 so the server and port are those, the mount is /, localmount can be anything you want eg /trance.mp3.
BTW relay-shoutcast-metadata is on by default so you don't need to state it but IIRC some of the DI servers require the request enabled or else it returns a 404, and I don't know the reason for that either.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Oct 19, 2005 11:12 am Post subject: |
|
|
I got it working, a BIG thx to you karlH.
but I have one more problem then I access the link at di.fm it auto loads in winamp (in IE) ... but then i access my link (from my server) it starts to download it.
what can be the problem ?
realy config :
| Code: |
<relay>
<server>207.200.96.229</server>
<port>8030</port>
<mount>/</mount>
<local-mount>/drumandbass</local-mount>
</relay>
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 19, 2005 11:16 am Post subject: |
|
|
probably because you are referrring to the stream in your browser, so you browser is trying to download it. The link to use
http://<yourserver>:<port>/drumandbass.m3u
The m3u playlist is automatically created, sent to the browser and the browser should then kick off a player.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Oct 19, 2005 9:03 pm Post subject: |
|
|
it works thx for your help.
p.s could you give me a TIP how to lower bitrate, for example I have a mount that has 128 bitrate can I lower it some how 96 kbps ? My users have overall bandwidth 128 kbps and they can't listen to 128 kbps. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 19, 2005 11:02 pm Post subject: |
|
|
For mp3 you are going to be very limited, you might push it down to 96k but it will sound worse, the only other way is to reduced either samplerate or channels or both. If you go for a Vorbis stream then it will sound far better even at 64k
karl. |
|
| Back to top |
|
 |
0xFF Guest
|
Posted: Fri Oct 21, 2005 3:31 pm Post subject: |
|
|
I've gotten a lot of useful information from this thread about mirroring an existing thread. One question that comes up: If the source server goes down, will my icecast session keep trying to reconnect to the stream server, will it die, will it sit idly doing nothing? Is there a parameter in icecast.xml that should be set to attempt to reconnect if the connection is dropped?
Thanks in advance! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 21, 2005 4:21 pm Post subject: |
|
|
| 0xFF wrote: |
I've gotten a lot of useful information from this thread about mirroring an existing thread. One question that comes up: If the source server goes down, will my icecast session keep trying to reconnect to the stream server, will it die, will it sit idly doing nothing? Is there a parameter in icecast.xml that should be set to attempt to reconnect if the connection is dropped?
Thanks in advance! |
If the source of the relay stops then current listeners will either be dropped or passed to a fallback, but icecast will attempt to reconnect to the relay every <master-update-interval> seconds (default 120).
karl |
|
| Back to top |
|
 |
OxFF Guest
|
Posted: Fri Oct 21, 2005 4:52 pm Post subject: |
|
|
<master-update-interval> ... would that go in <limits> or <relay> section?
Thanks for your help |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 21, 2005 5:47 pm Post subject: |
|
|
| OxFF wrote: |
<master-update-interval> ... would that go in <limits> or <relay> section?
Thanks for your help |
Check the docs or examples, you'll see that it is neither.
karl. |
|
| Back to top |
|
 |
|