I now have a stream running from a .liq script.  I am so happy.  And I checked 
the stream from outside of my network, and it works just fine.

A couple of questions.  I "borrowed" a script from KUBE radio, and made some 
changes to meet my needs, but I cannot get more than one stream to run at a 
time.  I have the following:
# ICECAST MOUNTS
output.icecast.mp3(radio, mount="indie", id="indieMP3", name="Independent 
Christian Radio MP3 HIGH broadcast", quality=8, bitrate=128, host=indieHost, 
port=indiePort, user=indieUser, password=indiePassword, genre=indieGenre, 
url=indieUrl, description=indieDesc, restart=true)

output.icecast.vorbis(radio, mount="indie.ogg", id="indieOggHigh", 
name="Independent Christian Radio OGG HIGH broadcast", quality=8., 
host=indieHost, port=indiePort, user=indieUser, password=indiePassword, 
genre=indieGenre, url=indieUrl, description=indieDesc, restart=true)

But when I start liquidsoap, I get an error.  If I comment out the first output 
line, then the ogg stream works.  If I comment out the second output line, then 
the mp3 stream works.  Any thoughts?

Also, I want to crossfade the songs that I am playing, and I have seen some 
crossfading code on the website, but I am not sure where to add it in.  I am 
assuming I can add it into my liq script, but I am not 100%.

Here is the modified script that I am now using.  
#!/usr/local/bin/liquidsoap
# Log dir
set("log.file",false)
################
# Music
myplaylist = mksafe(playlist("christianogg.pls"))
################

################
# Independent Christian MP3 Settings
indieHost="localhost"
indiePort=8000
indieUser="source"
indiePassword="###########"
indieGenre="Christian Music"
indieUrl="independentchristianmp3s.com"
indieDesc="The Best Music Of All Time!"
################

################
#The following is the crossfade code that I grabbed from the website, but #am 
not sure of where it goes.
#
#def smooth_add(~normal,~special)
#  d = 1.  # delay before mixing after beginning of mix
#  p = 0.2 # portion of normal when mixed
#  fade.final = fade.final(duration=d*.2.)
#  fade.initial = fade.initial(duration=d*.2.)
#  q = 1. -. p
#  c = change_volume
#  fallback(track_sensitive=false,
#              [special,normal],
#              transitions=[
#                fun(normal,special)->
#                  add(normalize=false,[c(p,normal),
#                                       c(q,fade.final(normal)),
#                                       
#sequence([blank(duration=d),c(q,special)])]),
#                fun(special,normal)->
#                  #add(normalize=false,[c(p,normal),c(q,fade.initial(normal))])
#              ])
#end
################

################ 
# ICECAST MOUNTS
output.icecast.mp3(myplaylist, mount="indie", id="indieMP3", name="Independent 
Christian Radio HIGH bandwidth", quality=8, bitrate=128, host=indieHost, 
port=indiePort, user=ind$

#output.icecast.vorbis(myplaylist, mount="indie.ogg", id="indieOggHigh", 
name="Independent Christian Radio HIGH bandwidth", quality=8, host=indieHost, 
port=indiePort, user=indie$

#################

Again I thank you for all your help, and am looking forward to adding more to 
my script and taking this live!

Bill

--- On Thu, 5/15/08, David Baelde <[EMAIL PROTECTED]> wrote:

> From: David Baelde <[EMAIL PROTECTED]>
> Subject: Re: [Savonet-users] PARTIAL SUCCESS!!-Configure Error
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Date: Thursday, May 15, 2008, 9:05 AM
> Bill Upp wrote:
>  > When I write a script I save it as
> "name.liq" and do a "chmod  u+x".
>  > When I save it, where does it need to be saved?
>  > Does it need to be in the same directory as the
> liquidsoap executable?
> 
> Anywhere is fine. The only time there is a necessity is if
> you want your 
> script to be automatically started by
> /etc/init.d/liquidsoap, it should 
> be in sysconfdir (/etc usually, sometimes /usr/local/etc
> too). But for 
> you at this point, anywhere is good.
> 
>  > When I am trying to run a script, I am issuing the
> command 
> "liquidsoap -v name.liq"  Is this the correct
> syntax?
> 
> That is correct syntax. If "name.liq" refers to a
> file in the directory 
> from which you issue the command. If it's somewhere
> else you can also 
> type "liquidsoap ../name.liq" or "liquidsoap
> ~/my/name.liq", etc.
> 
>  > Finally, the examples on the website for scripts show
>  > "myplaylist =
> playlist("~/radio/music.m3u")" with the
> tilde.
>  > I am also assuming that my .m3u (or .pls, etc) can be
> anywhere
>  > on my computer, as long as I give the correct path to
> that file, correct?
> 
> Correct.


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to