Doctrin has asked for the wisdom of the Perl Monks concerning the following question:

Hello dear Monks. I am looking for a Perl module (if any) to retreive, say, first 30 seconds from an mp3 file. Does anyone know such a module? Thanks
  • Comment on Perl module to get a sample from mp3 file, say, for 30 seconds

Replies are listed 'Best First'.
Re: Perl module to get a sample from mp3 file, say, for 30 seconds
by choroba (Cardinal) on Jul 24, 2013 at 21:40 UTC
    A colleague of mine once wrote Audio::aKodePlayer when we needed to play short parts of mp3's. It might still work.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: Perl module to get a sample from mp3 file, say, for 30 seconds
by hardburn (Abbot) on Jul 24, 2013 at 20:15 UTC

    Perhaps FFmpeg::Command. I don't know that there's one implemented in Pure Perl or that links into a C library. There's some other ffmpeg modules, but they all seem focused on video or simply deparsing the container format.


    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.