https://github.com/topac/php-shoutcast-ripper
A php script to rip a SHOUTcast server stream
https://github.com/topac/php-shoutcast-ripper
php ripper shoutcast shoutcast-streaming
Last synced: about 2 months ago
JSON representation
A php script to rip a SHOUTcast server stream
- Host: GitHub
- URL: https://github.com/topac/php-shoutcast-ripper
- Owner: topac
- License: mit
- Created: 2012-08-15T16:53:08.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T16:33:28.000Z (over 5 years ago)
- Last Synced: 2025-03-26T05:21:48.781Z (2 months ago)
- Topics: php, ripper, shoutcast, shoutcast-streaming
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### php-SHOUTcast-ripper
A PHP script to rip a SHOUTcast server stream.
#### Example
Try out the example.php.
require 'lib/ripper.php';
$url = "http://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).