Questions tagged [taglib-ruby]

Ruby interface for the TagLib C++ library, helpful for reading and writing meta-data (tags) of many audio formats.

taglib-ruby

Website: http://robinst.github.com/taglib-ruby/

Ruby interface for the TagLib C++ library.

In contrast to other libraries, this one wraps the full C++ API, not only the minimal C API. This means that all tag data can be accessed, e.g. cover art of ID3v2 or custom fields of Ogg Vorbis comments.

taglib-ruby is work in progress, but the following is already available:

  • Reading/writing common tag data of all formats that TagLib supports
  • Reading/writing ID3v1 and ID3v2 including ID3v2.4 and Unicode
  • Reading/writing Ogg Vorbis comments
  • Reading audio properties (e.g. bitrate) of the above formats
23 questions
0
votes
1 answer

Installing taglib-ruby gem on Windows

I have been trying to install taglib-ruby for Ruby on Windows, but I cannot figure out how to tell the gem installer where to look for my copy of taglib. The installer looks in /usr/local/ and other places like that, but this being a Windows…
soulish
  • 51
  • 7
0
votes
1 answer

Rails tag_id3v1 mp3

Rails 4.2 ap and taglib-ruby gem I have tried a few approaches to tag my audio files using taglib-ruby. I have tried as a carrierwave process, and now, I am trying to tag after_save. My question, if I am doing a callback after_save: def…
nil
  • 2,238
  • 1
  • 19
  • 28
0
votes
2 answers

Can't get Ruby foreach or glob to work with ARGV... or at all

I'm using taglib-ruby to see how many times you can listen to a song per day. I got it to work for single songs, but now I'm trying to do fix it so it can loop through a directory and spit out how long each song is and how many times per day you…
ABvsPred
  • 67
  • 7
0
votes
0 answers

narray not found by coreaudio, gem error Mac OSX

I have installed coreAudio on my mac and I want to launch the outloop_sine.rb example: ruby outloop_sine.rb Then that return: /usr/local/Cellar/ruby/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require':…
Kerollmops
  • 303
  • 4
  • 15
0
votes
1 answer

taglib(-ruby) can't read specific files

I'm implementing a ruby on rails app that downloads songs from a dropbox folder and then performs a couple of actions on them such as extracting a few metatags. Right now, I'm using 10 mp3s that belong to the same album, so they have the same…
kah
  • 170
  • 1
  • 12
0
votes
1 answer

Missing libstdc++ when installing taglib-ruby gem on Ubuntu 12.04?

I'm trying to install taglib-ruby but keep getting the same errors: xyz@ubuntu:~$ sudo gem install taglib-ruby Building native extensions. This could take a while... ERROR: Error installing taglib-ruby: ERROR: Failed to build gem native…
kah
  • 170
  • 1
  • 12
0
votes
2 answers

uninitialized constant ActivityObjects::BuildController::TagLib

I have tried to used taglib in rails. I put this code ( see below ) in the controller but got this error "uninitialized constant ActivityObjects::BuildController::TagLib" TagLib::FileRef.open(@activity_object.content_tone_url()) do |fileref| …
Chris Ian
  • 771
  • 1
  • 7
  • 19
0
votes
2 answers

Save MP3 ID3V2 APIC to jpeg file

I'm attempting to read and save an APIC picture to file using taglib-ruby but I'm struggling to understand how to go about it. From what I can tell the image is 'image/jpeg' and ASCII-8BIT. Anyone tried to accomplish this?
adamyonk
  • 2,976
  • 4
  • 22
  • 23
1
2