Hi,

Your problem is not related to the thread you found. It's the same
issue as the following:
  http://www.mail-archive.com/[email protected]/msg03471.html
But since it wasn't very well explained I'll do it now.

On Fri, Apr 29, 2011 at 1:22 PM, Martin Hamant <[email protected]> wrote:
> audio = single("Friends.mp3")
> output.shoutcast(%mp3, ... ,audio)
> server.insert_metadata(id="S4",audio)

This code won't work. To understand this you need to think in terms of
the graphs described in our tutorials (eg.
http://savonet.sourceforge.net/doc-svn/complete_case.html). In what
you wrote the audio node is connected to one output, and to the
insert_metadata (there's a fork) but the insert_metadata isn't
connected to any output. It's important to notice this because in
liquidsoap everything happens when outputs (more precisely and
generally, active sources) pull data from sources that are connected
to them.

With the first two lines of your script, the output pulls data from
audio, triggering the actual computation of the stream, and then
outputs it. When you issue a metadata update command, it remains
stored in the insert_metadata node, but it is never executed because
nobody reads the stream from that operator.

Long story short, write the following so that the output reads the
stream modified by insert_metadata:
audio = single("Friends.mp3")
audio = server.insert_metadata(id="S4",audio)
output.shoutcast(%mp3, ... ,audio)

Have fun!
-- 
David

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to