I’m using Paperclip for processing a user uploaded video with ffmpeg. I want to create a thumbnail image as well as convert the video to a standard format of my choosing. I have the ffmpeg processing working, however, I can’t seem to figure out how to update the record after it has finished processing. I’ve used a number of rails – paperclip – ffmpeg references but haven’t seen anyone converting the video and then using the converted video in the rails db, since it’s creating a new video I will need to be able to update the record from within the paperclip processor, but how to do it??
Thanks
- using Rails 3
- using paperclip processor with ffmpeg
Per the documentation for Paperclip::Processor:
So your Processor would look something like this: