Mp3 Conversion, using PHP
| From: | Simon Fredriksson | Date: | Mon, 14 Jul 2003 22:02:29 +0000 |
| Subject: | Mp3 Conversion, using PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155190@lists.php.net to get a copy of this message | ||
I'm wondering if there's any crazy dude out there that would like to join me in making a class for PHP to convert Mp3's to Mp3Pro. Even better would be if it could take other formats aswell, but mainly MP3 to MP3Pro. There are a few reasons why I want it in PHP. One is that PHP is cross-platform based. I intend to use this under Windows and Linux primararly. Second, PHP is the programming language I know best. I can read and understand a whole bunch of other languages like C++ and VB, but I'm not really good at coding (c++) yet (and I don't want it in (yuck) VB, see first pointer).
This project is a part of a suit of tools to broadcast internet radio via ShoutCAST. As the roadmap goes, it's PHP->Shoutcast->Listener. To this, I intend to build a requestsystem so that my listeners can request and the radio will play what's in that playlist. I've made a few similar systems already, but I've never been really pleased with them.
This is what the road for the first was:
Web (php/apache) -> textfile -> mIRC (read textfile) -> Winamp -> Shoutcast -> Listener
This wasn't super-stable and pretty annoying.
Second was:
Web (php/apache) -> mysql -> php -> Winamp -> Shoutcast -> Listener.
Here, mIRC was replaced with more PHP which was a neat facelift.
The future one will be:
Web (php/apache) -> mysql/sqllite/xml/odbc (modular) -> php -> shoutcast (or maybe Icecast?) -> listener.
The first two parts php/apache and the way of storage are minor problems (just takes time to get ready). The biggest part is the on-the-fly-recomression of files. I can run a stream with it right now, but that wouldn't be very bandwidth compassionate. I want to bitrate-convert as the file runs.
Any comments and/or suggestions are very welcome.
//Laban