我无法在heroku上使用delayed_job在后台上传视频?

时间:2015-11-23 06:29:53

标签: ruby-on-rails heroku ffmpeg delayed-job

我使用带有ffmpeg的延迟作业的回形针后台处理。

在paperclip processors文件夹中,我也有ffmpeg.rb文件。

我的模特

class product < ActiveRecord::Base
    has_attached_file :video, :styles => {
    :mp4video => { :geometry => "640x480", :format => 'mp4', :convert_options => {:output => {:ar => 44100}} },
    :webmvideo =>{ :geometry => "1024x576", :format => 'webm', :convert_options => {:output => {:ar => 44100}} },
    :oggvideo => { :geometry => "1024x576", :format => 'ogg', :convert_options => {:output => {:ar => 44100}} },
    :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
  },
  :storage => :s3,
  :s3_credentials => "#{Rails.root}/config/aws.yml",
  :processors => [:transcoder]

  process_in_background :video

end

0 个答案:

没有答案