Macos – Command-line ID3 tag editor that handles all tags

command lineid3macosmp3script

I am looking for a tool to edit tags in MP3s through a script.

The files are episodes of several podcasts where the tags are inconsistent between episode: Sometimes the Album or Genre tag is missing for example. The script will run after new episodes are downloaded to modify the tags.

I have tried id3tool and id3v2 already.

id3v2 does not support free Genre tags, only a numbered list of predefined genres is offered. In this list, there is no genre "Podcast".

id3tool only supports id3v1, where the field lengths are limited. But there is an option to specify free Genre definitions.

Is there a tool that supports all the required functionality?
It should compile under Mac OS X 10.6.

Best Answer

Just use Homebrew:

brew install id3lib

Example command: ide3tag

Usage: id3tag [OPTIONS]... [FILES]...
   -h         --help            Print help and exit
   -V         --version         Print version and exit
   -1         --v1tag           Render only the id3v1 tag (default=off)
   -2         --v2tag           Render only the id3v2 tag (default=off)
   -aSTRING   --artist=STRING   Set the artist information
   -ASTRING   --album=STRING    Set the album title information
   -sSTRING   --song=STRING     Set the title information
   -cSTRING   --comment=STRING  Set the comment information
   -CSTRING   --desc=STRING     Set the comment description
   -ySTRING   --year=STRING     Set the year
   -tSTRING   --track=STRING    Set the track number
   -TSTRING   --total=STRING    Set the total number of tracks
   -gSHORT    --genre=SHORT     Set the genre
   -w         --warning         Turn on warnings (for debugging) (default=off)
   -n         --notice          Turn on notices (for debugging) (default=off)

Source: https://apple.stackexchange.com/a/16145/53242

Regards,

Related Question