A command-line ID3 tag editor -- next generation.
Install id3v2-ng
as a snap:
sudo snap install id3v2-ng
The snap installs in strict-mode by default, which prevents id3v2-ng from accessing files in your home folders. To work-around this, install in devmode:
sudo snap install id3v2-ng --devmode
- Set mimetype and picture type for APIC frames.
- Replace existing APIC frame when configuring.
- Add id3lib in-tree, fix header includes to build in Ubuntu 20.04.
- Compile id3lib and zlib statically.
# assuming mp3 files are in folder "album/" and named "(track)-(title).mp3" format, e.g. "01-my song.mp3", "02-my other song.mp3"
id3v2-ng --clear --album 'This Album' --artist 'This Artist' --year 2020 --genre 'Progressive Rock' --title-regex '.*-(?P<title>.*)\.mp3' --track-regex '(?P<track>\d\d).*' --cover cover.jpg album/
id3v2-ng.extract-cover file.mp3 --output cover.jpg
id3v2-ng.id3v2 --help