Thanks for the help!

I tried Romain's script, and now I can see mustafejen listed.

Regards,

Per G

On 2015-06-10 18:25, Romain Beauxis wrote:
> I would suggest to try somethings like this (disclaimer: haven't run
> this script, could have typos..):
>
> #
> # A simple radio script to get started
> # Filenames need to be edited in playlist() and single() sources
> #
>
> #message =
> #  "The Savonet team thanks you for using liquidsoap, " ^
> #  "and we hope you'll enjoy it!"
>
> # Then we setup our icecast output function.
> # Possible options and values are bitrate=64, samplerate=11025, ...
>
> mustafejen = fallback([ playlist("/home/per/haylist.m3u"),
>                    # The out(..) needs the single(..) to be infallible,
>                    # which requires a valid audio filename.
>                    single("/home/per/ustiusti.ogg") ])
>
> mustafejen = register_flow(
> radio="mustafejen",
> website="http://mustafejen.se/";,
> description="Stream from Ersboda",
> genre="Alternative",
> streams=[("ogg/112k","http://mustafejen.se:8000/stream.ogg";)],
> mustafejen)
>
> out =
> output.icecast(%vorbis,host="mustafejen.se",password="difficult_password")
>
>
> out(mount="stream.ogg",
>   # The scheduler plays a randomized playlist, or the .ogg file
>   # if the playlist fails to stream anything. The playlist can be made
>   # of remote URIs.
>   add([
>     # Comment out the next line if you don't have speech synthesis enabled.
>   #  delay(10.,single("say:"^message)),
>     # We add another output without the synthesized messages. It is not
> started
>     # but you can turn it on using the server:
>     # > telnet localhost 1234
>     # > novoice.ogg.start
>
>     out(start=false,mount="novoice.ogg", mustafejen)
>     ]    ))
>
> 2015-06-09 3:25 GMT-05:00 Per Gunnarsson <[email protected]>:
>> Hi!
>>
>> My script currently look like this:
>> #
>> # A simple radio script to get started
>> # Filenames need to be edited in playlist() and single() sources
>> #
>>
>> #message =
>> #  "The Savonet team thanks you for using liquidsoap, " ^
>> #  "and we hope you'll enjoy it!"
>>
>> # Then we setup our icecast output function.
>> # Possible options and values are bitrate=64, samplerate=11025, ...
>>
>> mustafejen = register_flow(
>> radio="mustafejen",
>> website="http://mustafejen.se/";,
>> description="Stream from Ersboda",
>> genre="Alternative",
>> streams=[("ogg/112k","http://mustafejen.se:8000/stream.ogg";)],
>> mustafejen)
>>
>> out =
>> output.icecast(%vorbis,host="mustafejen.se",password="difficult_password")
>>
>>
>> out(mount="stream.ogg",
>>   # The scheduler plays a randomized playlist, or the .ogg file
>>   # if the playlist fails to stream anything. The playlist can be made
>>   # of remote URIs.
>>   add([
>>     # Comment out the next line if you don't have speech synthesis enabled.
>>   #  delay(10.,single("say:"^message)),
>>     # We add another output without the synthesized messages. It is not
>> started
>>     # but you can turn it on using the server:
>>     # > telnet localhost 1234
>>     # > novoice.ogg.start
>>
>>     out(start=false,mount="novoice.ogg",
>>         fallback([ playlist("/home/per/haylist.m3u"),
>>                    # The out(..) needs the single(..) to be infallible,
>>                    # which requires a valid audio filename.
>>                    single("/home/per/ustiusti.ogg") ]))
>>     ]    ))
>>
>> I still get the error message:
>> Starting liquidsoap channels: radio.liq At line 19, char 11: the
>> variable mustafejen used here has not been
>>   previously defined.
>> OK
>>
>> If I change the flows section to look like this:
>>
>> mustafejen = register_flow(
>> radio="mustafejen",
>> website="http://mustafejen.se/";,
>> description="Stream from Ersboda",
>> genre="Alternative",
>> streams=[("ogg/112k","http://mustafejen.se:8000/stream.ogg";)])
>>
>> the error message disappears, but I can't find my stream at
>> http://flows.liquidsoap.fm/#info
>>
>> On 2015-06-09 03:14, Romain Beauxis wrote:
>>> Hi!
>>>
>>> 2015-06-04 7:05 GMT-05:00 Per Gunnarsson <[email protected]>:
>>>> I am not sure I understand how I should define the variable. I had the
>>>> stream section at the top of the script.
>>>> I have looked it through for odd and misplaced quotes, and I can't find
>>>> anything wrong.
>>> I think you should replace "stream" with whatever variable represents
>>> your radio stream. If you could show us more of your script, I could
>>> try to explain more..
>>>
>>> Romain
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
> ------------------------------------------------------------------------------
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to