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

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
  • Mgosoft PCL To PDF SDK  v.11.7.6Mgosoft PCL To PDF Converter is a fast, affordable way to batch convert your LaserJet PCL print files to industry standard PDF (Portable Document Format).
  • ByteScout PDF Extractor SDK  v.8.7.0.2980PDF Extractor SDK allows developers to convert PDF to text, PDF to XML, extract images from PDF, convert PDF tables into CSV for Excel, extract information about PDF file in .NET or ActiveX interfaces. Works without any additional software required.
  • SSIS Integration Cloud Bundle  v.1.6Devart SSIS Integration Cloud Bundle allows you to integrate data from cloud apps via SQL Server Integration Services (SSIS).
  • Devart SSIS Components  v.1.6Performance-optimized SSIS Data Flow Source, Lookup, and Destination components for database and cloud data sources.
  • 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) ...