MP3

Strip an MP3 of all metadata:

avconv -i source.mp3 -write_xing 0 -id3v2_version 0 -map_metadata -1 -acodec copy no_metadata.mp3

See here for documentation of mapping tags using avconv.

Set metadata title:

avconv -i source.mp3 -id3v2_version 3 -metadata title="Highway to Danger" -acodec copy title.mp3

Set title, album, artist, track number:

avconv -i source.mp3 -id3v2_version 3 -metadata title="Highway to Danger" -metadata artist="Knight Rider" -metadata album="Read Along Books" -metadata track=1 -acodec copy metadata.mp3

Add cover art as well:

avconv -i source.mp3 -i cover_art.jpg -acodec copy cover_art.mp3

Note that avconv will convert the cover art to a PNG. If it already is one, you can can copy it directly:

avconv -i source.mp3 -i cover_art.png -acodec copy -vcodec copy cover_art.mp3

Navigation