MPEG::Audio::Frame 0.09 review

Download
by rbytes.net on

MPEG::Audio::Frame is a class for weeding out MPEG audio frames out of a file handle. SYNOPSIS use MPEG::Audio::Frame;

License: Perl Artistic License
File size: 357K
Developer: Yuval Kojman
0 stars award from rbytes.net

MPEG::Audio::Frame is a class for weeding out MPEG audio frames out of a file handle.

SYNOPSIS

use MPEG::Audio::Frame;

open FILE,"file.mp3";

while(my $frame = MPEG::Audio::Frame->read(*FILE)){
print $frame->offset(), ": ", $frame->bitrate(), "Kbps/", $frame->sample()/1000, "KHzn"; # or something.
}

A very simple, pure Perl module which allows parsing out data from mp3 files, or streams, and chunking them up into different frames. You can use this to accurately determine the length of an mp3, filter nonaudio data, or chunk up the file for streaming via datagram. Virtually anything is possible.

Requirements:
Perl

MPEG::Audio::Frame 0.09 keywords