RE: Perl/PHP/PostgreSQL interface
"Disnard, Jon" <[email protected]> Fri, 4 Apr 2003 10:47:04 -0500
| Newsgroups | gmane.comp.apache.mod-mp3 |
|---|---|
| Message-ID | <[email protected]> |
Please post your methods for the mod_rewrite thingy. In regards to the playing of music on the httpd server itself via the soundcard. I do that! It requires a perl/php script to call system() either to AMP, or MPG123, or whatever command line mp3 decoder you like best. I have found that AMP operates better than MPG123 for this type of stuff. I also believe that there used to be a web-xmms php script, but that requires X be running on the httpd server (uncool). -Jon -----Original Message----- From: Andrew Liebeskind [mailto:[email protected]] Sent: Friday, April 04, 2003 09:29 To: [email protected] Subject: Re: [Mod_mp3] Perl/PHP/PostgreSQL interface Hi there. I've got a somewhat similar arrangement set up, although without the bit about playing music directly on the server's soundcard. What I do is use Artekopia Netjuke ( http://netjuke.sourceforge.net ) to manage the collection and generate playlists. When I went looking for something to manage my Ogg Vorbis (and some MP3) collection with, this was the best that I found, by far. I'm also using mod_mp3, but not with server playlists. The reason I like it is that it will send a proper Shoutcast stream to Winamp/XMMS with title and artist info; if you just point Winamp to the URL of an MP3 file, it will show the filename, but none of the metadata. Here's the clever bit (or at least, I think so :-). Netjuke only knows the path to the real MP3 file, so that's what it puts in the playlists that it generates. I've got a couple of small shell scripts that generate a list of MP3 files and the MD5 hashes for their directory paths, which is how mod_mp3 references them. I then use Apache's mod_rewrite to map each request from Winamp for an MP3 file into a properly-formatted request to mod_mp3, which is running on a virtual server. (Since I like to listen to the music collection via my broadband connection while I'm away from home, and have a relatively slow uplink speed, I also use this technique to selectively redirect those MP3s whose bitrate is too high for the connection to a separate mod_mp3 virtual server which uses lame to re-encode them to a lower bitrate, per the example in the mod_mp3 FAQ.) This doesn't address your idea of manipulating the local playlist for the server, but otherwise I've found that this arrangement serves me well. If there's interest, I'll put up a webpage detailing the scripts and Apache configuration I use to do this remapping. Andrew > Hello, all. New subscriber here, discovered the list by Googling for > related topics. > > I'm working on a Linux (Red Hat 8) box that will, by the time I'm > through, have the music from all of my compact discs. Other computers > in the house will be able to play music from that server (which is > where mod_mp3 for Apache comes in). Also, I've got a soundcard in the > server, so other computers in the house can tell the server what > music to play on its own soundcard. > > (So far this is standard stuff, see also Empeg car stereos for similar > capabilites.) I also want to do is to have a database of all of the > info about the music, for ease of automatic playlist generation. I > believe Brian Aker and Scott Kveton were discussing something like > this here a while back. > > Well, that's the basic outline of my plans. I'm here to learn what's > already been built of a similar nature, so that I don't have to > reinvent the wheel, and so I can contribute my work to the common > good. > > Chaz > > -- > * * Chaz Boston Baden * [email protected] * * www.boston-baden.com > Orange County, California * AOL IM: Hazel Chaz > _______________________________________________ > Mod_mp3 mailing list > [email protected] > http://lists.tangent.org/mailman/listinfo/mod_mp3 -- ### Andrew Liebeskind ###### That's logic, as I know and use it. ### # "I am the Golux", said the Golux, proudly, "the only Golux # # in the world, and not a mere Device." # # --_The Thirteen Clocks_, James Thurber # ### [email protected] ########### http://www.meredevice.com/ ### _______________________________________________ Mod_mp3 mailing list [email protected] http://lists.tangent.org/mailman/listinfo/mod_mp3