Skip to content

mvasilkov/python-compare-mp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-compare-mp3

Compare mp3 files using Python.

Installation

pip install -U compare-mp3

Command-line usage

compare-mp3 a.mp3 b.mp3

Programmatic usage

from compare_mp3 import compare

if compare('a.mp3', 'b.mp3'):
    print('Files contain the same audio')

Return values

  • compare_mp3.Result.SAME_FILE Literally the same file
  • compare_mp3.Result.SAME_BITSTREAM Files have the same bitstream (but may have different metadata)
  • compare_mp3.Result.SAME_WAV Files contain the same audio (as decoded by LAME)
  • compare_mp3.Result.DIFFERENT Completely different files

Releases

No releases published

Packages

No packages published

Languages