Picture tag in mp3, ogg, etc lazarus / 39-Graphics ---------------------------------------------------------------------- Fred vS · 2013-02-01 20:03 Hello everybody. Does it exist a way to extract and edit the picture inside the mp3 or ogg file with some Lazarus component ? http://www.richardfarrar.com/embedding-album-art-in-mp3-files/ ---------------------------------------------------------------------- ROCABDEL · 2013-02-01 21:07 Hi! you can use Mp3FileUtils from Nemp Project,. Thank you for your  work Fred. ---------------------------------------------------------------------- Fred vS · 2013-02-01 21:17 @ ROCABDEL : many thanks for the link but... It does not seem to be have a picture tag reader-writer  EDIT : The library Mpg123 has also his own mp3 tag reader-writer but nothing for the picture tag ---------------------------------------------------------------------- Blaazen · 2013-02-01 21:25 They packed two huge non-striped binaries to that zip. ---------------------------------------------------------------------- ROCABDEL · 2013-02-01 21:27 GetPicture and SetPicture in ID3v2Frames.pas unit ---------------------------------------------------------------------- Fred vS · 2013-02-01 21:33 @ Rocabel : Magnifique, fabulous... many, many thanks. PS : Maybe a good opportunity for BGRABitmap to go into sound ? (i agree, im too much  ) ---------------------------------------------------------------------- Fred vS · 2013-02-01 21:55 I know that gif format can be a animated gif. It seems that the standard format of picture tag is jpeg or png. Does it exist animated jpeg or png ? If it exists animated jpeg or png, i never seen a mp3 with a animated picture and it gonna be a "première" if somebody do it. ---------------------------------------------------------------------- Blaazen · 2013-02-01 22:29 JPEG - no. PNG - also no. Only this: http://en.wikipedia.org/wiki/APNG ---------------------------------------------------------------------- Fred vS · 2013-02-01 22:48 @ Blaazen : Could be interesting to load a APNG picture in a  mp3 and see if we can read it (does Bgrabitmap recognize APNG ?) ---------------------------------------------------------------------- taazz · 2013-02-01 22:59 based on the info in the link you posted on the 1st post you can use any type of image you want only if you want compatibility with player devices  aka cd/dvd or other  type of stand alone players in which case the standard is jpg. if you are writing some kind of player/editor you should be able to support what ever you like. ---------------------------------------------------------------------- Fred vS · 2013-02-01 23:18 Quoteif you are writing some kind of player/editor you should be able to support what ever you like Yep, but so other "traditional" player could not read your picture, even not animated. What i find very good in gif format, it is that if your gif is animated, even if your gif picture browser does not have the ability to render animation, you can see it. But gif, sadly, is not the default format for mp3. Maybe a APNG format can be read by a "normal" PNG picture browser. If so,of course only your player can show the animation, but other could show static picture. I want to create a apng to test it but gimp cannot do it ---------------------------------------------------------------------- taazz · 2013-02-01 23:37 well to be honest this is the 1st time I heard about apng format my self I was under the impression that the animated file format created by the same people that created the png format was the mng file format, which is I think should be supported by gimp. Of course it has been so many years for the last time I looked at graphics formats that my memory might playing tricks on me. ---------------------------------------------------------------------- ROCABDEL · 2013-02-01 23:44 Animated_PNG_example_bouncing_beach_ball.png ---------------------------------------------------------------------- Fred vS · 2013-02-02 13:38 @ ROCABDEL  : many thanks. And it has a "png" extension, so maybe other "classical" players can read it static. I gonna test it, many thanks. ---------------------------------------------------------------------- Dibo · 2013-02-02 14:06 Mp3FileUtils has some bugs: - problem with loading unicode file on windows (it should use TFileStreamUTF8) - problem with tags encoding on linux ---------------------------------------------------------------------- Fred vS · 2013-02-03 15:25 Hello everybody. In attachment, a mp3 with animated png. "Traditional" players can show the static image. So the door is open to do some animation in mp3 (but you have to create a compatible apng player)...