23 May '13 - 21:03 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Reading/extracting cover art?  (Read 1313 times)
Patrice Terrier
Posts: 89


« on: 26 Jul '11 - 11:55 »
Reply with quoteQuote

What is the best way with Bass.dll to extract/read "cover art" from audio file using ID3 tag?

...
Logged
normcook04
Posts: 17


« Reply #1 on: 26 Jul '11 - 13:08 »
Reply with quoteQuote

AFAIK, you can't with the bass.dll.  BassTags will read text based
tags but not the Album Picture (APIC) tag.

Here is a fast Tag Reader dll which reads everything from
a large number of media formats:
http://sourceforge.net/projects/audiogenie/

I am a VB6 programmer and I use the class (cls) on this page:
http://mirror.transact.net.au/sourceforge/a/project/au/audiogenie/V2.0.4.0/wrapper/VB6/  Even if you don't use VB6, it will show the dll usage.

The AudioGenie dll allows saving the artwork to file or to a byte array.

Logged
Patrice Terrier
Posts: 89


« Reply #2 on: 29 Jul '11 - 08:03 »
Reply with quoteQuote

AudioGenie3.dll works like a charm by me.

Thank you!

...
Logged
Patrice Terrier
Posts: 89


« Reply #3 on: 29 Jul '11 - 20:16 »
Reply with quoteQuote

Here is the result using AudioGenie3.dll to display the "Cover Art" from ID3 tag.



And here is the header converted from C++ to PowerBASIC 10+
http://www.jose.it-berater.org/smfforum/index.php?topic=4184.msg14520;topicseen#msg14520

...
Logged
Rakham01
Posts: 15


« Reply #4 on: 9 Jul '12 - 09:31 »
Reply with quoteQuote

Hi!

I found your old topic, "Reading/extracting cover art".

So I also downloaded that wrapper for VB6, but I'm still not sure, how to use it.
I'm trying to get album art from mp3 file, with this function:

Public Function ID3V2GetPictureFile(ByVal FileName As String, ByVal Index As Integer) As Integer
  ID3V2GetPictureFile = ID3V2GetPictureFileW(StrPtr(FileName), Index)
End Function

In AudioGenie help file:
Return Value (normally -1, 0 on error or index not present)
Filename (Name of the file where the picture will be stored)
Index (index from 1 to picture frame count)

So, where can I pass the source mp3 filename, from which the album art is read? "Filename" in here is the target, where to store that picture. Any comments?
Logged
Rakham01
Posts: 15


« Reply #5 on: 12 Jul '12 - 09:04 »
Reply with quoteQuote

After reading information text from AudioGenie class-module, there is this explanation:

'  Dim Genie As clsAudioGenie
'  Set Genie = New clsAudioGenie
'  Genie.AUDIOAnalyzeFile(file$)

So there is that method, I was looking for. Problem solved  Grin
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines