PDA

View Full Version : libFLAC, XS, Audio::FLAC::Header



tom permutt
2009-10-31, 07:35
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.

andyg
2009-10-31, 07:43
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.
>

Philip Meyer
2009-10-31, 09:53
Or use Mp3Tag, which can format tags based on file name content.

tom permutt
2009-10-31, 10:15
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.