public
Description: Ruby wrapper for the mediainfo CLI. http://mediainfo.sourceforge.net
Homepage:
Clone URL: git://github.com/greatseth/mediainfo.git
name age message
file .gitignore Mon May 18 15:43:02 -0700 2009 ANSI-C style quoting, to make it work for filen... [Peter Vandenberk]
file Changelog Wed Sep 16 13:07:37 -0700 2009 bump version a tiny bit to rebuild gem on githu... [greatseth]
file LICENSE Tue May 05 18:47:06 -0700 2009 add license [greatseth]
file Manifest Wed Sep 16 12:33:56 -0700 2009 update local Echoe and fix a test from another ... [greatseth]
file README.markdown Fri Jul 31 16:32:30 -0700 2009 add requirements section to readme [greatseth]
file Rakefile Thu Jul 30 18:16:34 -0700 2009 add description to gem spec [greatseth]
directory lib/ Wed Sep 16 12:18:12 -0700 2009 support initialization from a raw response [greatseth]
file mediainfo.gemspec Wed Sep 16 13:07:37 -0700 2009 bump version a tiny bit to rebuild gem on githu... [greatseth]
directory test/ Wed Sep 16 12:18:12 -0700 2009 support initialization from a raw response [greatseth]
README.markdown

Mediainfo

Mediainfo is a class wrapping the mediainfo CLI.

Usage

info = Mediainfo.new "/path/to/file"

That will issue the system call to mediainfo and parse the output. From there, you can call numerous methods to get a variety of information about a file. Some attributes may be present for some files where others are not.

For a list of all possible attributes supported:

Mediainfo.supported_attributes

In addition to the stock arguments provided by parsing mediainfo output, some convenience methods and added behavior is added.

Mediainfo is inspired by RVideo::Inspector, part of the rvideo gem. The rvideo inspector is based on output from ffmpeg which is not intended to be machine parseable. I spent a little while chasing the ffmpeg development team, and decided finally that perhaps other tools were better. As such, some of the API for Mediainfo is straight from RVideo::Inspector. Some is not. Just saying.

Requirements

This library is compatible with:

MediaInfo Command line, MediaInfoLib - v0.7.11

to the extent that is documented in the tests.

Contributors