ruby-av / paperclip-av-transcoder

Audio/Video Transcoder for Paperclip using FFMPEG/Avconv
MIT License
135 stars 83 forks source link

Thumbnail Generation Issue #3

Closed chienhungchen closed 9 years ago

chienhungchen commented 9 years ago

Hey @owahab thanks for creating this gem.

I'm running into issues generating the thumbnail according to your example. I was wondering if you could give a little bit more details in the README on how to get it to work properly, including setups and such?

I thought I had to make sure my ffmpeg install had --with-openjpeg flagged, so I reinstalled it with that.

I also debugged through the commands and ffmpeg asked for me to add %03d to the jpg name. So my code is now

has_attached_file :video_content, :styles => {
        :medium => { :geometry => "640x480", :format => 'mp4' },
        :thumb => { :geometry => "320x240", :format => '%03d.jpg', :time => 10 }
    },
    :processors => [:transcoder],
    :s3_protocol => :https

Which now it it generates an empty jpg.

Any thoughts on how I'm supposed to be installing, setting up the configs, etc to make it generate a thumbnail correctly?

malachaifrazier commented 9 years ago

Ever figure this one out? I'm seeing the same thing

edk commented 9 years ago

Hi, I've made a couple of pull requests:

owahab commented 9 years ago

@edk both pull requests break test cases for the two gems. Please check Travis build status.