apt-get install mplayer
http_live = input.external(restart=true, restart_on_error=true, buffer=0.2, max=10., "mplayer -really-quiet -format s16le -ao pcm:file=/dev/stdout -vc null -vo null 'http://regress78.com:8025/source.mp3' 2>/dev/null")
url = "http://regress78.com:8025/source.mp3" http_live = input.external(restart=true, restart_on_error=true, buffer=0.2, max=10., "mplayer -really-quiet -format s16le -ao pcm:file=/dev/stdout -vc null -vo null #{quote(url)} 2>/dev/null")
http_live = input.external(restart=true, restart_on_error=true, buffer=0.2, max=10., "ffmpeg -i #{quote(url)} -f wav - ")
radio = mksafe(fallback(track_sensitive=false, transitions=[src_Xfade, src_Xfade], [ strip_blank(max_blank=10., threshold=-45., live_http), music ]))
2016/11/04 19:13:22 [source:4] Source input.external_13770 gets up. 2016/11/04 19:13:22 [input.external_13770:3] Starting process
2016/11/04 19:38:43 [source:4] Garbage collected add_9285. 2016/11/04 19:38:43 [source:4] Garbage collected fade_out_9284. 2016/11/04 19:38:43 [source:4] Garbage collected sequence_9283. 2016/11/04 19:38:43 [source:4] Garbage collected fade_in_9282. 2016/11/04 19:38:43 [source:4] Garbage collected blank_9281. 2016/11/04 19:38:43 [source:4] Garbage collected replay_metadata_9280. 2016/11/04 19:38:43 [source:4] Garbage collected empty_9279. 2016/11/04 19:48:40 [input.external_9181:4] End of track.
radio = audio_to_stereo(request.dynamic( id="STREAM_PLAY", {request.create( "bar:foo", indicators=get_process_lines("/usr/bin/perl /home/solariz/getsong.pl"))}) ) radio = crossfade(start_next=3.,fade_out=2.,fade_in=1.,radio) url = "http://regress78.com:8025/source.mp3" # если айскаст местный то ********** будет лучше live_http = input.http(id="Live_Input", buffer=.1, max=5., new_track_on_metadata=true, poll_delay=1., timeout=1., url) live_http = buffer.adaptative(buffer=.2, limit=3., max=10., reset=true, mksafe(live_http)) live_http = strip_blank(max_blank=5., threshold=-45., min_noise=.3, live_http) radio = fallback(track_sensitive=false, transitions=[src_Xfade, src_Xfade], [live_http, radio]) radio = ladspa.fastlookaheadlimiter(input_gain=0.0, limit=-2.5, release_time=2.0, radio) radio = mksafe(ladspa.dysoncompress(release_time=1.0, radio))