Recent

Author Topic: Picture tag in mp3, ogg, etc  (Read 11317 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Picture tag in mp3, ogg, etc
« on: February 01, 2013, 09:03:54 pm »
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/
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

ROCABDEL

  • New Member
  • *
  • Posts: 41
Re: Picture tag in mp3, ogg, etc
« Reply #1 on: February 01, 2013, 10:07:09 pm »
Hi! you can use Mp3FileUtils from Nemp Project,.
Thank you for your  work Fred.
Processor:IntelCore 2 2.19GHz - RAM 2GB
(Lazarus1.0.4 / fpc2.6.0 / qt4.7.3 at4pas2.5 / Xcode4.0)
-Windows 7/8-Intel Mac OS X 10.6.8-Haiku-Openidiana,Solaris11-PC-BSD,GhostBSD-openSUSE,Ubuntu,Fedora,mageia,Sabayon,Chakra..

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Re: Picture tag in mp3, ogg, etc
« Reply #2 on: February 01, 2013, 10:17:09 pm »
@ ROCABDEL : many thanks for the link but...
It does not seem to be have a picture tag reader-writer  :-X

EDIT : The library Mpg123 has also his own mp3 tag reader-writer but nothing for the picture tag  :'(
« Last Edit: February 01, 2013, 10:23:58 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Picture tag in mp3, ogg, etc
« Reply #3 on: February 01, 2013, 10:25:28 pm »
They packed two huge non-striped binaries to that zip.  ::)
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

ROCABDEL

  • New Member
  • *
  • Posts: 41
Re: Picture tag in mp3, ogg, etc
« Reply #4 on: February 01, 2013, 10:27:08 pm »
GetPicture and SetPicture in ID3v2Frames.pas unit  :)
Processor:IntelCore 2 2.19GHz - RAM 2GB
(Lazarus1.0.4 / fpc2.6.0 / qt4.7.3 at4pas2.5 / Xcode4.0)
-Windows 7/8-Intel Mac OS X 10.6.8-Haiku-Openidiana,Solaris11-PC-BSD,GhostBSD-openSUSE,Ubuntu,Fedora,mageia,Sabayon,Chakra..

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Re: Picture tag in mp3, ogg, etc
« Reply #5 on: February 01, 2013, 10:33:59 pm »
@ Rocabel : Magnifique, fabulous... many, many thanks.

PS : Maybe a good opportunity for BGRABitmap to go into sound ? (i agree, im too much  :-[)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Re: Picture tag in mp3, ogg, etc
« Reply #6 on: February 01, 2013, 10:55:51 pm »
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.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Picture tag in mp3, ogg, etc
« Reply #7 on: February 01, 2013, 11:29:53 pm »
JPEG - no.
PNG - also no.
Only this: http://en.wikipedia.org/wiki/APNG
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Re: Picture tag in mp3, ogg, etc
« Reply #8 on: February 01, 2013, 11:48:25 pm »
@ Blaazen : Could be interesting to load a APNG picture in a  mp3 and see if we can read it (does Bgrabitmap recognize APNG ?)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Picture tag in mp3, ogg, etc
« Reply #9 on: February 01, 2013, 11:59:35 pm »
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Re: Picture tag in mp3, ogg, etc
« Reply #10 on: February 02, 2013, 12:18:24 am »
Quote
if 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  :'(
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Picture tag in mp3, ogg, etc
« Reply #11 on: February 02, 2013, 12:37:32 am »
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

ROCABDEL

  • New Member
  • *
  • Posts: 41
Re: Picture tag in mp3, ogg, etc
« Reply #12 on: February 02, 2013, 12:44:22 am »
Processor:IntelCore 2 2.19GHz - RAM 2GB
(Lazarus1.0.4 / fpc2.6.0 / qt4.7.3 at4pas2.5 / Xcode4.0)
-Windows 7/8-Intel Mac OS X 10.6.8-Haiku-Openidiana,Solaris11-PC-BSD,GhostBSD-openSUSE,Ubuntu,Fedora,mageia,Sabayon,Chakra..

Fred vS

  • Hero Member
  • *****
  • Posts: 3942
    • StrumPract is the musicians best friend
Re: Picture tag in mp3, ogg, etc
« Reply #13 on: February 02, 2013, 02:38:32 pm »
@ ROCABDEL  : many thanks.
And it has a "png" extension, so maybe other "classical" players can read it static.
I gonna test it, many thanks.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: Picture tag in mp3, ogg, etc
« Reply #14 on: February 02, 2013, 03:06:34 pm »
Mp3FileUtils has some bugs:
- problem with loading unicode file on windows (it should use TFileStreamUTF8)
- problem with tags encoding on linux

 

TinyPortal © 2005-2018