On Tue, 3 Jun 2003 14:26:11 -0700 (PDT) Bryan Koschmann - GKT <gktnews@gktech.net> wrote:> On Tue, 3 Jun 2003, jared jennings wrote: > > you just parse out the cue file that ices makes. this file is > > updated every second, so whenever you open it, it wil be current. > > i have some (rather nasty) php code to do that if you'd like it. > > (does ices2 make cue files? i forgot.) > > I would be thrilled to have that php code if you wouldn't mind. I > don't even know where the cue file is, but I suppose I could hunt > through an lsof output for it.. maybe?it's in the ices config file. i use ices 0.2.3; the pertinent directive is BaseDirectory. The pid file, log file and cue file all go in this BaseDirectory. In order to understand my whole scheme you should know i have multiple channels ("genres"). i have attached the php and the config file from the classical genre. you will have to rip a lot of code out to get what you want but hopefully it will help some. if anyone finds this via the archives, the code inside is.. we'll say, in the public domain. -- "We're reasonably stable for musicians, actually." - Steve Hindalong, The Choir -------------- next part -------------- A non-text attachment was scrubbed... Name: cue-stuff.tar.gz Type: application/octet-stream Size: 2460 bytes Desc: cue-stuff.tar.gz Url : http://lists.xiph.org/pipermail/icecast/attachments/20030603/ccb89473/cue-stuff.tar.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 190 bytes Desc: not available Url : http://lists.xiph.org/pipermail/icecast/attachments/20030603/ccb89473/part.pgp
On Tue, 3 Jun 2003, jared jennings wrote:> you just parse out the cue file that ices makes. this file is updated > every second, so whenever you open it, it wil be current. i have some > (rather nasty) php code to do that if you'd like it. (does ices2 make > cue files? i forgot.)I would be thrilled to have that php code if you wouldn't mind. I don't even know where the cue file is, but I suppose I could hunt through an lsof output for it.. maybe? Thanks, Bryan --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tuesday 03 June 2003 2:26 pm, Bryan Koschmann - GKT wrote:> On Tue, 3 Jun 2003, jared jennings wrote: > > you just parse out the cue file that ices makes. this file is updated > > every second, so whenever you open it, it wil be current. i have some > > (rather nasty) php code to do that if you'd like it. (does ices2 make > > cue files? i forgot.) > > I would be thrilled to have that php code if you wouldn't mind. I don't > even know where the cue file is, but I suppose I could hunt through an > lsof output for it.. maybe? >I think ices 0.23 generally writes the cue file to /tmp/ices.cue. The cue file also lists the full path and filename of what is currently playing. So another useful thing is to call vorbiscomment in your php script and get any additional comment information that ices doesn't write explicitly to the cue file. Alternatively there are some php id3 reading classes if your source files are mp3 instead...try googling for "php id3 class". I don't believe ices2 writes a cue file. -- -- Andrew Burghardt abob@speakeasy.net --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tue, 3 Jun 2003, Andrew Burghardt wrote:> I think ices 0.23 generally writes the cue file to /tmp/ices.cue. The cue file > also lists the full path and filename of what is currently playing. So > another useful thing is to call vorbiscomment in your php script and get any > additional comment information that ices doesn't write explicitly to the cue > file. Alternatively there are some php id3 reading classes if your source > files are mp3 instead...try googling for "php id3 class". > > I don't believe ices2 writes a cue file.I'm using ices from cvs, so then I won't be able to get the data? I find no cue file, and actually nothing in the /usr/local/icecast (basedir) either. Thanks, Bryan --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.