auto mp3 lo-fi creator

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

auto mp3 lo-fi creator

Post by potato »

Hi everbody!

I am working on a artists-site where artists can upload music, like mp3's to my webserver.
Now, i want (for bandwith reasons) to ad a 'stream @ lo-fi' function. So
if a visitor clicks on it, a script will generate a lofi stream of the mp3.
Or maybe, when the artist uploads the mp3, there's automated generated a sample mp3 that's saved together with the uploaded, original song.

Is there a way to do this?
I've tried to search to a script or something, but nothing.
The only system that i've found that do something like this, is the band-manager jamroom @ http://www.jamroom.net, but this is only in the payed version.

Thanx in advance :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sure, there's a way to do it, but most servers don't have the hardware to do such a conversion. I wouldn't suggest trying to do it on the fly, or even at upload time. MP3 creation takes a lot of processing that most hosts won't allow too often, not to mention what it'll do to your site's service while this is happening if only 1 person is uploading a file. Now imagine 50-100 doing the same. You'd probably kill the server :P

Have them upload a lo-fi version as an option or something.
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

Post by potato »

Got a point. I will consider this.

Anyway, i found the way jamroom does it.
Sees that they use a command line mp3 encoder used 'FLAME'.

Here a topic on their forum about it:

http://www.jamroom.net/phpBB2/viewtopic.php?t=838

Thanx for the answer feyd!
Post Reply