Sha256: 9852d60a44787c1e8704cd6a6c66e81b553f997a1adbb0657a93941e75831eda

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

# MiniMediainfo

A Ruby wrapper for mediainfo CLI.

## Installation

As a prerequisite you will need to have the mediainfo binary installed on your system.
For example:

OS X:

    brew install mediainfo

Ubuntu:

    sudo add-apt-repository ppa:shiki/mediainfo
    sudo apt-get update
    sudo apt-get install mediainfo



Add this line to your application's Gemfile:

    gem 'mini_mediainfo'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install mini_mediainfo

## Usage

    require 'mini_mediainfo'
    media = MiniMediainfo::Media.new("http://techslides.com/demos/sample-videos/small.mp4")
    media.introspect
    media.meta['General']['Format'] # => "MPEG-4"
    media.meta['General']['Duration'] # => "5s 568ms"
    media.meta['Audio']['Compression mode'] # => "Lossy"


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_mediainfo-0.0.1 README.md