Hi there!

I'm trying to set up a way to update metadata by using the OSC method, 
as outlined on the following page: 
http://savonet.sourceforge.net/doc-svn/metadata.html , but I have so far 
not had any luck.

I basically have used exactly the same code as the page, but I'm 
noticing when I try to use oscsend or send_osc, that I have the 
following for the listening udp service:

Proto Recv-Q Send-Q Local Address           Foreign Address State       
PID/Program name
udp      768      0 0.0.0.0:7777 0.0.0.0:*                           -

For each message I send to the local service at udp/7777 the recv-q is 
just increased, which leads me to believe that Liquidsoap is not picking 
up the datagrams.

Here's my configuration:

#!/usr/local/bin/liquidsoap

set("log.file", true)
set("server.telnet", true)

log("Test")

radio = mksafe(buffer(input.alsa()))
radio = server.insert_metadata(id="S4", radio)

# Create a function to insert metadata
ms = insert_metadata(radio)
# The function to insert metadata
imeta = fst(ms)
# The source with inserted metadata
radio = snd(ms)

# Handler for OSC events (gets pairs of strings)
def on_meta(m) =
   # Extract the label
   label = fst(m)
   # Extract the value
   value = snd(m)
   # A debug message
   log("Insert metadata #{label} = #{value}")
   # Insert the metadata
   imeta([(label,value)])
end

osc.on_string_pair("/metadata",on_meta)

output.icecast(%mp3(bitrate = 192),
                host = "hostname",
                port = 8001,
                start = true,
                radio)
--------

I'm also tailing the log files and I'm seeing no output from the log() 
inside the on_meta procedure. I am, however, seeing the log("Test") 
output when starting Liquidsoap.

What am I doing wrong? Do I need to do anything special to actually 
start the OSC thingy? I'm running Liquidsoap 1.1.1 built from source:

# liquidsoap --version
Liquidsoap 1.1.1

- Marius



------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to