Author Topic: Tags Library  (Read 128784 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: 25
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: 178
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: 178
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: 390
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: 178
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: 390
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: 178
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!!

DividedSE

  • Posts: 1
Re: Tags Library
« Reply #487 on: 28 Feb '19 - 13:25 »
@3delite
Can you Help Me Please? I am making a software in c# & i stuck on Reading a tag.
Tag name:- Musicbrainz Recoring ID (tag saved by Picard) #Attachment 4.png
It saved as UFID frame in my mp3. #Attachment 5.png
I used the code in c# in my program. MusicBrainzRecordingIdTag.Text=TagsLib.TagsLibrary_GetTag(_tags, "UFID", TTagType.ttID3v2); #Attachment 2.png.
But i receiving value "binary 59 byte" #Attachment 3.png
Also your sample program giving same wrong value. #Attachment 1.png

Can you please tell me how to get the string value in c# ? Thanks

dividedse1

  • Guest
Re: Tags Library
« Reply #488 on: 3 Jun '19 - 13:42 »
How to save data to USLT tag:-
This code doesn't work. ??? ??? ???
Dim Tags As HTAGS = TagsLib.TagsLibrary_Create()
Dim TagsError As TTagError = TagsLib.TagsLibrary_Load(Tags, editfile, TTagType.ttAutomatic, False)
If TagsError = TTagError.TAGSLIBRARY_SUCCESS Then
       TagsLib.TagsLibrary_SetTag(Tags, "USLT", Lyrics_Tag.Text.ToString(), TTagType.ttID3v2)
End If
TagsLib.TagsLibrary_SaveEx(Tags, editfile, TTagType.ttID3v2)

Steve Grant

  • Posts: 178
Re: Tags Library
« Reply #489 on: 30 Jul '19 - 11:37 »
Hi 3delite I seem to have found another bug.

flac files metdata usually shows in file explorer. After the update to Windows 10 1903, I've noticed that if a flac file is written to by tags library then the metadata in File Explorer disappears. The metadata is still in the file ok (confirmed by mp3Tag) but just doesn't show in Explorer. Even doing an update with mp3tag does not bring it back. The only way to get it to show again is to delete the whole tag with mp3Tag and re-enter the data and let mp3Tag write the file.

Are you really now charging freeware developers for the use of TagsLib?