MPEG-Audio-Frame
view release on metacpan or search on metacpan
lib/MPEG/Audio/Frame.pm view on Meta::CPAN
while(my $frame = MPEG::Audio::Frame->read(\*FILE)){
print $frame->offset(), ": ", $frame->bitrate(), "Kbps/", $frame->sample()/1000, "KHz\n"; # or something.
}
=head1 DESCRIPTION
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.
=head1 MPEG FORMAT SUPPORT
L<MPEG::Audio::Frame> supports various types of MPEG data.
=over 4
=item MPEG-1
Any type of MPEG1 audio is supported, including the backwards compatible
( run in 0.432 second using v1.01-cache-2.11-cpan-4d50c553e7e )