GEOB Usage (Example Needed)
Sander Jansen
s.jansen at gmail.com
Fri Jan 6 14:49:40 UTC 2017
Something along the lines of:
TagLib::File * file = <some file pointer>
TagLib::MPEG::File * mpgfile = nullptr;
if ((mpgfile = dynamic_cast<TagLib::MPEG::File*>(file))!=nullptr){
id3v2=mpgfile->ID3v2Tag();
const TagLib::ID3v2::FrameList framelist = id3v2->frameListMap()["GEOB"];
for(auto it = framelist.begin(); it != framelist.end(); it++) {
TagLib::ID3v2::GeneralEncapsulatedObjectFrame * frame =
dynamic_cast<TagLib::ID3v2::GeneralEncapsulatedObjectFrame*>(*it);
// frame->mimeType() // mimetype
// frame->fileName() // filename
// frame->object() // actual bytes in ByteVector
}
}
On Fri, Jan 6, 2017 at 12:57 AM, Timothy Stoyanovski <
stoyanovski.development at gmail.com> wrote:
> Hello,
>
> Using TagLib::File::properties(), some common tags such as GEOB are
> ignored though they are within IDv2.3 spec.
>
> My question is, when using TagLib::File, how can you get GEOB data as well
> as it's content formatted for it's mime type? For this specific example I
> have a GEOB with "application/octet-stream".
>
> Would the correct approach be to use the codec specific classes to find a
> GEOB frame, then parse over the GEOB data? GEOB has a standard format of
> data, TagLib should support this but I see no example of it.
>
> This question specifically is asking for an example of how to get GEOB
> frames and it's data for any file type passed to it (Supporting ID3v2 or
> not, as FLAC sometimes has ID3v2 frames).
>
> Any example would be great. Previously to find this mailing list I had
> posted to StackOverflow: http://stackoverflow.com/questions/
> 41500360/taglib-getting-geob-content
>
>
> Specifically looking for C++ example.
>
> Much appreciate any help available.
> --
> Timothy Stoyanovski - Developer
> *PHP + Frontend*
>
> *Open Source Contributions: https://github.com/stoyvo
> <https://github.com/stoyvo>*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20170106/e4e32891/attachment.html>
More information about the taglib-devel
mailing list