Recent

Author Topic: Mp3 and Lazarus. How to insert Jpeg file inside Mp3?  (Read 1106 times)

d2010

  • Jr. Member
  • **
  • Posts: 62
Mp3 and Lazarus. How to insert Jpeg file inside Mp3?
« on: July 12, 2024, 09:17:08 am »
Subject=VideoVlc.exe display a image/ jpeg from Bird.mp3.
How to insert other image.jpeg to any*.mp3 not Bird.Mp3?
Can I insert image/jpeg into empty.mp3?
Other problem/s is OlderMplayer.exe do not play the Bird.mp3 with Image/Jpeg.
 :o
Code: [Select]
One-solution1= Modify properties inside *.mp3 by MyApp.exe
« Last Edit: July 12, 2024, 09:20:06 am by d2010 »

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: Mp3 and Lazarus. How to insert Jpeg file inside Mp3?
« Reply #1 on: July 12, 2024, 09:24:05 am »
You can't insert a jpeg into a mp3.

However you can use a tag format that allows you to add tags (including a tag that allows pictures) to a mp3 file.

You would have to decide which tag format you wish to use and then check and see if there is a FPC implementation for that specific tag format.

See also mp3 wikipedia, id3 metadata
« Last Edit: July 12, 2024, 09:27:24 am by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

RayoGlauco

  • Full Member
  • ***
  • Posts: 193
  • Beers: 1567
Re: Mp3 and Lazarus. How to insert Jpeg file inside Mp3?
« Reply #2 on: July 12, 2024, 09:32:42 am »
As far as I know, VLC retrieves album covers from the Internet and displays them, when it identifies that your mp3 is a commercial song.
To err is human, but to really mess things up, you need a computer.

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: Mp3 and Lazarus. How to insert Jpeg file inside Mp3?
« Reply #3 on: July 12, 2024, 09:38:32 am »
I forgot to mention: It is also possible to use an existing (commandline) tag utility and invoke that from within FPC/Lazarus to add a picture.

@RayoGlauco:
VLC also has a plugin that supports tags (libtags, APE etc)

Here I found something that seem to support a plethora of tags and audio formats though I have no experience with it so no idea if is any good.

See also one of many threads regarding MP3 metadata.
« Last Edit: July 12, 2024, 09:54:58 am by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

Thaddy

  • Hero Member
  • *****
  • Posts: 16145
  • Censorship about opinions does not belong here.
Re: Mp3 and Lazarus. How to insert Jpeg file inside Mp3?
« Reply #4 on: July 12, 2024, 09:56:42 am »
Yes, technically you can insert an image in an mp3 file, but it deviates from the standard.
(I wrote the mp3 decoder for delphi back in the days and 100% pascal. It contains a bug, though, the resolution is one bit short, but it works, and nobody complained.. at the time I did not pay attention to signed or unsigned.)
« Last Edit: July 12, 2024, 10:02:33 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018