LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-03-2010, 04:01 PM   #1
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
Cover art embed script


Hi,

Just wanted share something I cobbled together from out on the web. It's a basic script to convert id3 tags to 2.4 and then embed cover art into them. The cover art must be labeled as "folder.jpg". I used Coverchooser to get the artwork. You will also need eyed3 to convert and embed the art work. I have had no issues with viewing the art work.

The "oh I forgot" part: Here is where I got the info on this: ubuntuforums; here; and another blog i cant seem to locate again.

You can fiddle around with this and make it do ALOT more. Like I said, its basic....as in dont flame me cause its so damn basic. 8))


P.S. : If you find this works and is helpful or have any other ideas let me know. Always looking for tips.

Last edited by mrmnemo; 08-03-2010 at 10:06 PM.
 
Old 08-03-2010, 07:35 PM   #2
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,334

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Have you ever had that feeling that you were forgetting something?
 
Old 08-03-2010, 10:00 PM   #3
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
erm...all the time. 8))
 
Old 08-04-2010, 11:06 AM   #4
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,334

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Yes, ok, those are some useful resources. But, um...where's the actual script? Or am I just missing something here?
 
Old 08-04-2010, 07:10 PM   #5
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
Oh!!!! Dang it. Sorry. As I said, its really nothing more than a bash shell thing. calling it a script is ...well...out there.

Here it is:
Code:
#!/bin/bash

###Run from parent directory. will pull all xisting tags and convert to IDv2.4. ANY art work named "folder.jpg" will ve added to .flac / .mp3 files.
###woop woop

###CONVERT TO IDv 2.4
find . -name "*mp3" -exec eyeD3 --to-v2.4 {} \;
find . -name "*.flac" -exec eyeD3 --to-v2.4 {} \;  

###PULL OUT OLD ART WORK
find -type f -name "*.flac" -execdir eyeD3 --remove-image {} \;
find -type f -name "*.mp3" -execdir eyeD3 --remove-image {} \;

###EMBED COVER ART
find -type f -name "*.flac" -execdir eyeD3 --add-image=folder.jpg:FRONT_COVER {} \;
find -type f -name "*.mp3" -execdir eyeD3 --add-image=folder.jpg:FRONT_COVER {} \;
You will need to install eyed3 and Coverchooser. You can add other options to remove certain field in the tags or just make a list of "good" tags and remove everything else ( I think doing that could strip the unique file ID used for ID on some music sites). Anyhow, give me some pointers if you get a chance to play with it.

See ya!
 
  


Reply

Tags
flac


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An open source program able to successfully load album cover art onto an iPod offling Linux - Software 2 11-15-2009 08:24 PM
creative zen vision w - no album cover art schneidz Linux - Hardware 2 12-01-2008 11:10 PM
Amarok doesnt show any cover art atall snama Linux - Software 3 07-25-2007 08:57 AM
Rhythmbox cover art not displaying clergykid Linux - Software 0 09-14-2006 12:07 AM
LXer: Create your own book cover art with open source software LXer Syndicated Linux News 0 09-07-2006 05:03 PM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration