Skip to content

Instantly share code, notes, and snippets.

View Qasem-h's full-sized avatar
🏠
Working from home

Qasem Hajizadeh Qasem-h

🏠
Working from home
View GitHub Profile
@jirikolarik
jirikolarik / video_uploader.rb
Last active November 15, 2018 18:26
CarrierWave FFmpeg Uploader example
class VideoUploader < CarrierWave::Uploader::Base
include ::CarrierWave::Backgrounder::Delay
include CarrierWave::FFmpeg
RESOLUTIONS = [
{ version: :p1080, resolution: '1920x1080'},
{ version: :p720, resolution: '1280x720'}
]
# Choose what kind of storage to use for this uploader: