Hi, 2013/7/5 daslicht <[email protected]>: > Anyone ?
I am currently on vacation but I will respond to you about this once I get back.. Romain > On 03.07.2013, at 10:09, daslicht <[email protected]> wrote: > > Hello, > ok I am back :) > > so here is my current Script: > > > #!/usr/bin/liquidsoap > # Log to stdout > set("log.file",false) > set("log.stdout",true) > set("log.level",4) > > # Initial playlist > cue = "AnSolas&LightRocker-LiveSet2012.cue" > > radio = cue_cut(mksafe(playlist(cue))) > > > output.icecast(%vorbis, > host = "localhost", port = 8000, > password = "bewelcome", mount = "stream.ogg", > radio) > > > Thats the CueSheet: > > TITLE "May All Beings Be Happy" > PERFORMER "AnSolas & LightRocker" > REM ** Generated by CueMaster v1.6 ** > REM Time : 6:02:00 > REM Length: 362 seconds > REM Year : 2013 > REM Genre : Electronic > REM DiscID: 0d016802 > FILE "Mixdown-MixdownFinalA_16Bit_BWF.mp3" MP3 > TRACK 01 AUDIO > TITLE "Sebtembuar" > INDEX 01 00:00:00 > TRACK 02 AUDIO > TITLE "Lets GoA!" > INDEX 01 09:01:00 > TRACK 03 AUDIO > TITLE "Silkyway" > INDEX 01 19:35:00 > TRACK 04 AUDIO > TITLE "Together (2012 Remix )" > INDEX 01 33:37:00 > TRACK 05 AUDIO > TITLE "November Dreams" > INDEX 01 42:16:00 > TRACK 06 AUDIO > TITLE "Guitar Disco" > INDEX 01 51:20:00 > > > But i thing the cue-sheet is not properly parsed, when I start liquidsoap I > get the following messages: > > 2013/07/03 10:03:25 [AnSolas&LightRocker-LiveSet2012(dot)cue:3] Loading > playlist... > 2013/07/03 10:03:25 [AnSolas&LightRocker-LiveSet2012(dot)cue:3] No mime type > specified, trying autodetection. > 2013/07/03 10:03:25 [playlist parser:4] Trying audio/x-scpls parser > 2013/07/03 10:03:25 [playlist parser:4] Trying audio/mpegurl parser > 2013/07/03 10:03:25 [AnSolas&LightRocker-LiveSet2012(dot)cue:3] Playlist > treated as format audio/mpegurl > 2013/07/03 10:03:25 [AnSolas&LightRocker-LiveSet2012(dot)cue:3] Successfully > loaded a playlist of 27 tracks. > > … > [request:3] Unknown protocol " INDEX 01 09" in URI " INDEX 01 > 09:01:00"! > [request:3] Nonexistent file or ill-formed URI " TRACK 04 > AUDIO"! > > The CueSheet contains 27 Lines of code and each line seams to be interpreted > as a Song !? > Is there a special cue-sheet syntax necessary ? > > see full log: > https://gist.github.com/daslicht/7b220d4a44f7daeb0be6 > > > What am I missing ? > > > Best regards > Marc > > > > > On 24.03.2013, at 16:33, David Baelde <[email protected]> wrote: > > Hi, > > On Sat, Mar 23, 2013 at 7:32 PM, daslicht <[email protected]> wrote: > > * Play a cue sheet > > > You seem to have figured this one out yourself, using cue_cut(). > > * Return current song (can I call a LiquidSoup Script with PHP or NodeJS?) > > > If you need to query liquidsoap for the current song, then a simple > on_air server command should do. You can also use the store_metadata() > which stores the last N metadata packets it sees, and offers a telnet > command for reading them. > > * Call Script on Song change (call PHP or NodeJS) > > > For this you have on_track (or on_metadata, it usually doesn't make a > big difference). If you need to call an external script you have > system(). For example: source = > on_track(fun(m)->system("/path/to/script"),source). Or something like > fun(m)->system("/path/to/script "^quote(m["title"])) if you want to > pass a metadata to the script being called. > > If you have basic needs and a minimum scripting ability, you should be > able to write your own scripts along the lines I indicated. > > HTH > -- > David > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
