Ruby mp3 Id3 parsing

后端 未结 5 549
你的背包
你的背包 2021-02-02 02:43

Currently I\'m working on a music project, dealing with user mp3 uploads. The problem is that I can\'t find an id3 library that will work correctly for all files. I have tried

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 03:10

    As of 2019, the best answers are:

    • Krists Ozols' ID3Tag
    • Moumar's ruby-mp3info
    • taglib-ruby

    All other libraries are long-since unmaintained.

    Krists Ozols' ID3Tag distinguishing characteristics

    • read only
    • Can read v1.x, v2.2.x, v2.3.x, v2.4.x tags
    • Supports UTF-8, UTF-16, UTF-16BE and ISO8859-1 encoding
    • last updated July 2018
    • Pure Ruby

    Moumar's ruby-mp3info distinguishing characteristics

    • read and write
    • Only 2.3 version is supported for writings id3v2 tags
    • id3v2 tags are always written in UTF-16 encoding
    • last updated April 2017
    • Pure Ruby

    taglib-ruby distinguishing characteristics

    • read and write
    • Many formats, not just Mp3
    • Reading/writing ID3v1 and ID3v2 including ID3v2.4 and Unicode
    • last updated May 2018
    • Binding of a well-maintained C++ library

提交回复
热议问题