MP3::Icecast v.0.02

Advertisement
Advertisement

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.

MP3::Icecast is a Perl module to generate ...

 
  • MP3::Icecast
  • 0.02
  • Allen Day
  • Any Platform
  • Perl Artistic
  • 34 Kb
  • 159
 
 

Review MP3::Icecast

  • captcha
 

Other software of Allen Day
  • Bio::Graphics::Glyph::alignment  v.1.4Bio::Graphics::Glyph::alignment is the "alignment" glyph. SYNOPSIS See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >. This is identical to the "graded_segments" glyph, and is used for drawing features that consist of discontinuous ...
  • Bio::OntologyIO::simplehierarchy  v.1.4Bio::OntologyIO::simplehierarchy is a base class parser for simple hierarchy-by-indentation type formats. SYNOPSIS use Bio::OntologyIO, # do not use directly -- use via Bio::OntologyIO my $parser = Bio::OntologyIO->new ( -format => ...
  • FFmpeg::FileFormat  v.6036FFmpeg::FileFormat is a multimedia file format supported by FFmpeg (eg avi, mov, mpeg, mp3, &c). SYNOPSIS $ff = FFmpeg->new(), #see FFmpeg $xx = $ff->file_format(mov), #...do something with $xx Objects of this class are not intended to be ...

New Components & Libraries software
  • WolfSSL  v.3.15.0wolfSSL is a lightweight SSL/TLS library targeted for embedded and RTOS environments primarily because of its small size, speed, and portability. It employs a dual licensing model, making it available under both GPL and commercial licenses.
  • Luxand FaceSDK  v.6.5.1Real-time precision face recognition and identification SDK for C++, C#, Objective C, VB, Java and Delphi. FaceSDK enables developers to build web, Windows, Linux, MacOS X, iOS and Android applications with face recognition functionality.
  • OracleClientDAC for Delphi  v.4.0.2.0A feature-rich and high-performance library of components that provides native connectivity to Oracle from Delphi. OracleClientDAC-based applications connect to Oracle directly through the ADO.Net OracleClient (ODP.Net) ...
  • Revulytics Usage Intelligence, Mac ObjC  v.5.2The first analytics solution purpose-built for distributed software applications gives deep insight on product feature use. Install the SDK (in 30 min) to instantly see usage trends and user behavior. Also includes direct-to-desktop in-app messaging.
  • MP3-Wolf  v.2.00.002MP3-Wolf 2.00.002 is written to be a versatile audio searching tool with the ability to search the internet and spider web sites for hard to find audio files. Enter in a search query into MP3-Wolf and start the program.MP3-Wolf will then crawl the ...
  • Mp3cleanup  v.0.9mp3cleanup is used to tidy up various aspects of MP3 files, including filenames, ID3 tags, path, m3u playlists, and bitrate. This is particularly useful for hardware MP3 players that sometimes have arbitrary limitations on the files they work (well) ...