Page 1 of 1
Converting C to PHP
Posted: Tue Jul 29, 2003 5:21 am
by Laban
Hello World!
I want to encode/decode Mp3's (among other formats) using PHP. I'm thinking about recoding libLAME to native PHP... or is there a better solution? I want this thing to work on a bunch of different platforms.
The thing is that I'm making a shoutcast/icecast compatible radiobroadcaster in PHP.
Interested?
Website:
http://stream.lan2k.org
Posted: Tue Jul 29, 2003 8:56 am
by qartis
Sounds like a really cool project; I've often thought of how nice it would be to have pure-php audio broadcasting. If you need any help, just ask

Posted: Tue Jul 29, 2003 9:15 am
by twigletmac
Maybe you could compile the C code as an extension for PHP?
Mac
Posted: Wed Jul 30, 2003 1:51 am
by Tubbietoeter
how about java?
Posted: Wed Jul 30, 2003 7:13 am
by m3mn0n
sounds cool
Posted: Wed Jul 30, 2003 7:42 am
by Stoker
the only feasable way is sort of what twiglet suggested; Create a PHP extension that uses exisiting libraries..
Posted: Wed Jul 30, 2003 10:29 am
by m3rajk
Tubbietoeter wrote:how about java?
that's possible. well to make it in java. a friend of mine did that as a project for a class. was able to get mp3 and wavs to play in the time he had. but what they're talking about, i think the most feasable thing iswhat twiglemac suggested
Posted: Thu Jul 31, 2003 1:18 am
by Tubbietoeter
i didnt even know that was possible ... (what twigle said)
you got any links or some other info on that (I'm just curious ...)
Posted: Thu Jul 31, 2003 7:08 am
by twigletmac
Posted: Sat Aug 02, 2003 12:01 pm
by Laban
Great to hear that there are people interested in this
Compiling C-libraries to extentions is a good way. I'm guessing they will have better performance then raw php code. However, there commes the compability issue I belive. Since they are compiled they must be made to support the different systems.
I don't think that's such a big deal since it won't be used on so many different systems (I think

). Linux/BSD/Windows are the ones I've thought about.
Posted: Sat Aug 02, 2003 4:12 pm
by Stoker
..and remember patent and library licensing etc, as far as I know mp3 is not really free, so you may have to do something along the line as the PDF functionality for PHP, the libs are not free, the PHP extension to use the libs are..
Posted: Sun Aug 03, 2003 7:28 am
by Laban
Perhaps we should use OGG to stream out then...