Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am searching a command-line tagging tool that supports ogg- and mp3-tagging and allows to add a picture to the tags.

Currently I use lltag but that does not support pictures. dagger is the tool I use before but it is lacking picture support as well.

share|improve this question
    
Do you really want a picture inside the mp3/ogg file? Is that even supported by the file format (the id3 tag)? –  Johan Dec 7 '10 at 7:41
1  
Yes it is supported. See your podcast of choice, a graphical tool to do that would be EasyTAG - easytag.sourceforge.net –  ddeimeke Dec 7 '10 at 10:32
    
<3 easytag! but unfortunately I know of no other tool that can do it... –  xenoterracide Dec 7 '10 at 12:54
1  
For mp3, the mutagen python library supports APIC (example: mydigitallife.co.za/…). I don't know of a command line tool that does; if you know python you could write a simple wrapper. –  Gilles Dec 7 '10 at 19:45
add comment

1 Answer

For MP3, try eyeD3, found in this SO answer.

  --add-image=IMG_PATH:TYPE[:DESCRIPTION]
                      Add an image to the tag.  The description and type
                      optional, but when used, both ':' delimiters must be
                      present.  The type MUST be an string that corresponds
                      to one given with --list-image-types. If the IMG_PATH
                      value is empty the APIC frame with TYPE is removed.

For Ogg, there's vorbiscomment. It doesn't support loading image files out of the box, but a cover art tag in Vorbis is just an image file encoded in base64, stored in the COVERART tag and its mimetype in COVERARTMIME - something like

coverart=$(base64 $jpegfile)
vorbiscomment -a -t 'COVERART=$coverart' -t 'COVERARTMIME=image/jpeg' $infile $outfile
share|improve this answer
    
I will give it a try. Thanks a lot. But it seems to lack support for ogg-files. –  ddeimeke Dec 10 '10 at 12:49
    
You're right. I've updated the answer, but the ogg solution isn't as clean. –  André Paramés Dec 10 '10 at 23:14
    
Maybe, I have to write something for myself. Thanks for your support. –  ddeimeke Dec 13 '10 at 5:50
    
Please optimize the images before inserting them into tags, especially if you're inserting them into every file. I even wrote a script to help with this process. Just trying to help. :-) –  amphetamachine Nov 24 '11 at 8:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.