MP3::Splitter 0.03 review

Download
by rbytes.net on

MP3::Splitter is a Perl extension for splitting MP3 files. SYNOPSIS use MP3::Splitter; mp3split('xx.mp3', {verbose => 1},

License: Perl Artistic License
File size: 8K
Developer: Ilya Zakharevich
0 stars award from rbytes.net

MP3::Splitter is a Perl extension for splitting MP3 files.

SYNOPSIS

use MP3::Splitter;
mp3split('xx.mp3', {verbose => 1}, [3, 356.25], [389, 615, lax => 10]);

mp3split_read('xx.mp3', 'xx.list', {verbose => 1});

The first two arguments of mp3split() is a name of an MP3 file and a reference to a hash of options, the remaining are descriptions of pieces. Such a description is an array reference with the start and duration of the piece (in seconds; or of the forms 03h05m56.45, 03h05m56.45s, or 03:05:56.45; any of the hours/minutes/seconds fields can be omited if the result is not ambiguous.

Alternatively, one can specify the start field as a relative position w.r.t. the end of previous piece (or start of file); to do this, prepend > to the field. Similarly, one can put end-of-the-piece in the duration field by prepending the time by =; if this field has a special value 'INF', it is assumed to go until the start of the next piece, or until the audio ends.

The remaining elements of a piece description should form a hash of piece-specific options (arbitrary user data can be stored with the key user).

Similarly, mp3split_read() takes names of an MP3 file and of a file with the description of pieces, followed by optional reference to a hash of options. Each line of the description file should be either empty (except comments), or have the form

START END # OPTIONAL_COMMENT

START and END are exactly the same as in the description of pieces for mp3split(); however, END may be omited (with the same meaning as 'INF'). Note that this is a format of method output_blocks() of Audio::FindChunks.

Requirements:
Perl

MP3::Splitter 0.03 search tags