Login   Register  
PHP Classes
elePHPant
Icontem

Audio Streamer: Convert audio files to MP3 or WAV format streams

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of adrien gibrat
Name: adrien gibrat <contact>
Classes: 5 packages by
Country: France France
Age: 35
All time rank: 26916 in France France
Week rank: 146 Up9 in France France Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can be used the convert audio files in many formats to MP3 or WAV format streams.

It uses external programs to read audio files in many formats and output audio streams in the MP3 or WAV formats.

The converted streams can be saved to other files or served as the current script output.

Currently it supports converting files in the formats: MP3, WAV, OGG, FLAC, MPC, APE, WV, OFR, LA, PAC, SHN, AAC, AC3, AIF, 3GP, MOV, RAW and WMA.

The stream output bit rate and mono/stereo mode parameters are configurable.

  Classes of adrien gibrat  >  Audio Streamer  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Audio Streamer
Base name: audio_streamer
Description: Convert audio files to MP3 or WAV format streams
Version: 0.1
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 3592 users
All time rank: 864
Week users: 7 users
Week rank: 235 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
June 2007
Number 4
PHP does not have built-in extensions to manipulate audio. This apparent limitation can be compensated by using external audio manipulation programs that PHP can execute.

Sometimes it is necessary to manipulate large audio files. If PHP retrieves the resulting audio files into memory before serving them to the users, that may exceed the configured PHP memory limits.

That also would impose a delay caused by the time that programs take to finish the audio processing operations.

Another alternative is to generate temporary files to store the result of the requested audio manipulation operations. This would solve the memory problem, but it could take too much disk space and would not solve the delay problem.

This class implements an alternative that takes advantage of pipes between programs that are available under Unix, Linux and other systems, to execute external audio manipulation programs.

This way, the resulting audio files can be streamed directly to the user browser without any delays, and without taking too much server memory or any disk space.

Manuel Lemos

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file class.audio_streamer.php Class Audio Streamer class
Accessible without login Plain text file exemple.php Example Exemple usage

Install with Composer Install with Composer - Download Download all files: audio_streamer.tar.gz audio_streamer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.