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 

Starting stopping ices encoding when clients connect/disconn

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





PostPosted: Sat Apr 26, 2008 4:06 pm    Post subject: Starting stopping ices encoding when clients connect/disconn Reply with quote

I have a small Mini-ITX based Gentoo server that I use to host Twonkyvision UPnP media to my Terratec Noxons and PS3.

I have broadband bandwidth caps, but love listening to internet radio. Many of the stations I listen to are already being transmitted for free, on my Sky satellite (which is very close to my server).

I have been fiddling with running the line out from the sat box, to the line-in on the ITX PC, and then broadcasting it, so it can be picked up as any other net radio station (but a local one, that does not sap my bandwidth allowance).

I got it working (ish) with Icecast and ices2.1, using OGG format (which Noxon streams OK, but the PS3 does not). The problem I have, is the overhead of permenantly encoding and streaming it pegs my CPU at near 100% for the OGG encode.

Anyone know of a less CPU intensive solution? I am thinking streaming PCM, if I can. The other solution, is to somehow get the encoding process to start/stop when clients connect and disconnect (this is a LAN only icecast, as the only time it will be in use, is if someone around the home uses it).

Seems a really bad idea to permenantly encode and stream, when nobody is connected!!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Apr 26, 2008 5:01 pm    Post subject: Reply with quote

The only way I know you can start and stop a source client on-the-fly is by using the listener add/remove options in url auth. If listener_add called and the listener count is 0 then kick off the source cliient and wait a little before sending ok back to the listener. The remove could stop the source client when the listener count drops back to 0 again.

karl.
Back to top
View user's profile Send private message Send e-mail 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