Skip to content

chvanam/kpbs-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

KBPS Analyzer

Overiew

MP3 --> Spectral Analysis --> Cutoff Frequency --> Approximated Real Bitrate.

Reference Aritcle

Usage

With uv (Recommended)

Install uv Python manager by running:

# Linux / MacOS
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then run:

uv run --python 3.9 kbps-analyzer.py "path/to/folder/or/file"

With Python 3.9

pip install mutagen numpy librosa matplotlib tqdm rich
python kbps-analyzer.py "path/to/folder/or/file" --write

Notes

  • Passing --write will write the analysed birtate to the file's comment tag in the following format:

    Comment tag: My existing comment -> ~128kbps My existing comment

  • This method is not 100% accurate, and non-standard encoded comment tags might be overwritten/changed.

About

Python script to guess the true kbps bitrate from MP3 and other audio files.

Topics

Resources

Stars

Watchers

Forks

Languages