Skip to Content
Linux Multimedia Hacks
book

Linux Multimedia Hacks

by Kyle Rankin
November 2005
Beginner
330 pages
9h 44m
English
O'Reilly Media, Inc.
Content preview from Linux Multimedia Hacks

Edit ID3v2 Tags from the Command Line

Use the id3v2 tool to update your music tags either manually on the command line or through shell scripts.

If you ever need to hack the metadata in your MP3 files but wish to have more control over the metadata reading/writing process than you get with common GUI tools, the id3v2 tool can help you. Using this tool, you can dump, change, or remove the ID3 tags from any MP3 file, which makes it perfect for calling from tools like find to dump, change, or remove all the tags in your entire MP3 collection.

The id3v2 tool is a reasonably popular program and should be prepackaged by your Linux distribution of choice. Use your distributions software installation tool to install this program. If for some reason you don’t have this tool prepackaged, download the tarball from http://id3v2.sf.net, compile, and install it according to the included installation instructions.

To list the ID3v2 tag contents of an MP3 file, invoke id3v2 with the -l option:

	$ id2v3–l"Dr Greenthumb.mp3"
	id3v1 tag info for Dr Greenthumb.mp3:
	Title : Dr Greenthumb				Artist: Cypress Hill
	Album : IV					Year: , Genre: Unknown (255)

	Comment: Track: 13
	id3v2 tag info for ../Cypress Hill/IV/13 Dr Greenthumb.mp3:
	TIT2 (Title/songname/content description): Dr Greenthumb
	TALB (Album/Movie/Show title): IV
	TPE1 (Lead performer(s)/Soloist(s)): Cypress Hill
	TRCK (Track number/Position in set): 13

This Cypress Hill track contains both ID3v1 and ID3v2 tags. ID3v1 tags appear at the end of the file and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CentOS Bible

CentOS Bible

Christopher Negus, Timothy Boronczyk
Microsoft® SQL Server 2012 Unleashed

Microsoft® SQL Server 2012 Unleashed

Ray Rankins, Paul T. Bertucci, Chris Gallelli, Alex T. Silverstein

Publisher Resources

ISBN: 0596100760Errata Page