A ruby gem that acts as a wrapper around the ffprobe cli utility.
Add this line to your application's Gemfile:
gem 'ffprobe'And then execute:
bundle
Or install it yourself as:
gem install ffprobe
file = Ffprobe::MediaFile.new "data/big_buck_bunny_720p_1mb.mp4"
puts file.inspectAfter checking out the repo, run bin/setup to install dependencies in a vendor directory. You then run bin/console for an interactive prompt that will allow you to experiment with the code.
To install this gem on your local machine, run bundle exec rake install.
Bug reports and pull requests are welcome on GitHub at Avlos/ffprobe.