zabumba
zabumba

Reputation: 12402

sh: ffmpeg: not found on Heroku

I am using paperclip gem and piperclip-ffmpeg on a Rails 3.1 setup.

After deploying to Heroku, I am getting this error after uploading a video.

sh: ffmpeg: not found on Heroku

My Model

class Video < ActiveRecord::Base

  has_attached_file :asset, :styles => { 
    :medium => { :geometry => "640x480", :format => 'video/mpeg' },
    :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
  }, :processors => [:ffmpeg]
end

I'd be surprised if ffmpeg not available on Heroku, but that's may be the problem.

Any suggestions?

Upvotes: 0

Views: 910

Answers (2)

James Brown
James Brown

Reputation: 846

Deploying and running Thumbd on Heroku is simple, however, currently in its stock form, video thumbnailing fails due to an internal ImageMagick error.

Follow the detailed instructions here: https://github.com/mubeenh/thumbd/commit/1d2b63a7507263db73d7971176c49e0ea4052e9d

Upvotes: 0

Michael Mior
Michael Mior

Reputation: 28753

ffmpeg is not installed on Heroku dynos by default. See this project for a potential solution.

Upvotes: 2

Related Questions