PROBLEM: the variable output.shoutcast used here has not been previously defined.
  • Hello, 

    i've the following addon file in "/etc/liquidsoap/relay-stream-box.liq":


    # Relayserver with shoutcast for streambox functions

    input = (input.http(relaybox))

    # First transcoder: MP3 128kbps
    output.shoutcast (%mp3(bitrate=128), host="213.165.94.62", port=8050, password="xxxxx", input )


    This is included with the line --> %include "/etc/liquidsoap/relay-stream-box.liq <-- at the top of "ls_script.liq".

    When i do a --> /etc/init.d/airtime-liquidsoap restart <-- i'll receive the following error:


    At /etc/liquidsoap/relay-stream-box.liq, line 7, char 18:
      the variable output.shoutcast used here has not been previously defined.
    Done.


    Can someone tell me please, where the problem is?

    The same script (from the top of the posting) works great at another server (without airtime).

    Please help me out, i've no plan to get it working.

    Best regards,
    Jürgen
  • 1 Comment sorted by
  • This is ironic.
    I am going to tell you the solution,then you can search for the problem.

    • Create a directory some where else ( not owned by root,or where root only have permission) but where you have permission or any other user or the audio group (pypo) is for airtime
    • put you liq in that folder f.e. /home/myliqs/relay-stream-box.liq
    • do a symbolic link to the airtime library like this sudo ln -s  /home/myliqs/ /usr/lib/airtime/pypo/bin/liquidsoap_scripts/
    • Now put this  instead   %include "myscript/relay-stream-box.liq" in the ls_script

    Just some clues.

    here is a clue to your answer

    http://savonet.sourceforge.net/doc-svn/quick_start.html

    Read this

    Starting to use Liquidsoap

    "In particular the library pervasives.liq and its
    accompanying scripts should have been installed, otherwise Liquidsoap
    won't know the operators which have been defined there."


    so if you look in the directory

    /usr/lib/airtime/pypo/bin/liquidsoap_scripts/

    That's the directory Airtime uses.


    Also Key to security of any linux, /etc/ are used mainly used for configuration,stay clear of it where you going have to give permission and ownership to other folders or files

    Good Luck



    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.