[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
[Thread Prev] | [Thread Next]
- Subject: Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag
- From: Claus Dietrich <claus.dietrich@xxxxxxxxxx>
- Date: Tue, 10 Mar 2026 23:40:28 +0100
- To: Gambas MailingList <user@xxxxxxxxxxxxxxxxxxxxxx>
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
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: How to read artwork bitmaps embedded in MP3 files as "image"-Tag | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |