Skip to content

ArjunVasavan/mp3-tag-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MP3 Tag Reader

A command-line tool to view and edit ID3v2.3 tags in MP3 files.

Description

This tool reads and modifies MP3 metadata tags using direct binary file manipulation. It supports viewing all tags and editing title, artist, album, year, genre, and comments.

Features

  • View MP3 metadata (title, artist, album, year, genre, comments)
  • Edit existing ID3v2.3 tags
  • Direct binary file editing
  • Automatic padding preservation

Installation

Clone the repository:

git clone https://github.com/ArjunVasavan/mp3-tag-reader.git
cd mp3-tag-reader

Compilation

gcc *.c -o mp3tag

Usage

View Tags

./mp3tag -v song.mp3

Edit Tags

# Edit title
./mp3tag -e -t "New Title" song.mp3

# Edit artist
./mp3tag -e -a "Artist Name" song.mp3

# Edit album
./mp3tag -e -A "Album Name" song.mp3

# Edit year
./mp3tag -e -y "2025" song.mp3

# Edit genre
./mp3tag -e -m "Rock" song.mp3

# Edit comment
./mp3tag -e -c "My comment" song.mp3

Help

./mp3tag --help

How It Works

The program parses the ID3v2.3 header to locate tag frames, reads or modifies frame data directly in binary format, and handles synchsafe integer encoding for frame sizes. Text is padded with zeros when shorter than the original frame size.

Author

Arjun Vasavan

License

This project is licensed under the MIT License.

© 2025 Arjun Vasavan

About

This tool reads and modifies MP3 metadata tags using direct binary file manipulation. It supports viewing all tags and editing title, artist, album, year, genre, and comments.

Resources

License

Stars

Watchers

Forks

Contributors

Languages