Forum Moderators: open

Message Too Old, No Replies

mp3 converting on the fly

         

rob3139

8:27 am on Oct 3, 2007 (gmt 0)

10+ Year Member



Dear All,

I'm building a music site for a client and I want to be able to upload an mp3 and for the mp3 to be automatically converted to a low quality version and a clipped (30 second) version.

Does anyone know a way/tool to do this?

Thanks very much,

Rob

vincevincevince

8:50 am on Oct 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it were me, I'd be using a shell process to call mencoder. I guess it depends upon your hardware (OS), what you're allowed to do, and what kind of language you have written your site in.

rob3139

1:23 pm on Oct 3, 2007 (gmt 0)

10+ Year Member



Thanks Vince, to be honest the site is only in PHP and HTML with a tiny bit of javascript. I was hoping for a separate tool that I could apply as and when I need it...any ideas?

Rob

Fotiman

4:22 pm on Oct 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Your question is not really JavaScript related in any way. You will probably get better results searching in a PHP forum.

eelixduppy

9:55 pm on Oct 3, 2007 (gmt 0)



Handling File Uploads [us.php.net] is the place you want to start. As for clipping the audio file to 30 seconds, I'm not sure PHP is capable of doing this. You can check phpclasses.org to see if there is anything, but if not, you are going to have to find something outside php that can handle this.

good luck

..and Welcome to WebmasterWorld :)

rob3139

8:45 am on Oct 8, 2007 (gmt 0)

10+ Year Member



OK, thanks very much guys - the search continues...