[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag


Am 10.03.26 um 14:34 schrieb Benoît Minisini:
By the way, if you see somewhere in the GStreamer documentation that what is returned by the 'Info' property (in GStreamer language it's the "GstCaps" of the "GstSample") is standardized is any way, tell me.

Maybe the first key of the collection is always a mimetype. It would be like dealing with the Clipboard class, and then I could make an 'Image' property.

In my limited test case with about ten mp3 files having embedded artwork, the Info-property always provided the mimetypes "image/png" resp. "image/jpeg" as first key. Further keys like width, height or sof-marker were always contained in a further collection.

However, in the hard-to-understand GStreamer documentation "https://gstreamer.freedesktop.org/documentation/tag/gsttag.html?gi-language=c"; under "gst_tag_image_data_to_image_sample" I found, that the actual data may consist of an URI to the image rather than the image itself. So the key could be (quote) "image/jpeg, image/png, text/uri-list".

According to my interpretation this documentation confirms that the first key always provides the mimetype, but I wouldn't bet on it.

What version of Gambas is going to get the new MediaSample class?

Best regards, Claus





Follow-Ups:
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
How to read artwork bitmaps embedded in MP3 files as "image"-TagClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to read artwork bitmaps embedded in MP3 files as "image"-TagBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>