Hi! 1. I want to save incoming stream when input.harbour is active. Using output.file.mp3 directly just creates a huge empty file before live is started. I tried following but no file is created:
# Server settings for live source set( "harbor.bind_addr", "0.0.0.0" ) set( "harbor.port", ... ) set( "harbor.password", "..." ) # Accept incoming live source from Winamp or Oddcast # When live is up trigger website scripts def live_start() system( "/home/radioclave2/scripts/live_start.py &" ) ignore( execute( "live_id.start" ) ) end def live_stop() system( "/.../scripts/live_stop.py &" ) ignore( execute( "live_id.stop" ) ) end live = mksafe( input.harbor( id = "live_id", buffer = 10., max = 20., on_connect = live_start, on_disconnect = live_stop, "Live" ) ) output.file.mp3( id = "live_id", append = true, reopen_when = is_live, "/..../live/live_%Y%m%d_%H%M%S.mp3", live ) 2. What is the difference between these parameters: buffer (float | defaults to 2.): Duration of the pre-buffered data. max (float | defaults to 10.): Maximum duration of the buffered data. We tested live transmission from a club with a laptop and a 3G card last saturday. Unfortunately sound was intermittent, coming on then off with some seconds intervall. Maybe som buffering would work. Thanks! /Karye
