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
  • 162
 
 

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
  • DotConnect for MailChimp  v.1.7dotConnect for MailChimp is an ADO.NET provider for working with MailChimp data through the standard ADO.NET or Entity Framework interfaces.
  • Mgosoft PS To PDF SDK  v.9.1.2Mgosoft PS To PDF is a simple tool that supports converting PostScript (PS) documents effectively, into Portable Document Format (PDF) format files.
  • Devart ODBC Driver for MySQL  v.2.4Devart ODBC Driver for MySQL provides high-performance and feature-rich connectivity solution for ODBC-based applications to access MySQL databases from Windows, both 32-bit and 64-bit.
  • Devart ODBC Driver for InterBase  v.2.2Devart ODBC Driver for InterBase provides high-performance and feature-rich connectivity solution for ODBC-based applications to access InterBase databases from Windows, both 32-bit and 64-bit.
  • 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) ...