IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Extract Cover/Album Art, For Web Display
DanH
post Apr 30 2012, 19:46
Post #1


Member


Group: Members
Posts: 3
Joined: 30-April 12
Member No.: 16398
Mp3tag Version: 2.50



Hello there!

I'm hoping this is the right forum category. To start off, MP3Tag is awesome! smile.gif It's really an extremely stable and featured program, which I share with MANY people, and it's always a big hit. Recently someone asked me the following:
Is it possible, say using PHP, to "echo" (extract/view) art from an mp3 file? Meaning, if on server there is a song.mp3 which already has cover/album art encoded, is there a way/script to extract that to view on webpage.

(PHP was just an example, it can be js, etc).

TIA!
Go to the top of the page
 
+Quote Post
ryerman
post Apr 30 2012, 20:47
Post #2


Member


Group: Full Members
Posts: 87
Joined: 16-August 09
From: Canada
Member No.: 10731
Mp3tag Version: 2.65



QUOTE (DanH @ Apr 30 2012, 14:46) *
...Is it possible, say using PHP, to "echo" (extract/view) art from an mp3 file? Meaning, if on server there is a song.mp3 which already has cover/album art encoded, is there a way/script to extract that to view on webpage.

(PHP was just an example, it can be js, etc).

I assume you know that Mp3tag can extract the "picture" field, from various file types, to the users file system.
However, there are only minimal command line arguments available, and they are mostly (only?) concerned with loading files and directories. AFAIK, there are no plans to expand command line functionality.

"ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files."

It can extract the "picture" field (or any other field) from the tag of various audio file types (mp3, flac, wma, at least). It is a monster of a program, aimed at photographers, and highly respected in that community. It is well documented and supported by the author, Phil Harvey, but the learning curve is steep!

I've used it with .bat and .vbs scripts and faintly remember talk in the Exiftool forums of js and php "wrappers". Maybe that indicates it can be called by those scripts.


--------------------
Windows 7 Home Premium, 64 bit, SP1
Go to the top of the page
 
+Quote Post
DanH
post Apr 30 2012, 21:27
Post #3


Member


Group: Members
Posts: 3
Joined: 30-April 12
Member No.: 16398
Mp3tag Version: 2.50



QUOTE (ryerman @ Apr 30 2012, 22:47) *
I assume you know that Mp3tag can extract the "picture" field, from various file types, to the users file system.
However, there are only minimal command line arguments available, and they are mostly (only?) concerned with loading files and directories. AFAIK, there are no plans to expand command line functionality.

"ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files."

It can extract the "picture" field (or any other field) from the tag of various audio file types (mp3, flac, wma, at least). It is a monster of a program, aimed at photographers, and highly respected in that community. It is well documented and supported by the author, Phil Harvey, but the learning curve is steep!

I've used it with .bat and .vbs scripts and faintly remember talk in the Exiftool forums of js and php "wrappers". Maybe that indicates it can be called by those scripts.

Thank you for the quick response.
Yes, I'm familiar with MP3Tag's extract feature. Thanks for checking though.
Interesting tip re:exiftool. Will look into it. Thank you.
Go to the top of the page
 
+Quote Post
LyricsLover
post May 1 2012, 08:25
Post #4


Member


Group: Full Members
Posts: 805
Joined: 21-September 06
From: Central Europe
Member No.: 3709
Mp3tag Version: 2.65



Just to let you know about the ExifTool and mp3:
It can only READ mp3, not write...

MP3 R MPEG-1 layer 3 audio (uses ID3 information)
source: http://www.sno.phy.queensu.ca/~phil/exiftool/#supported
Go to the top of the page
 
+Quote Post
DanH
post May 2 2012, 12:19
Post #5


Member


Group: Members
Posts: 3
Joined: 30-April 12
Member No.: 16398
Mp3tag Version: 2.50



Thanks. Turns out its possible:
http://u88.n24.queensu.ca/exiftool/forum/i...2.html#msg19362
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2014 - 09:00