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
5
votes
0 answers

Heroku is ignoring bundle configuration

I'm trying to install the gem 'taglib-ruby' on Heroku. This gem compiles as a native extension which requires a system dependency called taglib, so after compiling and uploading it through heroku vulcan, I achieved to compile the gem via command…
Socrattes
  • 51
  • 2
3
votes
1 answer

Constructing Custom Heroku Ruby/Rails Buildpack for Web App Using Taglib-Ruby

I've built an application using Rails 3.2 that makes use of the taglib-ruby gem. I need to upload this app to Heroku, but it cannot successfully build the taglib-ruby gem because the associated C++ taglib library needs to be installed on the…
2
votes
1 answer

Deploying to Heroku with Taglib-Ruby Gem (Rails 5)

I have recently added the 'taglib-ruby' gem to my rails project, and am trying to push the project to Heroku. However, even when I bundle install, the push is continuously rejected with the following error: You must have taglib installed in order to…
RuboTrip
  • 97
  • 1
  • 3
1
vote
1 answer

taglib-ruby and resource balancing (freeing file handles)?

Friends, I am trying to processing a huge amount of audio files using a Ruby (1.9.3) script by scanning their ID3-Tags using the pretty fast taglib-ruby (0.2.1 via Gem-Server) library. Here is a part of my code, while audio contains the full file…
1
vote
1 answer

Convert supposed seconds to duration?

I'm new to Ruby so I'm probably going about this completely wrong, but using taglib-ruby I keep getting a wrong result unless it's a wrong amount of seconds maybe nanoseconds? I tried with bash and mediainfo a different movie but worked ok…
espr3ss0
  • 33
  • 1
  • 3
1
vote
0 answers

Ruby Segmentation fault with FastImage and Taglib

I'm using FastImage and TagLib to manipulate mp3 files and, in this example, to extract a possible image from the tags. It was working like a charm, but for one file it is happening a bug that I don't know how to…
augustoccesar
  • 658
  • 9
  • 30
1
vote
0 answers

How to set up taglib-ruby with paperclip

I have a track model that is successfully uploading mp3 files to s3 via paperclip and that also successfully gets it metadata extracted via mp3-info. The only issue is, I want to extract cover art for the mp3 files uploaded as well and mp3-info does…
RickD
  • 79
  • 13
1
vote
2 answers

Load Error when requiring taglib-ruby

I'm trying to use the Ruby wrapper gem for Taglib to play around with ID3 Tags in a practice program. I'm getting Load Errors regarding the requiring of the taglib ruby gem. I've installed the gem into my project via RubyGems and am simply requiring…
Shaneydev
  • 11
  • 1
1
vote
1 answer

How to install taglib-ruby on production

I want to install taglib-ruby on my production system. I tried the following steps: git clone git@github.com:taglib/taglib.git cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release make sudo make install When I run the make step, I…
Mano
  • 979
  • 1
  • 18
  • 36
1
vote
0 answers

Audio files always null using Taglib

I'm trying to build an app in Rails which will take audio file uploads and read metadata off them to populate a database. I'm using the Taglib-ruby gem to handle various file types. The uploads seem to be working on their own, but Taglib considers…
Anrothan
  • 500
  • 5
  • 13
1
vote
1 answer

How to remove IDV Tags from AIFF file with taglib-ruby?

I've been working my way through taglib's documentation but couldn't find a way to strip all Tags from an AIFF file. The MPEG class doesn't work and I can't find one for AIFF. Any thoughts are welcome.
Rip-Off
  • 358
  • 1
  • 4
  • 14
1
vote
0 answers

Error parsing parsing audio file for id3 tag information with taglib-ruby

I'm trying to get ID3 file information from an audio file using taglib-ruby gem like so ... # Load a file TagLib::MPEG::File.open path_to_audio_file do |fileref| unless fileref.null? data = {} data['tag'] = fileref.tag …
King'ori Maina
  • 4,440
  • 3
  • 26
  • 38
1
vote
1 answer

Build cmake on Heroku with Vulcan as a dependency for Taglib

I'm trying to get Taglib working on Heroku, so i can use the taglib-ruby gem. I've been fighting with Vulcan and a Custom Heroku Buildpack to get it working. One of Taglib's dependencies is cmake so i've been trying to get this working first. There…
Pete
  • 1,472
  • 2
  • 15
  • 32
1
vote
2 answers

RoR TagLib-Ruby: How to set ID3 tags in DB

Thanks for any help in advance. I would like to set id3 tag data in my database as attributes for my model MasterSong. Specifically, title, artist, and album. create_table :master_songs do |t| t.integer :user_id t.has_attached_file :m_song **-…
Jches
  • 417
  • 1
  • 4
  • 23
0
votes
1 answer

taglib-ruby how to add and edit tags via active storage?

I am trying to build an application where I can upload mp3s and pull the current meta data info and change it and write to it if need be. Taking it one step at a time how do I simply read the meta data in when a song is created? The song model…
spacerobot
  • 265
  • 1
  • 5
  • 23
1
2