Steps to Upload any type of media in ruby on rails by paperclip Upload video in Rails Gemfile gem 'paperclip' gem 'paperclip-ffmpeg' gem 'paperclip-av-transcoder' Apply validation in model has_attached_file :file, :styles => {:medium => { :geometry => "300x300", :format => 'flv'},:thumb => {:geometry => "100x100#", :format => 'jpg', :time => 15} }, :processors => [:ffmpeg] When you will get some validation errors then we can use this below code :- validates_attachment_content_type :file, content_type: %w(video/mp4 video/3gp video/webm image/jpeg image/jpg image/png) Install ffmpeg on your system sudo apt-add-repository ppa:jon-severinsson/ffmpeg sudo apt-get update sudo apt-get install ffmpeg When we will get some ppa error then run:- http://stackoverflow.com/questions/29125229/how-to-reinstall-ffmpeg-clean-on-ubuntu-14-04 Play video in rails using video_tag