Ah yeah I was close and I did find the play list once thing in the reference.
My plan is to treat the script where all of my mount points and encoders are as
a variable so I can just use that in the function when it comes time. I hope
i'm making sence. I'm thinking while tired. Not a good combenation. I did
read about all of this. It's just implementing it that will be the challenge.
*smiles* and I'm up to it.
Blessings
> On Nov 18, 2014, at 8:35 PM, Eduardo Martinez <[email protected]> wrote:
>
> Hello,
>
> As mentioned before, the %include directive can be used to include other .liq
> files in your scripts.
>
> To answer your second question. You can use the playlist.once function to
> make a playlist stream only once.
> You can simply pass the function a directory of files, and liquidsoap will
> queue them as a playlist.
>
> Here is an example script that ties it all together.
>
> #!/usr/local/bin/liquidsoap -v -d
>
> set("log.file.path","/home/tux/liquidsoap/logs/file.log")
> set("log.stdout",true)
>
> input = mksafe(playlist.once("/home/tux/music"))
>
> server="MY_ICECAST_HOST"
> server_password="MY_ICECAST_PWORD"
> server_port=MY_ICECAST_PORT
>
> output.icecast(
> %mp3(bitrate=64),
> mount="/test",
> host=server, port=server_port, password=server_password,
> icy_metadata="true",
> description="test",
> input)
>
> On Tue, Nov 18, 2014 at 5:14 PM, Sarah k Alawami <[email protected]
> <mailto:[email protected]>> wrote:
> Well, it's worth a try. At least I'll know what broke if it does decide to
> brake. Heha. And at least this time I was on the right track.
>
> I'll give it a try and see what I can brake. Hehaha.
>
> Blessings.
> Sarah Alawami, owner and founder of Alawami productions: where quality is
> key. Check us out on the web at http://alawamiproductions.com/listen
> <http://alawamiproductions.com/listen>
>
>> On Nov 18, 2014, at 5:03 PM, Tony Miller <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Hi Sarah,
>>
>> I haven't tried it before, but it looks like there is an include
>> operator you can use. The syntax is something like:
>>
>> %include "icecast.liq"
>>
>> I saw it being used in the scripts/ directory in the liquidsoap repository.
>> https://github.com/savonet/liquidsoap/blob/master/scripts/pervasives.liq
>> <https://github.com/savonet/liquidsoap/blob/master/scripts/pervasives.liq>
>> https://github.com/savonet/liquidsoap/blob/master/scripts/http.liq#L3
>> <https://github.com/savonet/liquidsoap/blob/master/scripts/http.liq#L3>
>>
>> On Tue, Nov 18, 2014 at 3:48 PM, Sarah k Alawami <[email protected]
>> <mailto:[email protected]>> wrote:
>>> Hey to all. I'm working on a script that will go through a folder, play
>>> what's there from top to bottom and stop. And output to my icecast server.
>>> I'm wondering though if i can include my icecast info not in the script I'm
>>> working on, but as a variable for example include("Scriptname.Liq") maybe?
>>> at the top of the script before i add my mksafe thing to play silence when
>>> it stops. Is this possible and am i on the right track here? i'm still
>>> learning but i think i'm close. Also is there a way to test the script with
>>> out actually running it? The files in the directory where the stuff will be
>>> pulled from will be quite long.
>>>
>>> take care to all.
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>>>
>>> <http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk>
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>> <https://lists.sourceforge.net/lists/listinfo/savonet-users>
>>
>>
>>
>> --
>> -Tony Miller
>> github.com/mcfiredrill <http://github.com/mcfiredrill>
>> @freedrull
>> freedrool.us <http://freedrool.us/>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> <http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk>
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> <http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/savonet-users
> <https://lists.sourceforge.net/lists/listinfo/savonet-users>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users