Skip to content

Instantly share code, notes, and snippets.

@todgru
Last active December 11, 2015 09:58
Show Gist options
  • Save todgru/4582996 to your computer and use it in GitHub Desktop.
Save todgru/4582996 to your computer and use it in GitHub Desktop.
id3 mp3 taga bash cli command line

#Setting mp3 tags, ID3 from command line

install using brew, brew install id3lib

set tag:

$ id3tag --artist="The Best Band Ever" --album="Greatest Hits" --song="Number One Forever" --year="1975" --track="1" --total="12" --genre="Jazz"

help

$ id3tag -h
id3tag 
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)

see http://id3lib.sourceforge.net/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment