Hi again. Very helpful the Romain clue. I have fixed my metadata issue.
Now I need more help, but first I have to say I have RTFM before, the
thing is TFM is not so helpful for my level of programming. The API way
to explain things makes me very confused to apply changes into my code.
So, Now I have this script:
---- start code ----
#!/usr/bin/liquidsoap
# music when no more are available
radio=mksafe(playlist("/foo/bar/playlist.txt"))
# live
radio=fallback(track_sensitive=false,
[input.http("http://radiognu.org:8000/vivo.ogg"),radio])
# clean metadata (thanks, Romain)
radio = add([blank(),radio])
radio = rewrite_metadata([("title","Lee los tÃtulos de las canciones en
irc.radiognu.org")],radio)
output.icecast.vorbis(foo=bar, radio)
---- end code ----
I need to put a 10 second silence _after_ any live stream ends. This is
because when someone for any reason disconects for a few seconds (or
less than a second) when streming live shows, liquidsoap change
suddently to the Playlist and then back to live again, making unexpected
audio to go out.
The idea is to have a 10 second of "wait" while a live disconnects and
if this happens then start a playlist (will be nice if before sound a
jingle announcing the start of the playlist). If before this 10 seconds
live show comes back, then it starts to be listened again.
I found blank() can also give an amount of time with silence but reading
API just confused me.
Finally, I want to have a "random" operator on playlist. It appears to
be simple to implement, but I cannot get the correct syntax on it.
Any help will be much appreciated.
Thanks !
--
__________________________________________________________
| , , |
| / \ |
| ((__-^^-,-^^-__)) Octavio Rossell Tabet |
| `-_---' `---_-' [email protected] |
| `--|o` 'o|--' http://octavio.gnu.org.ve |
| \ ` / irc.radiognu.org #gnu |
| .: :. |
| :o_o: Huella: FC69 551B ECB9 62B0 D992 |
| "-" BE57 B551 2497 C78B 870A |
|__________________________________________________________|
<<attachment: octavio.vcf>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
