Also sprach Bolt Thrower:> On Fri, Mar 29, 2002 at 03:00:35PM -0300, Luiz Claudio Duarte wrote: > > Hi, folks. I've installed icecast 1.3.11 and I'm very happy with > > it. But I'd like to add a "now playing" gizmo to my home page; > > can anyone point me to a php script or something else that does > > the trick? Thanks in advance. > > Two approaches. The first is to parse the cue file that ices > generates. On my system at least, the artist and song constitute > the last two lines of said cue file. The location of this file is > set in your ices.conf file. > > Another approach is to write a perl handler for ices. in the > ices_perl_get_next() function, insert the chosen song info into a > database table. Then write a PHP script to select from that table.Ok. I'm using shout and not ices (I couldn't get it to compile; I'm using FreeBSD and can't code C worth a damn), so the second approach will not work. But I can write a parsing script (I had'n thought of the cue file), so I'll be trying that. I had thought of querying the server itself for the title information; clients do this, right? In this way I could get this info for an external server. -- People don't quit playing because they ___vvz /( grow old. They grow old because they <__,` Z / ( quit playing. [Oliver Wendell Holmes] `~~~) )Z) ( => LCD (http://www.luiz.claudio.nom.br) <= / (7 ( --- >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 Fri, Mar 29, 2002 at 03:19:49PM -0300, Luiz Claudio Duarte wrote:> > Ok. I'm using shout and not ices (I couldn't get it to compile; I'm > using FreeBSD and can't code C worth a damn), so the second approach > will not work. But I can write a parsing script (I had'n thought of > the cue file), so I'll be trying that.Yeah, I should have mentioned that those suggestions assumed you were running ices. I'm not familiar with shout, so I can't offer any suggestions for that. But one kludgey approach would be to periodically run lsof on the shout server, and do some grepping for known strings corresponding to your MP3s. That will tell you what MP3 files are being accessed by what processes. From there you can pick out the ones that the shout server has open, then in your PHP script, pull ID3 tags from those MP3s and display the info on your web page. -- Steve Chadsey <tyr@teiresias.net> Now playing: Road of Kings (Manilla Road - "Open the Gates") --- >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.
Also sprach Michael Smith:> > >Ok. I'm using shout and not ices (I couldn't get it to compile; I'm > >using FreeBSD and can't code C worth a damn), so the second approach > >will not work. But I can write a parsing script (I had'n thought of > >the cue file), so I'll be trying that. > > Please don't use shout. It's buggy, doesn't work reliably, will cause > you problems, and is entirely deprecated in favour of ices. Fixing > compile errors is much easier in the long run.Well, let's see if someone can help here. Trouble started with configure. Even using the includes and libraries directives, it couldn't find lame, python and shout. When I turned off lame and python it did run. However, when I tried to compile, I got the following error: gcc -DHAVE_CONFIG_H -I. -I. -I.. -DICES_ETCDIR=\"/usr/local/icecast/etc\" -DICES_MODULEDIR=\"/usr/local/icecast/etc/modules\" -I../resolver -I../thread -I../libshout -I/usr/libdata/perl/5.00503/mach/CORE -I/usr/local/include/libxml2 -I/usr/local/include/libxml2/libxml -g -O2 -Wall -c ices_config.c In file included from /usr/local/include/libxml2/libxml/xmlIO.h:22, from /usr/local/include/libxml2/libxml/parser.h:14, from ices_config.c:24: /usr/local/include/libxml2/libxml/encoding.h:30: giconv.h: No such file or directory gmake[3]: *** [ices_config.o] Error 1 gmake[3]: Leaving directory `/usr/home/lclaudius/ices-0.2.2/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/home/lclaudius/ices-0.2.2/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/lclaudius/ices-0.2.2' gmake: *** [all-recursive-am] Error 2 Any suggestions? -- People don't quit playing because they ___vvz /( grow old. They grow old because they <__,` Z / ( quit playing. [Oliver Wendell Holmes] `~~~) )Z) ( => LCD (http://www.luiz.claudio.nom.br) <= / (7 ( --- >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.
>Ok. I'm using shout and not ices (I couldn't get it to compile; I'm >using FreeBSD and can't code C worth a damn), so the second approach >will not work. But I can write a parsing script (I had'n thought of >the cue file), so I'll be trying that.Please don't use shout. It's buggy, doesn't work reliably, will cause you problems, and is entirely deprecated in favour of ices. Fixing compile errors is much easier in the long run. Michael <p>--- >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.