Audio/Video Chainer for Paperclip using FFMPEG/Avconv.
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
# 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.
Currently supported input archives:
* ZIP
Concatenting audio files tested:
* OGG
* SPX
- 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