Hi,

Thanks for your response Romain. Unfortunately increasing max and buffer
parameters did not help. I'll share my code with you just to make sure it's
ok ;)

#!/usr/local/bin/liquidsoap

set("log.file.path", "/tmp/radio.log")
set("log.stdout", true)

live = input.http(max=20.,buffer=15.,"http://localhost:8000/live";;)
music = playlist.safe("/mnt/music/")

def to_live(music,live)
  music = fade.final(music)
  live = fade.initial(live)
  add([music,live])
end

def to_music(live,music)
  live = fade.out(duration=3.,live)
  add([live,music])
end


radio =
fallback(track_sensitive=false,transitions=[to_live,to_music],[live,music])

output.icecast(%mp3, host="localhost", port=8000, password="hackme",
mount="radio", radio)



> Hi,
> 
> 2012/6/6 azerty88 <[email protected]>:
> > I'm new to liquidsoap, and I'm really impressed with the software, but I'm 
> > struggling with fading out a live stream.
> > I'm using a liquidsoap 1.0.0 and icecast2. The live stream is stream by 
> > icecast2 on live mountpoint and my liquidsoap script uses input.http to get 
> > it.
> >
> > here is a sample of my code:
> >
> > radio = 
> > fallback(track_sensitive=false,transitions=[to_live,to_music],[live,music])
> >
> > While transition to_live makes a really nice transition by fading out the 
> > playlist, the to_music transition fails to fade out the live stream. It's 
> > like the live stream is chopped with no fading at all. I've tried to 
> > fade.final or fade.out the live stream.
> >
> > Here is the current state of to_music() transition
> >
> > def to_music(live,music)
> >  live = fade.out(duration=3.,live)
> >  add([live,music])
> > end
> >
> >
> > Is it possible with liquidsoap to fade out live stream?
> 
> It should be and your transitions look fine.
> 
> > If so, could anyone give me a hint how to do this?
> 
> I would suggest increasing the buffer (parameters max and buffer) to
> see if that helps. Otherwise, let us know and I'll do more testings
> :-)
> 
> Romain
> 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to