MP3::Icecast 0.02
Sponsored Links
MP3::Icecast 0.02 Ranking & Summary
File size:
0.033 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1092
Date added:
2006-11-08
Publisher:
Allen Day
MP3::Icecast 0.02 description
MP3::Icecast is a Perl module to generate Icecast streams, as well as M3U and PLSv2 playlists.
SYNOPSIS
use MP3::Icecast;
use MP3::Info;
use IO::Socket;
my $listen_socket = IO::Socket::INET->new(
LocalPort => 8000, #standard Icecast port
Listen => 20,
Proto => tcp,
Reuse => 1,
Timeout => 3600);
#create an instance to find all files below /usr/local/mp3
my $finder = MP3::Icecast->new();
$finder->recursive(1);
$finder->add_directory(/usr/local/mp3);
my @files = $finder->files;
#accept TCP 8000 connections
while(1){
next unless my $connection = $listen_socket->accept;
defined(my $child = fork()) or die "Cant fork: $!";
if($child == 0){
$listen_socket->close;
my $icy = MP3::Icecast->new;
#stream files that have an ID3 genre tag of "jazz"
while(@files){
my $file = shift @files;
my $info = new MP3::Info $file;
next unless $info;
next unless $info->genre =~ /jazz/i;
$icy->stream($file,0,$connection);
}
exit 0;
}
#a contrived example to demonstrate that MP3::Icecast
#can generate M3U and PLSv2 media playlists.
print STDERR $icy->m3u, "n";
print STDERR $icy->pls, "n";
$connection->close;
}
ABSTRACT
MP3::Icecast supports streaming Icecast protocol over socket or other filehandle (including STDIN). This is useful for writing a streaming media server.
MP3::Icecast also includes support for generating M3U and PLSv2 playlist files. These are common formats supported by most modern media players, including XMMS, Windows Media Player 9, and Winamp.
SYNOPSIS
use MP3::Icecast;
use MP3::Info;
use IO::Socket;
my $listen_socket = IO::Socket::INET->new(
LocalPort => 8000, #standard Icecast port
Listen => 20,
Proto => tcp,
Reuse => 1,
Timeout => 3600);
#create an instance to find all files below /usr/local/mp3
my $finder = MP3::Icecast->new();
$finder->recursive(1);
$finder->add_directory(/usr/local/mp3);
my @files = $finder->files;
#accept TCP 8000 connections
while(1){
next unless my $connection = $listen_socket->accept;
defined(my $child = fork()) or die "Cant fork: $!";
if($child == 0){
$listen_socket->close;
my $icy = MP3::Icecast->new;
#stream files that have an ID3 genre tag of "jazz"
while(@files){
my $file = shift @files;
my $info = new MP3::Info $file;
next unless $info;
next unless $info->genre =~ /jazz/i;
$icy->stream($file,0,$connection);
}
exit 0;
}
#a contrived example to demonstrate that MP3::Icecast
#can generate M3U and PLSv2 media playlists.
print STDERR $icy->m3u, "n";
print STDERR $icy->pls, "n";
$connection->close;
}
ABSTRACT
MP3::Icecast supports streaming Icecast protocol over socket or other filehandle (including STDIN). This is useful for writing a streaming media server.
MP3::Icecast also includes support for generating M3U and PLSv2 playlist files. These are common formats supported by most modern media players, including XMMS, Windows Media Player 9, and Winamp.
MP3::Icecast 0.02 Screenshot
MP3::Icecast 0.02 Keywords
MP3
PLSv2
Icecast 0.02
to generate
Perl module
files
M3U
IceCast
generate
playlists
Perl
MP3::Icecast
MP3Icecast
MP3::Icecast 0.02
Libraries
Programming
Bookmark MP3::Icecast 0.02
MP3::Icecast 0.02 Copyright
WareSeeker periodically updates pricing and software information of MP3::Icecast 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of MP3::Icecast 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
MP3::Icecast::Simple is a simple MP3::Icecast wrapper. Free Download
MP3 Diags offers you a powerful GUI-based application which lets end-users identify issues with their MP3 files, fix some of the issues and make other changes, like adding track information. Free Download
Icecast is a streaming media server which currently supports Ogg Vorbis and MP3 audio streams. Free Download
Wily::Connect is a Perl module that connects to a running Wily text editor. Free Download
IceS provides an mp3 streamer for the icecast system. Free Download
MP3::Find is a Perl module to search and sort MP3 files based on their ID3 tags. Free Download
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space. Free Download
XML::Quick is a Perl module to generate XML from hashes (and other data). Free Download
Latest Software
Popular Software
Favourite Software