Skip to content

topac/php-SHOUTcast-ripper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-SHOUTcast-ripper

A PHP script to rip a SHOUTcast server stream.

Example

Try out the example.php.

require 'lib/ripper.php';
$url = "https://shout_cast_server_addr.com:6178";
$ripper = new SHOUTcastRipper\Ripper(array(
  'path'               => './ripped_streams',
  'split_tracks'       => true,
  'max_track_duration' => 3600
));
$ripper->start($url);

Options are:

path - Where the mp3 file(s) will be created.
split_tracks - If false rip everything in a single mp3 file, otherwise it splits the stream according to the current song.
max_track_duration - Stops ripping and exit when a track reach the specified duration (in seconds).
max_track_length - Stops ripping and exit when a track reach the specified size (in bytes).

About

A php script to rip a SHOUTcast server stream

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages