If you want to upload videos to rails application, and you wish to modify it on the fly, you archieve that by using FFMPEG.

Read more at the source