Hi David,

thank you for the hint! Unfortunately I do not know WHERE to insert the
"--" in the radio.liq code.. All my experiments ended in an error message.
Would you please help me once more?

#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/basic-radio.log")

# Music
myplaylist = normalize(playlist(argv(1)))
# Some jingles
jingles = playlist("~/radio/jingles.m3u")
# If something goes wrong, we'll play this
security = single("/home/hubert/radio/sounds/default.mp3")

# Start building the feed with music
radio = myplaylist

# Now add some jingles
radio = random(weights = [1, 3],[jingles, radio])
# And finally the security
radio = fallback(track_sensitive = false, [radio, security])

 # Stream it out
output.icecast(%mp3,
  host = "p5q", port = 8000,
  password = "hackme", mount = "basic-radio.mp3",
  radio)



MT Hubert

2012/8/4 David Baelde <[email protected]>

> Hi Hubert,
>
> Yes, you can use the argv() function for getting parameters from the
> command line. Those parameters should be separated from the other
> command-line arguments by --.
>
> For example: liquidsoap 'output.ao(single(argv(1)))' -- file.mp3
>
> Have fun!
> --
> David
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to