ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

SOLVED: Add cover art to MP3 from command line

(1/2) > >>

wr975:
I'm looking for a Windows tool which adds cover art to MP3 files, preserving existing ID3 tags, so I can use it in scripts, like

"tool.exe folder.jpg title.mp3"

I don't care if it's a console application or not, it should just accept command line parameters (with no output).


I found a tool doing exactly such thing called "MetaMP3 v0.92 beta 5" (about four years old) but the tool isn't unicode and messing up ID3tags with international characters. >:(

The next best - and only - thing is probably eyeD3, but I can't figure out how to get this Python source compiled.  :-\

My extensive Internet search also brought up "Tag", which is pretty cool to extract Id3v2 info, but it can't write id3v2.

wr975:
So, I answer my own thread...  :-[

I googled a bit more and found somewhere the most essential info how to get the eye3D Python script working, since it's not really meant to be run under Windows (rename filename from eyeD3.py to eyed3.py).

Tried two different python2exe compilers to get standalone Windows exe files, but all two two error out. So a Python script it is. It's slower than using metamp3.exe but it's not messing with unicode id3tags, so I'm happy. :D


Update: Instead of launching "python.exe eyeD3.py" for every file the Autohotkey script now generates one Python script using the eyeD3 library. So it's a lot faster, and I mean a lot. Also there's now a GUI for stand-alone use (no command line parameter passed).



Attached to this post are two simple Autohotkey scripts I'm using:
FolderArtDownloadHelper (a GUI for AlbumArtDownloader with command line support)
FolderArtWriter (a GUI to write album art files in MP3 files using Python eyeD3. It can manage huge amounts of folders.)

Alternatives:
Metamp3 (can't handle unicode characters in ID3 tags)
Mutagen (is not supporting special ID3 tags like TXXX file signature)


skwire:
Thanks for sharing your work, wr975.  I'll mark this thread as solved.

dcsev:
Hi skwire/wr975,

I was JUST about to ask for this app before browsing this forum.  What are the chances.  I am in dire need of this exact app.

basically, I want to be able to drag and drop 950 folders onto this app (each has folder.jpg inside of it) and have them embed the photo to all of my mp3s, unicode or not and leave tags.

It seems like this will do that, but I can't figure out 1) where to download the compiled exe.  I see the script there but I do not have AHK and would just like a standalone .exe like splaylistwriter and wastenot, etc.

Is this possible?

skwire:
basically, I want to be able to drag and drop 950 folders onto this app (each has folder.jpg inside of it) and have them embed the photo to all of my mp3s, unicode or not and leave tags.-stisev (September 07, 2011, 02:06 AM)
--- End quote ---

If you can't get wr975's solution to work, I would recommend using mp3Tag for this.  I have an "Import folder.jpg" action set up within the program that does this beautifully. 


* Choose: Actions > Actions from the menu.
* Click the New button, give your action a name and click OK.
* Click the New button again, and choose "Import cover from file" from the dropdown and click OK.
* Enter "folder.jpg" without the quotes into the field and, optionally, check the "Delete existing cover art" box.  Click OK a few times to get back to the main interface.
* Add all your music folders to the list, highlight them all, and choose your new Action from the list and sit back.

Navigation

[0] Message Index

[#] Next page

Go to full version