Hi,
Le ven. 8 févr. 2019 à 06:23, Thorben Dahl <thor...@sjostrom.no> a écrit : > > Thanks for the heads-up! > > On 01.02.2019 22:00, Romain Beauxis wrote: > > Some of the future changes have in mind are: > - Remove transitions in fallback/switch operators. As noticed in #695, these > transitions do not often work as expected and make the code more complicated. > They can be handled in smart_crossfade where they would work as expected. > > > Let me know what are you guys thoughts on these changes and, in particular, > if some of y'all do use crossfade instead of smart_crossfade for a specific > reason and the same with fallback/switch transitions. > > I'd just like to know if our specific use of transitions on fallback is > possible with smart_crossfade? Basically, what we do is start a separate > program (through SystemD) when we detect silence on our live source, and stop > that program when there is sound again. That program then notifies us about > the problem in a Slack channel and keeps running to assist us, and also > notifies us when the problem is fixed (in other words, when the program > receives SIGTERM). This is implemented in our LiquidSoap script like this: > > # Functions for transitioning to and from silence/error > def silence_start(from, to) > system("sudo --non-interactive /bin/systemctl start silence-notifier") > fade.initial(to, duration=1.) > end > > def silence_stop(from, to) > system("sudo --non-interactive /bin/systemctl stop silence-notifier") > fade.initial(to, duration=1.) > end > > # Live radio source > radio = input.alsa() > radio = mksafe(radio) > radio = strip_blank(max_blank=12., min_noise=0.3, threshold=-45., > track_sensitive=false, radio) > > # Backup error source > error = # some infallible source, in our case playlist.safe(...) > > # Our usage of transitions > stream = fallback(track_sensitive=false, [radio, error], > transitions=[silence_stop, silence_start]) > # ... > > This is working very well with our current setup, and I could not see any > good way of achieving this with smart_crossfade, at least not with the > version documented at > https://www.liquidsoap.info/doc-1.3.6/reference.html#smart_crossfade. I > generally don't see how you would go about setting up specific transitions > depending on what source you are transitioning to, without using transitions > in fallback or switch? I hope at least parts of this functionality can be > kept in one way or another. I've been working on the crossfade cleanup and eventually decided against removing switch/fallback transitions. I'm gonna make some changes on them but that shouldn't impact the way your script runs at the moment. I'll send a second alpha release out when I'm done with this part of the work. Thanks for the feedback! Romain _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users