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.
Results 1 to 4 of 4
Thread: libFLAC, XS, Audio::FLAC::Header
-
2009-10-31, 07:35 #1
- Join Date
- Oct 2005
- Posts
- 120
libFLAC, XS, Audio::FLAC::Header
-
2009-10-31, 07:43 #2
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.
>
-
2009-10-31, 09:53 #3
libFLAC, XS, Audio::FLAC::Header
Or use Mp3Tag, which can format tags based on file name content.
-
2009-10-31, 10:15 #4
- 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.