New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should throw an exception with thumb.time > video.length #31
Comments
Retrying the thumbnail from the beginning is not an expected behavior. |
Updating title. |
Whilst I can see why throwing a exception is the 'correct' behaviour - in real terms, what can you do a that point. You catch the exception, but you still don't have a means to create the thumbnail from a different point. The following commit checks the length of the video, if its too short, then it just grabs a frame from the middle of the video (this is better than the start since some videos will begin with a black screen). This should at least result in a usable thumbnail. |
@jebw not really. Because you might end up grabbing a black frame. |
please, review my comment in another issue, this is easy implemented solution #48 (comment) |
This project has been deprecated in favor of paperclip-av-transcoder. |
I'm using the following thumbnail style: :thumb => { :geometry => '128x120', :format => 'jpg', :time => 5}
The problem is that thumbnail generation silently fails for videos that are less than 5 seconds in length, producing a thumbnail that is zero bytes in length.
Should there be either a raised exception, or retry for thumbnail generation for example from the beginning of video?
The text was updated successfully, but these errors were encountered: