Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Oct 2005
    Posts
    120

    libFLAC, XS, Audio::FLAC::Header

    I've got FLAC files from Magnatune.com (good music, non-evil, btw) with wrong tracknumbers. They also have the tracknumbers in the filenames, so I've written Perl to extract those and write the TRACKNUMBER tag. Naturally, I'm not fiddling with the FLAC tag format myself: I just use Audio::FLAC::Header, which used to be in SlimServer, is still in flac2mp3, and is in CPAN.

    It works with an old, pure Perl version of Audio::FLAC::Header. The up-to-date CPAN one uses XS to call libFLAC. The installation complains that libFLAC is not installed or is not in the default path. I've put it everywhere I can think of. Where is it supposed to go?

    ActivePerl5.10, mingw, dmake, etc.

  2. #2
    Former Squeezebox Guy andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,396

    libFLAC, XS, Audio::FLAC::Header

    If I were you I'd just use a simple script that calls metaflac to
    adjust the track numbers. Especially as you are on Windows, where
    building XS-based Perl modules is non-trivial with ActivePerl.

    On Oct 31, 2009, at 10:35 AM, tom permutt wrote:

    >
    > I've got FLAC files from Magnatune.com (good music, non-evil, btw)
    > with
    > wrong tracknumbers. They also have the tracknumbers in the filenames,
    > so I've written Perl to extract those and write the TRACKNUMBER tag.
    > Naturally, I'm not fiddling with the FLAC tag format myself: I just
    > use
    > Audio::FLAC::Header, which used to be in SlimServer, is still in
    > flac2mp3, and is in CPAN.
    >
    > It works with an old, pure Perl version of Audio::FLAC::Header. The
    > up-to-date CPAN one uses XS to call libFLAC. The installation
    > complains
    > that libFLAC is not installed or is not in the default path. I've put
    > it everywhere I can think of. Where is it supposed to go?
    >
    > ActivePerl5.10, mingw, dmake, etc.
    >



  3. #3
    Senior Member Philip Meyer's Avatar
    Join Date
    Apr 2005
    Location
    UK
    Posts
    5,596

    libFLAC, XS, Audio::FLAC::Header

    Or use Mp3Tag, which can format tags based on file name content.

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Posts
    120

    thanks!

    That works, too. Thanks, Andy, for pointing me in that direction. For now, I'll take "non-trivial" as an excuse to give up on the hard way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •