Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My process to get these two gems to work together was a little different and maybe it will help others in the same situation.</p> <p>Step 1.) Follow the directions on both carrierwave and voyeur github.</p> <ul> <li><p><a href="https://github.com/jnicklas/carrierwave" rel="nofollow">https://github.com/jnicklas/carrierwave</a></p></li> <li><p><a href="https://github.com/devthenet/voyeur" rel="nofollow">https://github.com/devthenet/voyeur</a><br></p></li> </ul> <p>Step 2.)install ffmpeg and its dependencies. I was doing this on ubuntu and was getting the error no such file or directory until I followed <a href="https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide" rel="nofollow">this</a> install </p> <p>Step 3.) this <a href="http://trackingrails.com/posts/video-encoding-processor-for-carrierwave" rel="nofollow" title="tracking rails - video encoding process for carrierwave">website</a> is older and has a few things that need to be changed.</p> <ul> <li>put the video_converter.rb file in the directory carrierwave-0.8.0/lib/carrierwave/processing</li> <li><p>change line 22 in this file from </p> <pre><code>Voyeur::Video.new( filename: tmp_path ).convert( to: format.to_sym, output_filename: current_path ) </code></pre> <p>to</p> <pre><code>Voyeur::Media.new( filename: tmp_path ).convert( to: format.to_sym, output_filename: current_path ) </code></pre> <p>add the following line to carrierwave-0.8.0/lib/carrierwave/processing.rb</p> <pre><code>require "carrierwave/processing/video_converter" </code></pre></li> <li><p>in the uploader directory that you created for carrierwave edit your app/uploaders/avatar_uploader.rb file to match video_uploader.rb</p></li> </ul> <p>Hope this helps</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload