Author Topic: Tags Library  (Read 89530 times)

Pauven

  • Posts: 8
Re: Tags Library
« Reply #475 on: 22 Oct '18 - 17:04 »
Thank you 3delite for the update, I just applied it.

My program is definitely supporting Ogg files, so thank you for that tip.

Something very odd about the ParseCoverArts parameter.  I added it, and the program compiles and runs okay, but the Delphi 10.2.3 syntax checker complains that " 'TTags' does not contain a member named 'ParseCoverArts' ", and underlines it in red.

I looked in TagsLibrary,pas, and ParseCoverArts doesn't exist anywhere in that file.

I then looked in ID3v2Library, and I see a ParseCoverArts Boolean as a public var in the TID3v2Tag class.

Parsing speed stayed about the same either way.

Thoughts?

Paul

3delite

  • Posts: 932
Re: Tags Library
« Reply #476 on: 24 Oct '18 - 23:02 »
That's strange, it should be in line 281 (TagsLibrary.pas, in the Delphi folder of the package), it's there here. :)

Please check that Delphi is using the right TagsLibrary.pas file, maybe You copied TagsLibrary.pas somewhere on the search path and Delphi is using the wrong unit.

Pauven

  • Posts: 8
Re: Tags Library
« Reply #477 on: 25 Oct '18 - 16:39 »
Hmmm, very weird, it's there now, and the syntax error is now gone.

I did close and reopen Delphi since I last checked, so maybe that had something to do with it.

Sorry for the false report.  I really appreciate all your help!

Paul

azrael11

  • Posts: 19
Re: Tags Library
« Reply #478 on: 29 Oct '18 - 08:43 »
Hello...
i have a little problem saving an image to ID3v2 tag mp3

here is my code
Code: [Select]
if vSoundplayer.scene.OpenDialog.FileName <> '' then
  begin
    Fext := UpperCase(ExtractFileExt(vSoundplayer.scene.OpenDialog.FileName));
    if (Fext = '.JPG') or (Fext = '.JPEG') then
    begin
      MIMEType := 'image/jpeg';
    end;
    if (Fext = '.PNG') then
    begin
      MIMEType := 'image/png';
    end;
    if (Fext = '.BMP') then
    begin
      MIMEType := 'image/bmp';
    end;
    if (Fext = '.GIF') then
    begin
      MIMEType := 'image/gif';
    end;

    Description := '';
    PictureType := $03;
    FrameIndex := addons.soundplayer.Player.Tag.mp3.ID3v2.AddFrame('APIC');

    if addons.soundplayer.Player.Tag.mp3.ID3v2.SetUnicodeCoverPictureFromFile
      (addons.soundplayer.Player.Tag.mp3.ID3v2.FrameExists('APIC'), Description,
      vSoundplayer.scene.OpenDialog.FileName, MIMEType, PictureType) then
      vSoundplayer.Tag.mp3.ID3v2_Cover.Bitmap.LoadFromFile(vSoundplayer.scene.OpenDialog.FileName);
    addons.soundplayer.Player.Tag.mp3.ID3v2.Free;

The debugger says that the file used from another procces ...
I check it and i dont find anything so what i'm doing wrong here.

But when i save the same time the ID3v1 then saves ok.

Thank you.

bega

  • Posts: 23
Re: Tags Library
« Reply #479 on: 2 Nov '18 - 19:47 »
need the tagslib.lib and tagslib.a to use in QT
« Last Edit: 2 Nov '18 - 21:13 by bega »

3delite

  • Posts: 932
Re: Tags Library
« Reply #480 on: 5 Nov '18 - 22:56 »
Attached the LIB file. Not sure what "tagslib.a" is, sorry.

Steve Grant

  • Posts: 163
Re: Tags Library
« Reply #481 on: 20 Nov '18 - 08:56 »
Hi 3delite,

I have found a track that won't read or write with TagsLib. It just crashes my app even though I have a lot of error checking in place.

It is fine in MP3Tag, dBpoweramp and AudioGenie.

https://www.dropbox.com/s/eci4w7om6d839xm/CD1394Track08.zip?dl=1

Cheers Steve.

Steve Grant

  • Posts: 163
Re: Tags Library
« Reply #482 on: 29 Nov '18 - 12:20 »
Is it possible to correct this? I notice even your test exe has the problem.

EWeiss

  • Posts: 367
Re: Tags Library
« Reply #483 on: 29 Nov '18 - 12:51 »
Is it possible to correct this? I notice even your test exe has the problem.

which is a APE-Tag inside the file and that is wrong has nothing to do with ID3-Tag, but does the same Job.
no idea that TagsLib supports APE-Tag !

TagsLib supports APEv2..

greets
« Last Edit: 29 Nov '18 - 12:55 by EWeiss »

Steve Grant

  • Posts: 163
Re: Tags Library
« Reply #484 on: 29 Nov '18 - 13:14 »
Hi Emil, yes I had noticed there was an Ape as well as an ID3v2.3 tag in there.

My problem is that Tagslib completely crashes my VB6 program IDE & Compiled - Read & Write. Even though I have error checking turned on in the method.

AudioGenie, dBpoweramp, mp3tag just deal with it ok.

Obviously I cannot have my program crashing!

Best to you.

EWeiss

  • Posts: 367
Re: Tags Library
« Reply #485 on: 30 Nov '18 - 09:40 »
Quote
Obviously I cannot have my program crashing!
There you are right  :)

i hope can fix it.

greets

Steve Grant

  • Posts: 163
Re: Tags Library
« Reply #486 on: 7 Dec '18 - 08:05 »
Here's some more info, I have reverted to v1.0.75.130 from v1.0.78.133 and the problem has gone!!