Hi Romain,

I did figure it out and now with knowing the problem, it;s kind of obvious.

The pipe() operator has a restart_on_error parameter and I assumed if the input 
it receives is a safe one with fallback then the output of it will be safe 
also. Now thinking about it, it’s not necessarily the case where processing may 
return an invalid stream or continues to fails and is restarted indefinitely.

The solution was to wrap the output of the pipe using a mksafe directive.

Thanks,

— Attila

ATTILA GYÖRFFY
I develop software.

attilagyorffy.com <http://attilagyorffy.com/> | @attilagyorffy 
<http://www.twitter.com/attilagyorffy> |  | in/attilagyorffy 
<http://linkedin.com/in/attilagyorffy> | github.com/attilagyorffy 
<http://www.github.com/attilagyorffy>

Every time you print an email, a tree is marked for death.
Trees provide O2. You need that to breathe, remember? 🌳

> On 8 Jan 2017, at 18:41, Romain Beauxis <[email protected]> wrote:
> 
> Hi,
> 
> Can you show us the whole script? I'm not sure that I see where this message 
> comes from..
> 
> Thanks!
> Romain
> 
> 2017-01-06 18:20 GMT-06:00 Attila Györffy <[email protected] 
> <mailto:[email protected]>>:
> > Hi Romain,
> >
> > Thanks for the help earlier today. I’ve tried using the pipe and then back
> > to the internal fdkaac encoder, however it looks like the pipe does not like
> > my input source:
> >
> > Invalid value at line 50, char 13-96: That source is fallible.
> >
> > Regardless of the radio source is marked as safe by having the fallback
> > mechanism in place:
> >
> > # Default, fail-safe fallback with a single track
> > default = mksafe(single("/etc/liquidsoap/fallback.mp3"))
> >
> > # Stream with fallback
> > radio = fallback(track_sensitive=false, [ live, default ])
> >
> > What is the idiomatic solution to this? Do I need to somehow mark the
> > “radio” as a whole safe instead of just having a single safe building block
> > of it?
> >
> > Thanks,
> >
> > — Attila
> >
> > ATTILA GYÖRFFY
> > I develop software.
> >
> > attilagyorffy.com <http://attilagyorffy.com/> | @attilagyorffy |  | 
> > in/attilagyorffy |
> > github.com/attilagyorffy <http://github.com/attilagyorffy>
> >
> > Every time you print an email, a tree is marked for death.
> > Trees provide O2. You need that to breathe, remember?
> >
> > On 6 Jan 2017, at 17:33, Romain Beauxis <[email protected] 
> > <mailto:[email protected]>> wrote:
> >
> > # Pipe through processing application
> > radio = pipe(process="/usr/local/bin/stereotool - - -s
> > /etc/stereotool/myradio.sts -q", radio)
> >
> > # Output using the internal %fdkaac encoder
> > output.shoutcast(%fdkaac, host="localhost", port=8000, password="testing",
> > radio)
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> > <http://sdm.link/slashdot>
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected] 
> > <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/savonet-users 
> > <https://lists.sourceforge.net/lists/listinfo/savonet-users>
> >
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! 
> http://sdm.link/slashdot_______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to