Re: File_OGG extension (was: [oggvorbis])

From: Date: Tue, 09 Sep 2003 23:04:47 +0000
Subject: Re: File_OGG extension (was: [oggvorbis])
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21309@lists.php.net to get a copy of this message
Hi Sara, On Tue, 2003-09-09 at 23:57, Sara Golemon wrote: > > I didn't plan on having a PECL package to do what your does -- the point > > of File_Ogg and its extending packages for streams such as Vorbis is to > > extract header data. I was hoping to use a PECL package to extract and > > make available the same data. My question was simply to ask if your > > package could be "adapted" to the same goal. > > > Ah... I see, well in terms of extracting the initial header data, the > following code will do that easily: > > <?php > $fp = fopen('ogg://songfile.ogg', 'r'); > $metadata = stream_get_meta_data($fp); > fclose($fp); > > $songdata = $metadata['wrapper_data'][0]; > /* $songdata now contains header data */ > ?> Excellent. I shall take a peek and try to adapt it into File_Ogg. > However, chained OGGs take a bit more code (and I'm not sure if File_Ogg > can handle headers in chained OGGs or not). When you say "chained OGGs", do you mean consecutive logical streams within the Ogg container? If so, yes. If not, then could you please expand on your question? Regards, David

« previous php.pear.dev (#21309) next »