Alas, the input stream only transmits intermittently, so there's no really good
way to have you monitor it.
But here is the script:
set("log.file.path","/var/log/liquidsoap/jukebox.log")
set("init.daemon.pidfile.path", "/var/run/liquidsoap/jukebox.pid")
set("server.telnet",true)
silence = amplify(id="silence_src", 0.00001, noise())
ignore(output.dummy(silence, fallible=true))
jukebox =
random(id="randomize-plaaylists",
[skip_blank(id="archives-skipblank",
playlist(id="archives",
reload=86400,
"/home/archives"))])
local_live = strip_blank(id="live-stripblank",
threshold=-80.0,
length=20.0,
input.http(id="local-http",
buffer=30.0,
timeout=20.0,
max=240.0,
"http://localhost:8050/stream"))
main_live = strip_blank(id="live-stripblank",
threshold=-80.0,
length=20.0,
input.http(id="live-http",
buffer=30.0,
timeout=20.0,
max=240.0,
"http://bar.com:8050/stream"))
# this is the master control for the stream right here.
# the sources are listed in priority order
default = fallback(id="default-switcher",
track_sensitive=false,
[local_live,
main_live,
jukebox,
silence])
def log_meta(m)
foo=json_of(m)
system("echo #{quote(foo)} > /tmp/playing &")
end
default = on_metadata(log_meta, default)
output.icecast(
%mp3,
mount="/radio",
description="radio",
url="http://foo.com:8050/radio",
host="localhost", port=8050, password="",
default)
Is there anything that looks amiss in that?
The on_meta script does not pass through the metadata from the input.http
stream.
-ken
--
----------
On Thu, Apr 25, 2013 at 08:38:21PM +0200, Samuel Mimram wrote:
> Hi,
>
> The metadata should be relayed in input.http streams. Do you have an
> example of a publicly available stream which exhibits the bug? Could you
> show us your script?
>
> Thanks!
>
> ++
>
> Sam.
>
>
> On Wed, Apr 24, 2013 at 8:19 AM, Ken Restivo <[email protected]> wrote:
>
> > I've got an input.http stream coming in, which I'm passing through to an
> > output.icecast.
> >
> > The stream coming in via http has metadata associated with it.
> >
> > However, the stream coming out does not use the metadata from the incoming
> > stream.
> >
> > I tried an on_track to capture the metadata coming in, but it looks like
> > [("source_url","http://foo.com:8000/stream"), ("title","")]
> >
> > Basically, nothing there.
> >
> > Is there any way to pass through the metadata from the input.http stream
> > to the output stream?
> >
> > Thanks.
> >
> > -ken
> >
> >
> > ------------------------------------------------------------------------------
> > Try New Relic Now & We'll Send You this Cool Shirt
> > New Relic is the only SaaS-based application performance monitoring service
> > that delivers powerful full stack analytics. Optimize and monitor your
> > browser, app, & servers with just a few lines of code. Try New Relic
> > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users