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 

TIPS

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



Joined: 17 Jan 2010
Posts: 2

PostPosted: Sun Jan 17, 2010 8:04 pm    Post subject: TIPS Reply with quote

Hello!
I wanted to use an Icecast-Server instead of our Shoutcast-Server, but since my boss doesn't want that, it will not happen. Sad

BUT, i used to experiment with its features. And i think, some of you can use the info i got.

Topic: CURL -X STATS http//admin:hackme@localhost:8000/
I wanted to be able to save easily all played tracks and other things(e.g. write into irc when Moderator or Song changes). For that, i had to parse the info i got through the above command.
Here's what i did:
Create a script, e.g dosomething.sh.
After you started the Icecastserver, use following command:
CURL -X -N STATS http//admin:hackme@localhost:8000/ | /path/to/dosomething.sh

-N: non-caching, therefore, each line will piped to dosomething.sh
Now in dosomething.sh the first argument $1 is the line it gets from curl. Now you can do with it whatever you want.

Topic: Siwtching autoDJ and live.stream
The best info i got is from
http://www.centova.com/pages/faqs/display/how_does_the_automatic_live_71
Quote:
The automatic live/autoDJ switching feature makes use of IceCast's "fallback mount" support to allow your live DJs to automatically "take over" the stream when they connect in with their live source software. There is no need to stop the autoDJ -- it will continue playing (unheard) in the background while the live broadcast is in progress.

Technically speaking, it works as follows:

1. Centova Cast creates three mount points on the server:
    1. /autodj -- This is where the autoDJ connects
    2. /live -- This is where your live source is supposed to connect
    3. /stream -- This is configured to automatically duplicate /live if a live source is connected, and if not, it falls back to /autodj.

    It's a lot like having two physical MP3 players (represented by /live and /autodj) and one pair of headphones (represented by /stream). Whenever the live source is connected, the "headphones" are plugged into /live -- the /autodj player still continues to play, but since it has no "headphones", nobody can hear it. When the live source disconnects, the "headphones" are unplugged from /live and plugged back in to /autodj.


2. When the server is started, the autoDJ begins broadcasting to /autodj, so anyone who connects to /stream hears the autoDJ.

3. When your live source connects to /live, the /stream mount point immediately "plugs in" to /live, so anyone who connects to /stream hears the live broadcast.

4. When your live source disconnects from /live, the /stream mount point immediately falls back to /autodj (which has continued playing throughout your live broadcast even though nobody could hear it).

This allows seamless transitioning between live broadcasts and the autoDJ, with absolutely no silence in between.


Hope this helps somebody Wink
Back to top
View user's profile Send private message
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