Hi,

2011/6/25 Dennis Heerema <[email protected]>

>  How do these statements (timeout
> and server.execute("<input>.start/stop"). look in my config file?
>
> My Config file:
>
> # Input the stream,
> # from an Icecast server or any other source
> url = " http://127.0.0.1:8000/studio.aac";
> input = mksafe(input.http(url))
>
> # First transcoder: MP3 64 kbps
> output.icecast(%mp3(stereo=true, bitrate=64), host = "localhost", port =
> 8000, password = "password", mount =
> "studio.mp3",genre="various",url="http://URL 
> <http://url/>",description="Name",restart=true,
> input)
>

You should do something along the following lines (not really tested but you
should get the idea):

url = " http://127.0.0.1:8000/studio.aac";
input = mksafe(input.http(id="studio",url)) # We give the name "studio" to
the input

# We define a function to restart the input
def reset_input () =
  server.execute("studio.stop") # Stop the input
  server.execute("studio.start") # Restart it
end

add_timeout(60., reset_input) # Call reset_input every 60 sec.

output.icecast(...)

I hope this helps!

++

Sam.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to