Skip to content

A Java command line application to covert charset of id3 tags to UTF-8

License

Notifications You must be signed in to change notification settings

thcathy/id3-charset-converter

Repository files navigation

id3-charset-converter CircleCI

A Java command line application to covert charset of id3 tags to UTF-8. Support auto charset detection and batch convertion.

About

Some of the media players, for example iTunes, support character set UTF-8 only. Create this simple tool to convert the tags' character set to UTF-8.

ID3 is a metadata container most often used in conjunction with the MP3 audio file format. It allows information such as the title, artist, album, track number, and other information about the file to be stored in the file itself.

From Wikipedia.

Download

prerequisites: Java 8 or newer installed

  1. Download the zip or tar from github
  2. Extract to any folder

Usage

For Windows:

Execute

bin\id-charset-converter.bat [-c <CHARSET>] [-h] [-t] source [target]

For Mac / Unix-like / Linux-Like:

Execute

bin/id3-charset-converter [-c <CHARSET>] [-h] [-t] source [target]

  • source (required): path of source file or folder
  • target (optional): path of output file or folder
  • -c or --charset: source CHARSET, auto-detected by title if not specify (! Detection is not 100% correct, suggest run --test before saving file)
  • -d or --within-days: convert file's last modified within INPUT days
  • -t or --test: test run without saving file(s)
  • -h or --help: print help message

Examples

Convert single file from ISO-8859-1 to UTF-8 and save to new mp3

id3-charset-converter -c ISO-8859-1 ~/Downloads/input.mp3 /tmp/output.mp3

Convert all files under folder music in BIG5 modified within last 10 days and save converted file under the same folder

id3-charset-converter -d 10 -c BIG5 music

Test converting of file by auto charset detection (do not save to new file)

id3-charset-converter -t music/input.mp3

Note

This is a personal project by Timmy Wong. The project is adopted TDD with code coverage almost 100%.

Feel free to contact [email protected] if you want any new feature or bug fixing.

Dependency

https://github.com/mpatric/mp3agic mp3agic: reading and writing id3 tags

http://site.icu-project.org/ ICU4J: auto character set detection