Hi David,
Thanks for the reply. It does fallback thanks. I am blaming lack of sleep
for my bad tests...=).
JD
On Mon, Feb 10, 2014 at 10:17 AM, David Baelde <[email protected]>wrote:
> Hi,
>
> With your code if the http source(s) can't connect, and the queue is
> empty, I don't see to what it should fallback.
>
> In any case, an http source does not produce anything when it fails to
> connect, and thus in those cases the fallback will fall back to the
> next source just as it would do with any other sources that fails to
> stream.
>
> Cheers,
>
> David
>
> On Fri, Feb 7, 2014 at 3:25 PM, Leonard de Ruijter <[email protected]>
> wrote:
> > Does a fallback to blank take place when you assign mksafe(source2) to
> > your output?
> >
> > On 2/7/2014 3:22 PM, JD Buys wrote:
> >> The get_source_by_order method does work correctly, but you can test it
> >> with fallback(track_sensitive=false,[source1,source2,source3]) and then
> >> starting for e.g source2, then you will see source2 trying to connect
> >> but obviously failing, and no fallback.
> >>
> >> JD
> >>
> >>
> >> On Fri, Feb 7, 2014 at 4:03 PM, Leonard de Ruijter <[email protected]
> >> <mailto:[email protected]>> wrote:
> >>
> >> Hi,
> >>
> >> Are you sure the get_source_by_order function is working properly?
> >> Where's this function meant for? Is there anything against
> >> fallback(track_sensitive=false,[source1,source2,source3])?
> >>
> >> On 2/7/2014 2:51 PM, JD Buys wrote:
> >> > Hi,
> >> >
> >> > Here's a part of my script:
> >> >
> >> > source1=request.queue(id="queue",length=10.0)
> >> >
> >> source2=input.http(id="source2","http://localhost/mount1
> ",autostart=false,timeout=3.)
> >> >
> >> source3=input.http(id="source3","http://localhost/mount2
> ",autostart=false,timeout=3.)
> >> >
> >> > def the_source
> >> > fallback(track_sensitive=false,[get_source_by_order(first),
> >> > get_source_by_order(second), get_source_by_order(third)])
> >> > end
> >> >
> >> > source=the_source
> >> > source=audio_to_stereo(id="source",source)
> >> > source=server.insert_metadata(id="source", source)
> >> > add_skip_command(source)
> >> >
> >> > source = mksafe(source)
> >> >
> >> >
> >>
> output.icecast(%fdkaac(channels=2,bitrate=32,samplerate=44100,aot="mpeg4_he_aac_v2",transmux="adts",
> >> > sbr_mode=true),host="10.111.125.5",port=80, password="password",
> >> > mount="mount3",source)
> >> >
> >> >
> >> >
> >> > On Fri, Feb 7, 2014 at 3:44 PM, Leonard de Ruijter
> >> <[email protected] <mailto:[email protected]>
> >> > <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >> >
> >> > Hello,
> >> >
> >> > Could you give a code example? That might help me and others
> >> help you
> >> > solve the issue.
> >> >
> >> > Regards,
> >> > Leonard
> >> >
> >> > On 2/7/2014 2:38 PM, JD Buys wrote:
> >> > > Hi,
> >> > >
> >> > > How do I get a http.input source to fallback when it can't
> >> connect to
> >> > > the source?
> >> > >
> >> > > I keep getting "Connection failed: Internal http error."
> >> in the
> >> > log, but
> >> > > no fallback.
> >> > >
> >> > > Thanks,
> >> > >
> >> > > JD
> >> > >
> >> > >
> >> > >
> >> >
> >>
> ------------------------------------------------------------------------------
> >> > > Managing the Performance of Cloud-Based Applications
> >> > > Take advantage of what the Cloud has to offer - Avoid
> Common
> >> > Pitfalls.
> >> > > Read the Whitepaper.
> >> > >
> >> >
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> >> > >
> >> > >
> >> > >
> >> > > _______________________________________________
> >> > > Savonet-users mailing list
> >> > > [email protected]
> >> <mailto:[email protected]>
> >> > <mailto:[email protected]
> >> <mailto:[email protected]>>
> >> > >
> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >> > >
> >> >
> >> >
> >>
> ------------------------------------------------------------------------------
> >> > Managing the Performance of Cloud-Based Applications
> >> > Take advantage of what the Cloud has to offer - Avoid Common
> >> Pitfalls.
> >> > Read the Whitepaper.
> >> >
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> >> > _______________________________________________
> >> > Savonet-users mailing list
> >> > [email protected]
> >> <mailto:[email protected]>
> >> > <mailto:[email protected]
> >> <mailto:[email protected]>>
> >> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> ------------------------------------------------------------------------------
> >> > Managing the Performance of Cloud-Based Applications
> >> > Take advantage of what the Cloud has to offer - Avoid Common
> >> Pitfalls.
> >> > Read the Whitepaper.
> >> >
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > Savonet-users mailing list
> >> > [email protected]
> >> <mailto:[email protected]>
> >> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >> >
> >>
> >>
> ------------------------------------------------------------------------------
> >> Managing the Performance of Cloud-Based Applications
> >> Take advantage of what the Cloud has to offer - Avoid Common
> Pitfalls.
> >> Read the Whitepaper.
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> Savonet-users mailing list
> >> [email protected]
> >> <mailto:[email protected]>
> >> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >>
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Managing the Performance of Cloud-Based Applications
> >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> >> Read the Whitepaper.
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> >>
> >>
> >>
> >> _______________________________________________
> >> Savonet-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >>
> >
> >
> ------------------------------------------------------------------------------
> > Managing the Performance of Cloud-Based Applications
> > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> > Read the Whitepaper.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
> --
> David
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users