Regarding getting thumbnail image of MP4 files

Satya Praveen Ganapathi praveen.s at
Thu Dec 6 10:07:34 UTC 2012


  I am developing in Qt 5.0 beta 2 . I have written code as follows:

TagLib::MP4::File f(file);
TagLib::MP4::Tag* tag = f.tag();
TagLib::MP4::ItemListMap itemsListMap = tag->itemListMap();
TagLib::MP4::Item coverItem = itemsListMap["covr"];
TagLib::MP4::CoverArtList coverArtList = coverItem.toCoverArtList();
TagLib::MP4::CoverArt coverArt = coverArtList.front();
image.loadFromData((const uchar *),; +"/myImage.png");
 But did not get anything , please help me. In case of mp3 file , I got the thumbnail image and other metadata.

-----Original Message-----
From: taglib-devel-bounces at [mailto:taglib-devel-bounces at] On Behalf Of Lukáš Lalinský
Sent: Thursday, December 06, 2012 1:57 PM
To: taglib-devel at
Subject: Re: Regarding getting thumbnail image of MP4 files

On Thu, Dec 6, 2012 at 4:48 AM, Sonakumar_Jha
<Sonakumar_Jha at> wrote:
> I tried to get thumbnail image of a MP4 file using TagLib in Qt/C++ . its being very tough to get coverart of a MP4 . i could get all metadat of a MP3 file, but nothing in case of Mp4 file.
> Plesae help me. There are so many examples in Internet ,but no on is working.

You should tell us what have you tried and what didn't work.

This example should work fine:

taglib-devel mailing list
taglib-devel at

More information about the taglib-devel mailing list