Re: Perl/PHP/PostgreSQL interface

"Andrew Liebeskind" <[email protected]> Fri, 4 Apr 2003 10:28:48 -0500 (EST)
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <[email protected]>
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/ ###