【问题标题】:How can I determine the bitrate type of mp3 files with Python?如何使用 Python 确定 mp3 文件的比特率类型?
【发布时间】:2011-03-16 21:39:25
【问题描述】:

如何确定用于 mp3 文件的比特率类型,例如CBR、VBR 还是 ABR?

【问题讨论】:

    标签: python mp3 bitrate


    【解决方案1】:

    mutagen 为我工作。这是我的一个脚本的摘录。

    from mutagen.mp3 import MP3
    
    f = MP3(musicfile)
    bitrate = f.info.bitrate / 1000
    

    【讨论】:

    • 您可以使用f = mutagen.File(musicfile) 不绑定到 MP3。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-14
    • 1970-01-01
    • 1970-01-01
    • 2016-10-12
    • 2017-08-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多