ampache — reason number 512 why php rocks my world
i found a web-based server application by accident when i googled to try to figure out if it was possible to broadcast on LAUNCHcast, which is the SHOUTcast-like protocol that Yahoo uses. i don’t think it is, but in the search results i found a blog in which ampache was mentioned as being the next revolution of music sharing. so, of course i had to find out what it was.
here’s the skinny:
say you have a lot of mp3s, or, any mp3s at all, really — check
and say you have a server — check
say you have a server with a MySQL database and PHP installed — check, check
say you like to share music, or just want to listen to your mp3s at work — check
well ampache does that.
ok, what if you don’t have a server, and you just have a windows xp box, but you want to listen to your mp3s at work. well, assuming you have a dedicated internet connection, preferrably high speed, you can do it as well, and there’s a tutorial on setting up your xp box as a server to run the ampache site.
ok, so what’s it like? well, you have all your mp3s, in my case that’s something like 13,000+. i say, my mp3s are located in this directory on my hard drive. ampache runs a script and catalogs the entire mp3 archive and stores the information it gets from the id3 tags on those mp3s in the database. here’s where you run into one of the flaws in ampache. it *only* reads id3v2 tags and that’s the only way the songs are cataloged. if all your mp3s weren’t tagged but were formatted like
once everything is installed, cataloged and more or less accurately tagged, you can brows by artist, album, or genre. you can add an entire album to a playlist or individual tracks or you can create a playlist that pulls only from a specific genre. once your playlist is assembled you say play, and it opens a playlist in any number of commonly used formats for your media player to play. another pet peeve of mine is that i use itunes for this (because, for some reason, it’s the only media player i can get to connect to the playlists i make on the site from work). when i open my playlist in itunes, it just adds all the tracks to my library. i have to drag the playlist file into a new, empty playlist in itunes to get it to add those tracks in the order i did in ampache. on the flipside, if i decide to add tracks to what i’m currently listening to, say i just realized i wanted to listen to nick cave, i can create a new playlist with just nick cave and then drag that into my list.
as an administrator you can create accounts. you can’t access the mp3 library without an account. this can be good or bad depending on your perspective. you can also enable or disable actual file downloads and uploads. you can edit the tags within ampache but if you ever update the catalog after that, it will reset to the id3 tag. so if you, like i did, spend several hours condensing nick cave, nick cave and the badseeds and nick cave & the badseeds to just nick cave & the badseeds, and combining bjork without an umlaut with bjork with the umlaut, all that gets lost after the catalog update. best to fix your tags and then update last is what i found.
after you’ve gotten all that stuff done, get yourself a developer key from amazon.com. this is easy to do, they’re free. once you’ve got the key, ampache pulls album art from amazon’s database. you can manually enter the url for albumart as well for individual albums, but if you have 2000 albums, it’s cool that ampache will do that for you, or find it for you with a little help tweaking the search parameters.
i like ampache because now if i download an album or something via bit torrent, i can actually listen to it when i get it, rather than just adding it to the SHOUTcast station and eventually one of the tracks plays, and then the only way i could actually listen to that album is if i burn it to a cd and put it in the car. now i can download stuff and then go to work and (assuming everything was tagged correctly and i run an Add request) listen to what i just downloaded. that part is pretty awesome.
so if you want an ampache account, let me know and i can make you one. here’s the current snapshot of the library:
Albums 1713
Artists 1403
Songs 13327
Catalog Size 68.12 GB
Catalog Time 40 days, 11 hours
related posts:
Digg This Post |
Save to del.icio.us |
Share on Facebook |
Tweet This |
Subscribe by RSS













This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.