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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Linux for Embedded and Real-time Applications, 4th Edition

Linux for Embedded and Real-time Applications, 4th Edition

Doug Abbott
CentOS Bible

CentOS Bible

Christopher Negus, Timothy Boronczyk

Publisher Resources

ISBN: 0596100760Errata Page