Skip to main content

audio-metatag

Clean metadata and tag audio files (MP3, FLAC, Ogg Vorbis)


Supported Python Versions


About:

audio_metatag is a Python CLI program for cleaning metadata and adding ARTIST/TITLE tags to MP3, FLAC, and Ogg Vorbis audio files. It can be used on individual files or a library of files.

  • In order to tag a file, it must be named in a specific format:
    • Artist - Title.mp3, Artist - Title.flac, Artist - Title.ogg
    • File names must contain a delimiter (-) between Artist and Title, and end with a valid extension: .mp3, .flac, .ogg (case-insensitive)
  • It will skip any files that are not named according to the format specified above

Warning: Edits are done in-place. Backup your files first if you want a copy of the originals.

  • Existing metadata is deleted
  • ARTIST and TITLE tag data is taken from the filename
  • New metadata is saved to the file

Requirements:

  • Python 3.12+

Installation:

Install from PyPI:

pip install audio-metatag

CLI Options:

  • If filenames are given as command-line options, it will only process those files
  • If no filename is specified, it will process all files (recursively) in the current directory
  • A different directory can be specified using the --dir option
usage: audio_metatag [-h] [-d DIR] [-c] [-s] [filename ...]

positional arguments:
  filename       [optional] file to process (multiple allowed)

options:
  -h, --help     show this help message and exit
  -d, --dir DIR  start directory
  -c, --clean    only clean metadata (don't write new tags)
  -s, --show     only show metadata (don't remove or write tags)

Usage Examples:

Install from PyPI with pipx:

pipx install audio-metatag

Clean metadata and tag a single file:

audio_metatag "Some Artist - Some Title.mp3"

Clean metadata and tag all files in current directory (recurse subdirectories):

audio_metatag

Clean metadata from all files in a directory (recurse subdirectories):

audio_metatag --clean --dir=/path/to/files

Metadata Details:

Metadata that is clean/removed:

  • FLAC

    • VORBIS_COMMENT
    • PICTURE
    • SEEKTABLE
    • CUESHEET
    • APPLICATION
    • PADDING
    • ID3 (extraneous)
  • MP3

    • ID3v1
    • ID3v2
    • APEv2
  • Ogg Vorbis

    • Vorbis Comments

Metadata where new tags are written:

  • FLAC

    • VORBIS_COMMENT
  • MP3

    • ID3v2.4
  • Ogg Vorbis

    • Vorbis Comments

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audio_metatag-0.1.11.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audio_metatag-0.1.11-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file audio_metatag-0.1.11.tar.gz.

File metadata

  • Download URL: audio_metatag-0.1.11.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for audio_metatag-0.1.11.tar.gz
Algorithm Hash digest
SHA256 ce0926ffa1953a7a44a69056c80c1826a74d204a74feb262959e3fb9d8ed4672
MD5 eb23875bd799220cb5b88f86896dc002
BLAKE2b-256 7d587021e1ab652f89db828f32a7099c583eb8c535f37365b1c002eecac6ad7c

See more details on using hashes here.

File details

Details for the file audio_metatag-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: audio_metatag-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for audio_metatag-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 98db551428375aba89e1c8380bab809686306f57069870b3e3c3e1723f660ea4
MD5 221a6bc8462eba2276ef89d6c7f8a177
BLAKE2b-256 dc59bacdf7f1990d0e5c4bd9239c19a48ae7a67d0f401bc96db8f18e75bbfb67

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page