Thanks for filling out our form!
Here's what happens next:

We'll write you back as soon as possible, right now we might be very busy saving the World. Give us a day or two, we'll contact you for sure.


In the meantime, perhaps you would like to take a look at one of our blog posts that explains

How do we work with our Clients
How we can help you with your business

In Touch,
Prograils Team

Prograils blog

Maciej Litwiniuk on 01.02.12 in Ruby on Rails
Post video encoding processor for carrierwave

Video encoding processor for CarrierWave

Recently I was wondering if it’s really easy to create own processor / converter for CarrierWave.

Check out updated version of this post

Recently I was wondering if it’s really easy to create own processor / converter for CarrierWave. Well, the answer is YES. We’ve needed video converting utility in our app that would output given video file in mp4 / webm format (suitable for both flash and HTML5 video players). Recently I also found new gem called voyeur – a nice ffmpeg wrapper (needs to be added in your Gemfile).

Custom processor will then look like this (put this in lib/carrierwave_processing/ dir):

Usign this in uploader is very easy, but remember to define a custom filename for version – encoded file will have different extension

I also have a custom initializer, that automagically loads all processors:

And that’s it – from this moment on your app will be able to convert uploaded video files to “displayable” format. I hope that above solution will save you some time.

(credits: photo from unsplash.com)

Share on
comments powered by Disqus