Paperclip Chainer
Audio/Video Chainer for Paperclip using FFMPEG/Avconv.
Status
Installation
Add this line to your application's Gemfile:
gem 'paperclip-av-chainer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install paperclip-av-chainer
Usage
# app/models/user.rb
class Post < ActiveRecord::Base
has_attached_file :audio, :styles => {
:medium => { :geometry => "640x480", :format => 'ogg' },
}, :processors => [:chainer]
end
Now when you attach archives (see supported formats) containing audio files, they will all be concatenated in one file.
Supported Formats
Currently supported input archives:
* ZIP
Concatenting audio files tested:
* OGG
* SPX
Contributing
- Fork it ( https://github.com/ruby-av/paperclip-av-chainer/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request