getting tags from m4a
Glenn McCord
glenn.mccord at gmail.com
Sat Nov 13 00:17:41 CET 2010
I'm just guessing what could be causing your exact errors, but I do
know that mpeg4 support has to be compiled into the taglib using a
compiler flag inorder for it to work. I'm not sitting in front of a
machine right now that has it so I can't check what th exact flag is,
but it might be something like
./configure --enable-mpeg4 or something. Just go ./configure --help to
see what flag is required to enable m4a, mp4 etc support.
On Sat, Nov 13, 2010 at 6:08 AM, Jared Shapiro <jared at sonicboommedia.com> wrote:
> I am integrating tablib with a ruby/rails project on linux.
> Getting metadata from mp3 files works fine from the ruby shell but I can't get m4a files to work. Taglib works fine with these m4a files in a c++ project on windows.
>
> Here’s the outputs:
>
> irb(main):014:0> mp3 = TagLib::FileRef.new('Fergie Clumsy.mp3')
> => #<TagLib::FileRef:0x2aaaac5509e8>
> irb(main):015:0> mp3.tag
> => #<TagLib::Tag:0x2aaaac54dd10>
> irb(main):016:0> mp3.tag.artist
> => "Fergie"
> irb(main):017:0> m4a = TagLib::FileRef.new('03 Katy Song.m4a')
> => #<TagLib::FileRef:0x2aaaac544328>
> irb(main):018:0> m4a.tag
> TagLib: FileRef::tag() - Called without a valid file.
> => nil
>
> irb(main):020:0> tag=TagFile::File.new('03 Katy Song.m4a')
> TagFile::BadFile: Bad file
> from (irb):20:in `new'
> from (irb):20
> from :0
> irb(main):021:0> tag=TagFile::File.new('Fergie Clumsy.mp3')
> => #<TagFile::File:0x2aaaac532380>
> irb(main):022:0> tag.title
> => "Clumsy"
>
> any ideas?
>
> Thanks
>
> Jared
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>
More information about the taglib-devel
mailing list