How to Use FFmpeg in Ruby?

Command line one-liners are great for quick and one off FFMPEG experiences but sooner or later you’re going to want to start building custom applications for efficiency. FFMPEG can be used with almost any programming language with a couple of simple tricks. Some languages might even have libraries of their own to extend FFMPEG natively. Below are a few examples of various languages using FFMPEG:

Using Streamio to natively use FFMPEG in ruby, More information: https://github.com/streamio/streamio-ffmpeg

require 'streamio-ffmpeg'
input = FFMPEG::Movie.new("path/to/input.mov") 
output.transcode("movie.mp4") # Output to mp4 

Love FFmpeg? Grab a copy of FFmpeg For Beginners on Kindle or Paperback to learn over 120 ways to master FFmpeg!

buy now on amazon