Am 01.08.2011 17:59, schrieb Josh:
> hi,
> how would i input a show if there was one on the live mountpoint in
> this script?:
> #!/usr/local/bin/liquidsoap
> # welcome to a script made by josh
> # we need to log things if anything goes rong we can check them.
> set('log.file.path','/tmp/blind-lightradio.log')
> # lets turn screen loging on.
> set('log.stdout',true)
> # lets add some music
> music = playlist(mode="randomize", reload=7200, '/home/blradio/music')
>
> # lets make it sound cool.
> music = nrj(music)
> # lets make the songs fade
> music = smart_crossfade(music)
> # Add the ability to relay live shows
>
> # time to stream all this to a server so people can listen
> # MP3 icecast output 128 kbps
> o = output.icecast(%mp3, host='localhost',
> name='bl Radio', password='thiswasremoved',
> genre='pop, other.',
> url='http://www.blind-light.net',description='blind
> light radio playing from 2008 pop to moddon
>
> pop.',
> restart=true, mount='/blradio.lq', port=8000,
> full)
> # in ogg
> o = output.icecast(%vorbis,host='localhost', password='thiswasremoved',
> name='BL Radio', genre='pop, other.',
> url='http://www.blind-light.net',
> description='blind light radio playing from 2008
> pop to moddon pop.', port=8000,
> restart=true, mount='/blradio.lq',
> full)
> # for slo internet
> o = output.icecast(%mp3(bitrate=64), host='localhost',
> name='bl Radio', password='thiswasremoved',
> genre='pop, other.',
> url='http://www.blind-light.net',description='blind
> light radio playing from 2008 pop to moddon pop.',
> restart=true, mount='/blradio.lq', port=8000,
> full)
> # were done here.
make use of harbor
live = input.harbor("liveinput",port=8080,password="xxx")
and create a fallback
music = fallback(track_sensitive=false,[liveinput,music])
in your case.
see the docs: http://savonet.sourceforge.net/doc-1.0.0-beta2/harbor.html
cheers,
mcc
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users