GithubHelp home page GithubHelp logo

gittmaan / ruby-mp3info Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moumar/ruby-mp3info

2.0 1.0 0.0 414 KB

ruby-mp3info read low-level informations and manipulate tags on mp3 files.

Home Page: http://ruby-mp3info.rubyforge.org

ruby-mp3info's Introduction

= ruby-mp3info

* http://github.com/moumar/ruby-mp3info

== DESCRIPTION:

ruby-mp3info read low-level informations and manipulate tags on
mp3 files.

== FEATURES/PROBLEMS:

* written in pure ruby 
* read low-level informations like bitrate, length, samplerate, etc...
* read, write, remove id3v1 and id3v2 tags
* correctly read VBR files (with or without Xing header)
* only 2.3 version is supported for writings id3v2 tags

== SYNOPSIS:

  require "mp3info"
  # read and display infos & tags
  Mp3Info.open("myfile.mp3") do |mp3info|
    puts mp3info
  end

  # read/write tag1 and tag2 with Mp3Info#tag attribute
  # when reading tag2 have priority over tag1
  # when writing, each tag is written.
  Mp3Info.open("myfile.mp3") do |mp3|
    puts mp3.tag.title   
    puts mp3.tag.artist   
    puts mp3.tag.album
    puts mp3.tag.tracknum
    mp3.tag.title = "track title"
    mp3.tag.artist = "artist name"
  end

  Mp3Info.open("myfile.mp3") do |mp3|
    # you can access four letter v2 tags like this
    puts mp3.tag2.TIT2
    mp3.tag2.TIT2 = "new TIT2"
    # or like that
    mp3.tag2["TIT2"]
    # at this time, only COMM tag is processed after reading and before writing
    # according to ID3v2#options hash
    mp3.tag2.options[:lang] = "FRE"
    mp3.tag2.COMM = "my comment in french, correctly handled when reading and writing"
  end

  # tags v2 will be read and written according to the :encoding settings
  mp3 = Mp3Info.open("myfile.mp3", :encoding => 'utf-8')

== REQUIREMENTS:

* iconv

== INSTALL:

$ ruby install.rb config
$ ruby install.rb setup
# ruby install.rb install

 or

* gem install ruby-mp3info

== DEVELOPERS:

After checking out the source, run:

  $ rake newb

This task will install any missing dependencies, run the tests/specs,
and generate the RDoc.

== LICENSE:

ruby

== TODO:

* encoder detection
* support for more tags in id3v2
* generalize id3v2 with other audio formats (APE, MPC, OGG, etc...)

ruby-mp3info's People

Contributors

empika avatar jojje avatar jdlich avatar

Stargazers

gittmaan avatar

Watchers

gittmaan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.