Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21678 invoked by uid 1010); 21 Mar 2007 08:57:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21663 invoked from network); 21 Mar 2007 08:57:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2007 08:57:14 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:61141] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/63-21072-663F0064 for ; Wed, 21 Mar 2007 03:57:12 -0500 Received: (qmail 6247 invoked from network); 21 Mar 2007 08:55:06 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 21 Mar 2007 08:55:06 -0000 Message-ID: <4600F35E.2050707@zend.com> Date: Wed, 21 Mar 2007 11:57:02 +0300 User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: "Tijnema !" CC: internals@lists.php.net References: <1405337330.20070315155023@marcus-boerger.de> <4E49AB3E-7BCE-4B10-8696-F0427C4AAAD4@prohost.org> <1475201111.20070315162711@marcus-boerger.de> <167173066.20070315224827@marcus-boerger.de> <45049.216.230.84.67.1174434279.squirrel@www.l-i-e.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] GSoC From: antony@zend.com (Antony Dovgal) On 03/21/2007 10:47 AM, Tijnema ! wrote: > On 3/21/07, Richard Lynch wrote: >> >> I splice the ID3 tags onto the front of an MP3 stream in PHP on this >> site: >> >> http://uncommonground.com/ >> >> The id3 library in PHP is quite good at this, but needs a maintainer... >> > > Well, it is a start, now only processing work needs to be done :) > To convert from MP3 to Wave for example, I think this will require the > LAME lib, and to use with OGG, it will require the OGGvorbis lib. But > about WMA, I never saw a Linux lib for it. So that would require > creating a new lib for WMA, or directly implementing it into the PHP > source. So the MP3 and OGG support shouldn't bee too hard to > implement, but other file formats might be harder. And now I'm only > talking about Audio, my first idea was to implement Video > (Audio+Video). Video is even more advanced, then we should work with > DivX and XviD codecs. (Thank god, they are Open Source). But having > this support for video, it would be possible to easily create a site > like youtube, where they even have a "screenshot" of the movie, which > is actually just a frame in the middle of the file. And of course it > would be possible to resize the video files. I don't think anybody sane is doing audio encoding and video resizing in PHP. PHP is about interface, clients are not going to wait an hour or two for a page to load. There is a bunch of mature opensource utilities (transcoder, lame, oggenc etc.) and you can always use them to convert WAV to MP3 and AVI to OGG, it's just a matter of implementation. That said, I would be glad to see a PECL extension able to read video files and grab screenshots (that seems to be quite common requirement). The ffmpeg extension is GPLed, which is a no-no for PECL. Re sound files, we already do have something: http://cvs.php.net/viewvc.cgi/pecl/sndfile/ It just wasn't released. -- Wbr, Antony Dovgal